Simple round-robin scheduler for mbed
Overview
This library provides simple round-robin scheduling based on the mbed-os.
Why would you want to use this?
- Tasks are not run from within interrupt sub-routines (as they are using Tickers)
- Ordering/priority of tasks is deterministic (rate monotonic)
It's not rocket science, just a handy wrapper around the RTOS functions.
Example
#define BASE_RATE 0.1f #define TASK1_MULTIPLIER 1 #define TASK2_MULTIPLIER 2 .... RoundRobin::instance()->SetBaseRate( BASE_RATE ); RoundRobin::instance()->addTask( TASK1_MULTIPLIER, lcdRefresh ); RoundRobin::instance()->addTask( TASK2_MULTIPLIER, watchButtons );
History
Remove mbed-os lib to prevent clashes when it's also included by the program
2017-07-29, by johnb [Sat, 29 Jul 2017 12:17:31 +0000] rev 1
Remove mbed-os lib to prevent clashes when it's also included by the program
Initial version
2017-07-29, by johnb [Sat, 29 Jul 2017 11:53:34 +0000] rev 0
Initial version