|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Blinky with a control task and LED tasks communicating over pipes and an event. More...
#include <stk.h>#include "example.h"#include <sync/stk_sync_pipe.h>#include <sync/stk_sync_event.h>Go to the source code of this file.
Classes | |
| class | LedTask< _Priority, _AccessMode > |
| class | CtrlTask< _AccessMode > |
Enumerations | |
| enum | LedState : uint8_t { LED_OFF = 0 , LED_ON = 1 } |
| enum | { TASK_STACK_SIZE = 256 } |
Functions | |
| void | StartCore0 () |
| void | StartCore1 () |
| void | RunExample () |
Variables | |
| static stk::sync::PipeT< LedState, 1 > | g_PipeOff |
| static stk::sync::PipeT< LedState, 1 > | g_PipeOn |
| static stk::sync::Event | g_WakeCtrl |
Blinky with a control task and LED tasks communicating over pipes and an event.
Definition in file blinky_mc/example.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| TASK_STACK_SIZE | |
Definition at line 84 of file blinky_mc/example.cpp.
| enum LedState : uint8_t |
| Enumerator | |
|---|---|
| LED_OFF | |
| LED_ON | |
Definition at line 30 of file blinky_mc/example.cpp.
| void RunExample | ( | void | ) |
Definition at line 170 of file blinky_mc/example.cpp.
References bsp::Led::InitAll(), bsp::Cpu::Start(), StartCore0(), StartCore1(), and STK_ASSERT.
| void StartCore0 | ( | ) |
Definition at line 120 of file blinky_mc/example.cpp.
References stk::Kernel< TMode, TSize, TStrategy, TPlatform >::AddTask(), g_PipeOff, g_PipeOn, stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Initialize(), LED_OFF, LED_ON, stk::Kernel< TMode, TSize, TStrategy, TPlatform >::Start(), and STK_ASSERT.
Referenced by RunExample().
| void StartCore1 | ( | ) |
Definition at line 145 of file blinky_mc/example.cpp.
References stk::KERNEL_STATIC, stk::KERNEL_SYNC, stk::KERNEL_TICKLESS, and STK_ASSERT.
Referenced by RunExample().
|
static |
Definition at line 39 of file blinky_mc/example.cpp.
Referenced by CtrlTask< _AccessMode >::Run(), and StartCore0().
|
static |
Definition at line 40 of file blinky_mc/example.cpp.
Referenced by CtrlTask< _AccessMode >::Run(), and StartCore0().
|
static |
Definition at line 45 of file blinky_mc/example.cpp.
Referenced by CtrlTask< _AccessMode >::Run().