![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
HRT test task. More...
Public Types | |
| enum | |
Public Member Functions | |
| TestTask (uint8_t task_id) | |
| Word * | GetStack () const |
| Get pointer to the stack memory. | |
| size_t | GetStackSize () const |
| Get number of elements of the stack memory array. | |
| size_t | GetStackSizeBytes () const |
| Get size of the memory in bytes. | |
| EAccessMode | GetAccessMode () const |
| Get hardware access mode of the user task. | |
| virtual void | OnDeadlineMissed (uint32_t duration) |
| Default no-op handler. Override in subclass to log or handle missed deadlines. | |
| virtual void | OnExit () |
| Default no-op handler. Override to implement join semantics (signal a waiting joiner). | |
| virtual int32_t | GetWeight () const |
| Default weight of 1. Override in subclass if custom scheduling weight is needed. | |
| virtual TId | GetId () const |
| Get object's own address as its Id. Unique per task instance, requires no manual assignment. | |
| virtual const char * | GetTraceName () const |
| Override in subclass to supply a name for SEGGER SystemView tracing. Returns NULL by default. | |
| virtual size_t | GetStackSpace () |
| Get available stack space. | |
Private Member Functions | |
| void | Run () |
| Entry point of the user task. | |
Private Attributes | |
| uint8_t | m_task_id |
| StackMemoryDef< _StackSize >::Type | m_stack |
| Stack memory region, 16-byte aligned. | |
HRT test task.
Definition at line 50 of file stktest_hrt.cpp.
|
inherited |
Definition at line 52 of file stk_helper.h.
|
inline |
|
inlinevirtualinherited |
Get hardware access mode of the user task.
Implements stk::ITask.
Definition at line 57 of file stk_helper.h.
Get object's own address as its Id. Unique per task instance, requires no manual assignment.
Implements stk::ITask.
Definition at line 77 of file stk_helper.h.
Get pointer to the stack memory.
Implements stk::IStackMemory.
Definition at line 54 of file stk_helper.h.
|
inlinevirtualinherited |
Get number of elements of the stack memory array.
Implements stk::IStackMemory.
Definition at line 55 of file stk_helper.h.
|
inlinevirtualinherited |
Get size of the memory in bytes.
Implements stk::IStackMemory.
Definition at line 56 of file stk_helper.h.
|
inlinevirtualinherited |
Get available stack space.
Definition at line 252 of file stk_common.h.
|
inlinevirtualinherited |
Override in subclass to supply a name for SEGGER SystemView tracing. Returns NULL by default.
Implements stk::ITask.
Definition at line 81 of file stk_helper.h.
|
inlinevirtualinherited |
Default weight of 1. Override in subclass if custom scheduling weight is needed.
Implements stk::ITask.
Definition at line 73 of file stk_helper.h.
|
inlinevirtualinherited |
Default no-op handler. Override in subclass to log or handle missed deadlines.
Implements stk::ITask.
Definition at line 62 of file stk_helper.h.
|
inlinevirtualinherited |
Default no-op handler. Override to implement join semantics (signal a waiting joiner).
Implements stk::ITask.
Definition at line 67 of file stk_helper.h.
|
inlineprivatevirtual |
Entry point of the user task.
Kernel is configured as KERNEL_STATIC, the body must contain an infinite loop. Implements stk::ITask.
Definition at line 59 of file stktest_hrt.cpp.
References _STK_HRT_TEST_ITRS, _STK_HRT_TEST_SLEEP, stk::Delay(), stk::test::hrt::g_Time, stk::GetTimeNowMs(), m_task_id, and stk::Yield().
|
privateinherited |
Stack memory region, 16-byte aligned.
Definition at line 103 of file stk_helper.h.
|
private |
Definition at line 52 of file stktest_hrt.cpp.
Referenced by Run(), and TestTask().