|
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 | |
| SecureHwCommandQueueTask (stk::Word *stack, size_t stack_size) | |
| 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. | |
| void | Run () override |
| Entry point of the user task. | |
| stk::EAccessMode | GetAccessMode () const override |
| Get pointer to the stack memory. | |
| const stk::MpuRegionList * | GetMpuRegions () const override |
| const stk::Word * | GetStack () const override |
| Get pointer to the stack memory. | |
| size_t | GetStackSize () const override |
| Get number of elements of the stack memory array. | |
| void | Run () override |
| Entry point of the user task. | |
| void | Run () override |
| Entry point of the user task. | |
| void | Run () override |
| Entry point of the user task. | |
Private Attributes | |
| const stk::MpuRegionConfig | m_mpu_regions [2] |
| const stk::MpuRegionList | m_mpu_regions_list |
| stk::Word * | m_stack |
| pointer to stack buffer | |
| size_t | m_stack_size |
| stack size in words | |
Definition at line 245 of file blinky-trustzone-sc/example.cpp.
|
inherited |
Definition at line 100 of file stk_helper.h.
|
inline |
Definition at line 366 of file blinky_mpu-hard/example.cpp.
References m_mpu_regions, PERIPHERAL_AIPS_BASE, PERIPHERAL_AIPS_SIZE, PRIV_TASK_MEMORY_SIZE, and stk::hw::PtrToWord().
|
inlineoverrideprivatevirtual |
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 358 of file blinky_mpu-hard/example.cpp.
References stk::ACCESS_PRIVILEGED.
|
inlineoverrideprivate |
Definition at line 359 of file blinky_mpu-hard/example.cpp.
References m_mpu_regions_list.
|
inlineoverrideprivatevirtual |
Get pointer to the stack memory.
Implements stk::IStackMemory.
Definition at line 362 of file blinky_mpu-hard/example.cpp.
References m_stack.
|
inlineoverrideprivatevirtual |
Get number of elements of the stack memory array.
Implements stk::IStackMemory.
Definition at line 363 of file blinky_mpu-hard/example.cpp.
References m_stack_size.
|
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 248 of file blinky-trustzone-sc/example.cpp.
References HwCommand::CMD_LED_ON, HwCommand::id, HwCommand::param_0, s_HwCmdQueue, STK_ASSERT, and bsp::Led::SwitchOnExclusive().
|
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 334 of file blinky_mpu-hard/example.cpp.
References HwCommand::CMD_LED_ON, g_SecureCounter, HwCommand::id, HwCommand::param_0, s_HwCmdQueue, STK_ASSERT, and bsp::Led::SwitchOnExclusive().
|
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 330 of file blinky_mpu-trustzone-sc/example.cpp.
References HwCommand::CMD_LED_ON, HwCommand::id, HwCommand::param_0, s_HwCmdQueue, STK_ASSERT, and bsp::Led::SwitchOnExclusive().
|
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 326 of file blinky_mpu/example.cpp.
References HwCommand::CMD_LED_ON, g_SecureCounter, HwCommand::id, HwCommand::param_0, s_HwCmdQueue, STK_ASSERT, and bsp::Led::SwitchOnExclusive().
|
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 268 of file blinky_mpu_armv8/example.cpp.
References HwCommand::CMD_LED_ON, g_SecureCounter, HwCommand::id, HwCommand::param_0, s_HwCmdQueue, STK_ASSERT, and bsp::Led::SwitchOnExclusive().
|
private |
Definition at line 327 of file blinky_mpu-hard/example.cpp.
Referenced by SecureHwCommandQueueTask().
|
private |
Definition at line 328 of file blinky_mpu-hard/example.cpp.
Referenced by GetMpuRegions().
|
private |
pointer to stack buffer
Definition at line 331 of file blinky_mpu-hard/example.cpp.
Referenced by GetStack().
|
private |
stack size in words
Definition at line 332 of file blinky_mpu-hard/example.cpp.
Referenced by GetStackSize().