SuperTinyKernel™ RTOS 1.06.0
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack Class Reference

Storage bundle for the sleep trap: a Stack descriptor paired with its backing memory. More...

#include <stk.h>

Collaboration diagram for stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack:

Public Types

typedef SleepTrapStackMemory::MemoryType Memory

Public Attributes

Stack stack
 Stack descriptor (SP register value + access mode). Initialised by InitTraps() on every Start().
Memory memory
 Backing stack memory array. Size: STK_SLEEP_TRAP_STACK_SIZE elements of Word.

Detailed Description

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
class stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack

Storage bundle for the sleep trap: a Stack descriptor paired with its backing memory.

Note
The sleep trap executes when all user tasks are simultaneously sleeping, putting the CPU into a low-power WFI state until the next tick wakes a task.
Exactly one sleep trap is always allocated regardless of kernel mode.

Definition at line 2068 of file stk.h.

Member Typedef Documentation

◆ Memory

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
typedef SleepTrapStackMemory::MemoryType stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack::Memory

Definition at line 2070 of file stk.h.

Member Data Documentation

◆ memory

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
Memory stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack::memory

Backing stack memory array. Size: STK_SLEEP_TRAP_STACK_SIZE elements of Word.

Definition at line 2073 of file stk.h.

◆ stack

template<uint8_t TMode, uint32_t TSize, class TStrategy, class TPlatform>
Stack stk::Kernel< TMode, TSize, TStrategy, TPlatform >::SleepTrapStack::stack

Stack descriptor (SP register value + access mode). Initialised by InitTraps() on every Start().

Definition at line 2072 of file stk.h.


The documentation for this class was generated from the following file: