#include "example.h"
#ifdef _PICO_H
#else
#endif
template <stk::EAccessMode _AccessMode>
{
public:
{}
private:
{
}
};
{
}
{
for (int i = 0; i < 4; ++i)
{
}
while (true) {}
}
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)