Blinky: four LED tasks pass a baton to each other with stk::sync::EventFlags.
Definition in file blinky/example.cpp.
Definition at line 98 of file blinky/example.cpp.
99{
101
103
104
106
107
109
110
115
116
118
119
124
125
127
128
130}
#define STK_ASSERT(e)
Runtime assertion. Halts execution if the expression e evaluates to false.
Namespace of STK package.
@ KERNEL_TICKLESS
Tickless mode. To use this mode STK_TICKLESS_IDLE must be defined to 1 in stk_config....
@ KERNEL_SYNC
Synchronization support (see Event).
@ KERNEL_STATIC
All tasks are static and can not exit.
Concrete implementation of IKernel.
void Start() override
Start the scheduler. This call does not return until all tasks have exited (KERNEL_DYNAMIC mode) or i...
EAddResult AddTask(ITask *user_task) override
Register task for a soft real-time (SRT) scheduling.
void Initialize(uint32_t resolution_us=PERIODICITY_DEFAULT) override
Initialize kernel.
static void InitAll(bool init_state)
References stk::Kernel< TMode, TSize, TStrategy, TPlatform >::AddTask(), bsp::Led::InitAll(), stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Initialize(), stk::KERNEL_STATIC, stk::KERNEL_SYNC, stk::KERNEL_TICKLESS, LED_BLUE, LED_GREEN, LED_ORANGE, LED_RED, stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Start(), and STK_ASSERT.