36template <stk::EAccessMode _AccessMode>
99 for (int32_t i = 0; i < 3; ++i)
Top-level STK include. Provides the Kernel class template and all built-in task-switching strategies.
Namespace of STK package.
static bool Sleep(Timeout tick_count)
Put calling process into a sleep state.
Concrete implementation of IKernel.
Partial implementation of the user task.
void Run()
Entry point of the user task.
static constexpr Id GREEN
static constexpr Id ORANGE
static void InitAll(bool init_state)
static void SwitchOnExclusive(Id led)
static stk_kernel_t * g_Kernel
static volatile uint8_t g_TaskSwitch
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)