![]() |
SuperTinyKernel™ RTOS 1.06.0
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Base platform context for all platform implementations. More...
#include <stk_arch_common.h>
Public Member Functions | |
| PlatformContext () | |
| ~PlatformContext () | |
| Destructor. | |
| virtual void | Initialize (IPlatform::IEventHandler *handler, IKernelService *service, Stack *exit_trap, uint32_t resolution_us) |
| Initialize context. | |
Static Public Member Functions | |
| static Word * | InitStackMemory (IStackMemory *memory) |
| Initialize stack memory by filling it with STK_STACK_MEMORY_FILLER. | |
Public Attributes | |
| IPlatform::IEventHandler * | m_handler |
| kernel event handler | |
| IKernelService * | m_service |
| kernel service | |
| Stack * | m_stack_idle |
| idle task stack | |
| Stack * | m_stack_active |
| active task stack | |
| uint32_t | m_tick_resolution |
| system tick resolution (microseconds) | |
Protected Member Functions | |
| STK_NONCOPYABLE_CLASS (PlatformContext) | |
Base platform context for all platform implementations.
Definition at line 24 of file stk_arch_common.h.
|
inlineexplicit |
Definition at line 27 of file stk_arch_common.h.
References m_handler, m_service, m_stack_active, m_stack_idle, and m_tick_resolution.
Referenced by STK_NONCOPYABLE_CLASS().
|
inline |
Destructor.
Definition at line 34 of file stk_arch_common.h.
|
inlinevirtual |
Initialize context.
| [in] | handler | Event handler. |
| [in] | exit_trap | Exit trap's stack. |
| [in] | resolution_us | Tick resolution in microseconds (for example 1000 equals to 1 millisecond resolution). |
Definition at line 42 of file stk_arch_common.h.
References m_handler, m_service, m_stack_active, m_stack_idle, and m_tick_resolution.
|
inlinestatic |
Initialize stack memory by filling it with STK_STACK_MEMORY_FILLER.
| [in] | memory | Stack memory to initialize. |
Definition at line 57 of file stk_arch_common.h.
References stk::hw::PtrToWord(), stk::STACK_SIZE_MIN, STK_ASSERT, STK_STACK_MEMORY_ALIGN, and STK_STACK_MEMORY_FILLER.
|
protected |
| IPlatform::IEventHandler* stk::PlatformContext::m_handler |
kernel event handler
Definition at line 75 of file stk_arch_common.h.
Referenced by Initialize(), and PlatformContext().
| IKernelService* stk::PlatformContext::m_service |
kernel service
Definition at line 76 of file stk_arch_common.h.
Referenced by Initialize(), and PlatformContext().
| Stack* stk::PlatformContext::m_stack_active |
active task stack
Definition at line 78 of file stk_arch_common.h.
Referenced by Initialize(), and PlatformContext().
| Stack* stk::PlatformContext::m_stack_idle |
idle task stack
Definition at line 77 of file stk_arch_common.h.
Referenced by Initialize(), and PlatformContext().
| uint32_t stk::PlatformContext::m_tick_resolution |
system tick resolution (microseconds)
Definition at line 79 of file stk_arch_common.h.
Referenced by Initialize(), and PlatformContext().