|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Optional configuration of the timer tasks, see Initialize(). More...
#include <stk_time_timer.h>
Public Member Functions | |
| Config () | |
| Default constructor: default weights, internal stack buffers and ACCESS_USER tick task. | |
Public Attributes | |
| Weight | tick_weight |
| Weight of the tick task (default: DEFAULT_WEIGHT). | |
| Weight | handler_weight |
| Weight of every handler task (default: DEFAULT_WEIGHT). | |
| Word * | tick_stack |
Stack of the tick task, or nullptr to use the internal buffer (default). | |
| size_t | tick_stack_size |
Size of tick_stack in elements of Word (>= STK_STACK_SIZE_MIN), ignored if tick_stack is nullptr. | |
| Word * | handler_stack [1U] |
Stack of each handler task, a nullptr entry selects the internal buffer (default). | |
| size_t | handler_stack_size |
| Size of every non-null handler_stack entry in elements of Word (>= STK_STACK_SIZE_MIN). | |
| EAccessMode | tick_mode |
| Access mode of the tick task (default: ACCESS_USER). The tick task only touches host state, but a host used from privileged code (e.g. an RTOS compatibility layer) may need ACCESS_PRIVILEGED. | |
Optional configuration of the timer tasks, see Initialize().
A default-constructed Config reproduces the fixed behavior of TimerHost: DEFAULT_WEIGHT for all tasks and the internal stack buffers.
Definition at line 501 of file stk_time_timer.h.
|
inlineexplicit |
Default constructor: default weights, internal stack buffers and ACCESS_USER tick task.
Definition at line 513 of file stk_time_timer.h.
References stk::ACCESS_USER, stk::DEFAULT_WEIGHT, handler_stack, handler_stack_size, handler_weight, tick_mode, tick_stack, tick_stack_size, and tick_weight.
| Word* stk::time::TimerHost::Config::handler_stack[1U] |
Stack of each handler task, a nullptr entry selects the internal buffer (default).
Definition at line 507 of file stk_time_timer.h.
Referenced by Config(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().
| size_t stk::time::TimerHost::Config::handler_stack_size |
Size of every non-null handler_stack entry in elements of Word (>= STK_STACK_SIZE_MIN).
Definition at line 508 of file stk_time_timer.h.
Referenced by Config(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().
| Weight stk::time::TimerHost::Config::handler_weight |
Weight of every handler task (default: DEFAULT_WEIGHT).
Definition at line 504 of file stk_time_timer.h.
Referenced by Config(), cy_rtos_stk_kernel_init(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().
| EAccessMode stk::time::TimerHost::Config::tick_mode |
Access mode of the tick task (default: ACCESS_USER). The tick task only touches host state, but a host used from privileged code (e.g. an RTOS compatibility layer) may need ACCESS_PRIVILEGED.
Definition at line 509 of file stk_time_timer.h.
Referenced by Config(), cy_rtos_stk_kernel_init(), and stk::time::TimerHost::Initialize().
| Word* stk::time::TimerHost::Config::tick_stack |
Stack of the tick task, or nullptr to use the internal buffer (default).
Definition at line 505 of file stk_time_timer.h.
Referenced by Config(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().
| size_t stk::time::TimerHost::Config::tick_stack_size |
Size of tick_stack in elements of Word (>= STK_STACK_SIZE_MIN), ignored if tick_stack is nullptr.
Definition at line 506 of file stk_time_timer.h.
Referenced by Config(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().
| Weight stk::time::TimerHost::Config::tick_weight |
Weight of the tick task (default: DEFAULT_WEIGHT).
Definition at line 503 of file stk_time_timer.h.
Referenced by Config(), cy_rtos_stk_kernel_init(), stk::time::TimerHost::Initialize(), and stk_timerhost_init_ex().