34template <stk::EAccessMode _AccessMode>
78 for (
int i = 0; i < 4; ++i)
Top-level STK include. Provides the Kernel class template and all built-in task-switching strategies.
static bool Sleep(Timeout tick_count)
Put calling process into a sleep state.
PlatformArmCortexM PlatformDefault
Default platform implementation.
@ KERNEL_TICKLESS
Tickless mode. To use this mode STK_TICKLESS_IDLE must be defined to 1 in stk_config....
@ KERNEL_DYNAMIC
Tasks can be added or removed and therefore exit when done.
SwitchStrategyRoundRobinT< false > SwitchStrategyRR
Shorthand alias for SwitchStrategyRoundRobin.
Concrete implementation of IKernel.
Partial implementation of the user task.
void Run() override
Entry point of the user task.
static void InitAll(bool init_state)
static void SwitchOnExclusive(Id led)
static stk_kernel_t * g_Kernel
static MyTask< stk::ACCESS_PRIVILEGED > g_Task3(Led::GREEN)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task1(Led::RED)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task4(Led::BLUE)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task2(Led::ORANGE)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task1(0)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task2(1)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task3(2)
static MyTask< stk::ACCESS_PRIVILEGED > g_Task4(3)