|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Run-once tasks: the kernel returns from Start() once all tasks have completed. More...
Go to the source code of this file.
Classes | |
| class | MyTask< _AccessMode > |
Enumerations | |
| enum | { TASK_STACK_SIZE = 256 } |
Functions | |
| static void | RunOnce () |
| void | RunExample () |
Variables | |
| static volatile uint8_t | g_TaskSwitch = 0 |
| static stk::Kernel< stk::KERNEL_DYNAMIC, 4, stk::sched::SwitchStrategyRoundRobin, stk::PlatformDefault > | g_Kernel |
| static MyTask< stk::ACCESS_PRIVILEGED > | g_Task1 (Led::RED) |
| static MyTask< stk::ACCESS_PRIVILEGED > | g_Task2 (Led::ORANGE) |
| static MyTask< stk::ACCESS_PRIVILEGED > | g_Task3 (Led::GREEN) |
| static MyTask< stk::ACCESS_PRIVILEGED > | g_Task4 (Led::BLUE) |
Run-once tasks: the kernel returns from Start() once all tasks have completed.
Definition in file once/example.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| TASK_STACK_SIZE | |
Definition at line 33 of file once/example.cpp.
| void RunExample | ( | void | ) |
Definition at line 90 of file once/example.cpp.
References g_Kernel, bsp::Led::InitAll(), and RunOnce().
|
static |
Definition at line 77 of file once/example.cpp.
References g_Kernel, g_Task1, g_Task2, g_Task3, g_Task4, and g_TaskSwitch.
Referenced by RunExample().
|
static |
Definition at line 68 of file once/example.cpp.
|
static |
Referenced by RunCycle(), and RunOnce().
| MyTask< stk::ACCESS_PRIVILEGED > g_Task2(Led::ORANGE) | ( | Led::ORANGE | ) |
Referenced by RunCycle(), and RunOnce().
| MyTask< stk::ACCESS_PRIVILEGED > g_Task3(Led::GREEN) | ( | Led::GREEN | ) |
Referenced by RunCycle(), and RunOnce().
| MyTask< stk::ACCESS_PRIVILEGED > g_Task4(Led::BLUE) | ( | Led::BLUE | ) |
Referenced by RunCycle(), and RunOnce().
|
static |
Definition at line 27 of file once/example.cpp.
Referenced by MyTask< _AccessMode >::Run(), and RunOnce().