jnaulet / OpenPicoRTOS

Very small, safe, lightning fast, yet portable preemptive RTOS with SMP support
MIT License
62 stars 7 forks source link

picoRTOS_sleep_until(): change the behavior on deadline miss #83

Closed jnaulet closed 8 months ago

jnaulet commented 9 months ago

For the moment, when the deadline is missed, picoRTOS raises a debug exception and sets the reference time to the current time. This is not what should be expected from a RTOS running a release version of any software, even though it makes debug easier.

The new wished behavior might be something like:

Some stats might be useful, error counter might be stored somewhere in the relevant tasks core.