Hi Christian,
If you want some inspiration for a timer driver you could take a look
at the Kinetis periph/timer driver which wraps two different timer
hardware modules underneath, one for high frequency and precise
control (PIT, always clocked by the CPU bus clock), and the other for
low power
Would you be able to get the measurements you are looking for using this
approach instead?
The low priority thread is toggling a gpio pin in a tight loop. The other
thread toggles a different pin as soon as it is resumed. You would need
external equipment to get the time between the two, but it
Hi Gaëtan,
Thank you for your answer!
I did look at this test and it counts the number of context switches between
two threads of the same priority in one second.
What I want is something more abstract (any thread, any priority). To
reformulate my question, let's assume I have two threads. It
Hi Julien,
I think this test should be doing what you want, I did not look at it
just knew it existed.
https://github.com/RIOT-OS/RIOT/tree/master/test/bench_thread_yield_pingpong
Regards,
Gaëtan - cladmi
On 15.11.18 16:41, Julien Gomez wrote:
Hello fellow developers !
I have a
Hello fellow developers !
I have a simple question: How one could compute the time elapsed when switching
from thread A to thread B?
Any advice or lead is welcome!
Regards,
Julien
___
devel mailing list
devel@riot-os.org