#include "example.h"
#ifdef _PICO_H
#else
#endif
template <stk::EAccessMode _AccessMode>
{
public:
{}
private:
{
while (true)
{
{
continue;
}
Led::SwitchOnExclusive(
static_cast<LedId>(task_id));
return;
}
}
};
{
}
{
for (int32_t i = 0; i < 3; ++i)
{
}
while (true) {}
}
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() override
Entry point of the user task.
static constexpr Id GREEN
static constexpr Id ORANGE
static void InitAll(bool init_state)
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)