![]() |
SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
#include <stktest.h>
Public Types | |
| enum | |
Public Member Functions | |
| TaskMock () | |
| 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 | 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. | |
Public Attributes | |
| uint32_t | m_deadline_missed |
| duration of workload if deadline is missed in HRT mode | |
Private Member Functions | |
| void | Run () |
| Entry point of the user task. | |
| void | OnDeadlineMissed (uint32_t duration) |
| Default no-op handler. Override in subclass to log or handle missed deadlines. | |
Private Attributes | |
| StackMemoryDef< _StackSize >::Type | m_stack |
| Stack memory region, 16-byte aligned. | |
Task mock.
|
inherited |
Definition at line 52 of file stk_helper.h.
|
inline |
Definition at line 385 of file stktest.h.
References m_deadline_missed.
|
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.
|
inlineprivatevirtual |
Default no-op handler. Override in subclass to log or handle missed deadlines.
Reimplemented from stk::Task< STACK_SIZE_MIN, _AccessMode >.
Definition at line 393 of file stktest.h.
References m_deadline_missed, and stk::Task< _StackSize, _AccessMode >::OnDeadlineMissed().
|
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 391 of file stktest.h.
| uint32_t stk::test::TaskMock< _AccessMode >::m_deadline_missed |
duration of workload if deadline is missed in HRT mode
Definition at line 388 of file stktest.h.
Referenced by OnDeadlineMissed(), TaskMock(), stk::test::TEST(), stk::test::TEST(), stk::test::TEST(), and stk::test::TEST().
|
privateinherited |
Stack memory region, 16-byte aligned.
Definition at line 103 of file stk_helper.h.