|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Public Types | |
| enum | |
Public Member Functions | |
| const Word * | GetStack () const override |
| Get pointer to the stack memory. | |
| size_t | GetStackSize () const override |
| Get number of elements of the stack memory array. | |
| EAccessMode | GetAccessMode () const override |
| Get pointer to the stack memory. | |
| TId | GetTid () const |
| virtual void | OnDeadlineMissed (uint32_t duration) |
| Called by the scheduler if deadline of the task is missed when Kernel is operating in Hard Real-Time mode (see stk::KERNEL_HRT). | |
| virtual void | OnExit () |
| Called by the kernel before removal from the scheduling (see stk::KERNEL_DYNAMIC). | |
| virtual Weight | GetWeight () const |
| Get static base weight of the task. | |
| virtual Timeout | GetTimeSlice () const |
| Get time-slice quantum of the task (ticks). KERNEL_TIMESLICE only. | |
| virtual const char * | GetTraceName () const |
| Get task trace name set by application. | |
| virtual size_t | GetStackSpace () const |
| Get available stack space. | |
Private Member Functions | |
| void | Run () override |
| Entry point of the user task. | |
Private Attributes | |
| StackMemoryDef< _StackSize >::Type | m_stack |
| Stack memory region, STK_STACK_MEMORY_ALIGN-byte aligned. | |
Definition at line 196 of file secure_task/example.cpp.
|
inherited |
Definition at line 100 of file stk_helper.h.
|
inlineoverridevirtualinherited |
Get pointer to the stack memory.
Get up to (STK_MPU_TASK_REGIONS - 1) application-defined MPU regions for this task.
When STK_MPU_STACK_GUARD is enabled, each task owns STK_MPU_TASK_REGIONS (2, 4, 6, 8, 12 or 16, see STK_MPU_TASK_REGIONS) hardware MPU region slots. Slot 0 is always the automatic stack guard, computed by the driver from the task's own stack memory (see IStackMemory::GetStack/GetStackSize). This hook supplies the remaining STK_MPU_TASK_REGIONS-1 slots, letting an application additionally sandbox a task to e.g. a private data buffer, a specific peripheral block, or a shared IPC region - on top of its stack guard.
MpuRegionList containing up to (STK_MPU_TASK_REGIONS - 1) region descriptors, or nullptr if no extra task regions are configured. Array element i is applied at task-relative region index i +1 (i.e. the slots following the stack guard). STK_MPU_STACK_GUARD is enabled; a no-op on platforms/builds without MPU stack-guard support. MpuRegionList instance referenced by the returned pointer must remain valid (e.g. a static const instance); a stack-local temporary is invalid once this function returns. Get hardware access mode of the user task.
Implements stk::ITask.
Definition at line 104 of file stk_helper.h.
|
inlineoverridevirtualinherited |
Get pointer to the stack memory.
Implements stk::IStackMemory.
Definition at line 102 of file stk_helper.h.
|
inlineoverridevirtualinherited |
Get number of elements of the stack memory array.
Implements stk::IStackMemory.
Definition at line 103 of file stk_helper.h.
|
inlinevirtualinherited |
Get available stack space.
Definition at line 511 of file stk_common.h.
References stk::ArrayView< T >::GetSize(), GetStack(), GetStackSize(), and STK_STACK_MEMORY_FILLER.
|
inlineinherited |
Definition at line 106 of file stk_helper.h.
|
inlinevirtualinherited |
Get time-slice quantum of the task (ticks). KERNEL_TIMESLICE only.
Reimplemented in LedTaskT< _AccessMode >, and LedTaskT< stk::ACCESS_PRIVILEGED >.
Definition at line 1006 of file stk_common.h.
References stk::NO_TIME_SLICE.
Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::KernelTask::Bind().
|
inlinevirtualinherited |
Get task trace name set by application.
NULL if unused. Reimplemented in AudioIsrTask, BlinkyTask, cy_stk_thread, LedTask< _Priority, _AccessMode >, LogTask< _AccessMode >, stk::pthread::PthreadTask, stk::pthread::ReaperTask, stk::time::TimerHost::TimerWorkerTask, and UsbDeviceTask.
Definition at line 1013 of file stk_common.h.
|
inlinevirtualinherited |
Get static base weight of the task.
Reimplemented in AudioIsrTask, BlinkyTask, cy_stk_thread, LedTaskT< _AccessMode >, LedTaskT< stk::ACCESS_PRIVILEGED >, stk::pthread::PthreadTask, stk::pthread::ReaperTask, stk::TaskW< _Weight, _StackSize, _AccessMode >, stk::TaskW< _Priority, TASK_STACK_SIZE, _AccessMode >, stk::TaskW< _Weight, TASK_STACK_SIZE, _AccessMode >, stk::time::TimerHost::TimerWorkerTask, and UsbDeviceTask.
Definition at line 997 of file stk_common.h.
References stk::DEFAULT_WEIGHT.
Referenced by stk::ISyncObject::FindWeightHigherThan().
|
inlinevirtualinherited |
Called by the scheduler if deadline of the task is missed when Kernel is operating in Hard Real-Time mode (see stk::KERNEL_HRT).
| [in] | duration | Elapsed active time in ticks at the point the deadline was detected. Always greater than the task's configured deadline (ticks). |
Reimplemented in CtrlTask< _AccessMode >, HwLedTask< _AccessMode >, and stk::time::TimerHost::TimerWorkerTask.
Definition at line 973 of file stk_common.h.
References STK_UNUSED.
|
inlinevirtualinherited |
Called by the kernel before removal from the scheduling (see stk::KERNEL_DYNAMIC).
Reimplemented in cy_stk_thread, stk::pthread::PthreadTask, and stk::time::TimerHost::TimerWorkerTask.
Definition at line 990 of file stk_common.h.
Referenced by stk::Kernel< TMode, TSize, TStrategy, TPlatform >::RemoveTask().
|
inlineoverrideprivatevirtual |
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 199 of file secure_task/example.cpp.
References g_LedChangedEvt.
|
privateinherited |
Stack memory region, STK_STACK_MEMORY_ALIGN-byte aligned.
Definition at line 127 of file stk_helper.h.