|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Implementation of stk::time::TimerHost, a software timer multiplexer that manages multiple stk::time::Timer instances. More...
Go to the source code of this file.
Classes | |
| class | stk::time::Timer |
| Abstract base class for a timer managed by TimerHost. More... | |
| struct | stk::time::Timer::ReadyNode |
| Hook of a Timer in the ready list (expired timers waiting for a handler task). More... | |
| class | stk::time::TimerHost |
| Software timer multiplexer that manages multiple Timer instances on top of a small fixed set of kernel tasks. More... | |
| struct | stk::time::TimerHost::TimerInfo |
| Consistent snapshot of a timer, see QuerySync(). More... | |
| struct | stk::time::TimerHost::Config |
| Optional configuration of the timer tasks, see Initialize(). More... | |
| class | stk::time::TimerHost::TimerWorkerTask |
| Internal kernel task used by TimerHost for both the tick task and handler tasks. More... | |
| struct | stk::time::TimerHost::Completion |
| Completion point of a synchronous command, lives on the stack of the waiting caller. More... | |
| struct | stk::time::TimerHost::TimerCommand |
| POD command record passed from the public API methods to the tick task via the command queue. More... | |
Namespaces | |
| namespace | stk |
| Namespace of STK package. | |
| namespace | stk::time |
| Time-related primitives: periodic polling, elapsed-cycle measurement and software timers. | |
Macros | |
| #define | STK_TIMER_THREADS_COUNT 1U |
| Number of threads handling timers in TimerHost (default: 1). | |
| #define | STK_TIMER_HANDLER_STACK_SIZE 256U |
| Stack size of the timer handler, increase if your timers consume more (default: 256). | |
| #define | STK_TIMER_COMMAND_QUEUE_SIZE 32U |
| Capacity of the command queue of TimerHost: the number of commands (Start(), Stop(), StartSync(), ...) which can wait for the tick task at once (default: 32). | |
| #define | STK_TIMER_COUNT_MAX STK_TIMER_COMMAND_QUEUE_SIZE |
Implementation of stk::time::TimerHost, a software timer multiplexer that manages multiple stk::time::Timer instances.
Definition in file stk_time_timer.h.
| #define STK_TIMER_COMMAND_QUEUE_SIZE 32U |
Capacity of the command queue of TimerHost: the number of commands (Start(), Stop(), StartSync(), ...) which can wait for the tick task at once (default: 32).
Definition at line 51 of file stk_time_timer.h.
| #define STK_TIMER_COUNT_MAX STK_TIMER_COMMAND_QUEUE_SIZE |
Definition at line 63 of file stk_time_timer.h.
| #define STK_TIMER_HANDLER_STACK_SIZE 256U |
Stack size of the timer handler, increase if your timers consume more (default: 256).
Definition at line 35 of file stk_time_timer.h.
| #define STK_TIMER_THREADS_COUNT 1U |
Number of threads handling timers in TimerHost (default: 1).
Definition at line 28 of file stk_time_timer.h.
Referenced by stk::time::TimerHost::Initialize(), stk::time::TimerHost::IsHostTid(), stk::time::TimerHost::ProcessTimers(), and stk::time::TimerHost::WaitCallbackDone().