#include "example.h"
{
};
template <stk::EAccessMode _AccessMode>
{
public:
{}
private:
{
while (true)
{
continue;
{
stk::hw::CriticalSection::ScopedLock __cs;
}
}
}
};
#ifdef _PICO_H
#else
#endif
template <stk::EAccessMode _AccessMode>
{
private:
{
while (true)
{
{
}
else
{
}
}
}
};
{
}
{
}
{
}
Top-level STK include. Provides the Kernel class template and all built-in task-switching strategies.
#define STK_ASSERT(e)
Runtime assertion. Halts execution if the expression e evaluates to false.
Implementation of synchronization primitive: stk::sync::Event.
Implementation of synchronization primitives: stk::sync::Pipe - runtime-sized byte-stream pipe over a...
Namespace of STK package.
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_SYNC
Synchronization support (see Event).
@ KERNEL_STATIC
All tasks are static and can not exit.
SwitchStrategyRoundRobinT< false > SwitchStrategyRoundRobin
Shorthand alias for SwitchStrategyRoundRobinT<>.
Concrete implementation of IKernel.
void Start() override
Start the scheduler. This call does not return until all tasks have exited (KERNEL_DYNAMIC mode) or i...
EAddResult AddTask(ITask *user_task) override
Register task for a soft real-time (SRT) scheduling.
void Initialize(uint32_t resolution_us=PERIODICITY_DEFAULT) override
Initialize kernel.
Partial implementation of the user task.
Binary synchronization event (signaled / non-signaled) primitive.
bool Reset()
Reset event to non-signaled state.
bool Wait(Timeout timeout_ticks=WAIT_INFINITE)
Wait until event becomes signaled or the timeout expires.
Thread-safe, type-safe FIFO communication pipe with internal storage.
bool Read(T &data, Timeout timeout_ticks=WAIT_INFINITE)
Read data from the pipe.
bool TryWrite(const T &data)
Attempt to write data to the pipe without blocking.
stk::sync::PipeT< LedState, 1 > & m_pipe
void Run()
Entry point of the user task.
void Run() override
Entry point of the user task.
static void Start(uint8_t cpu_id, void(*entry_func)(void))
static void InitAll(bool init_state)
static stk::sync::PipeT< LedState, 1 > g_PipeOn
static stk::sync::PipeT< LedState, 1 > g_PipeOff
static stk::sync::Event g_WakeCtrl
LedTaskT< stk::ACCESS_PRIVILEGED > LedTask