![]() |
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Interface for a platform event overrider. More...
#include <stk_common.h>
Public Member Functions | |
| virtual bool | OnSleep (Timeout sleep_ticks) |
| Called by the Kernel when it is entering a sleep mode. | |
| virtual bool | OnHardFault () |
| Called by Kernel when hard fault happens. | |
| virtual const MpuConfig * | OnConfigureMpu () const |
| Called by the platform driver during initialization to obtain global, application-defined MPU configurations. | |
| virtual bool | OnException (EHwException exc_id, TId tid, const struct FaultContext *const ctx) |
| Called by platform driver when hardware exception occurred. | |
Interface for a platform event overrider.
Definition at line 1035 of file stk_common.h.
|
inlinevirtual |
Called by the platform driver during initialization to obtain global, application-defined MPU configurations.
Allows user-space code to configure custom MPU regions (e.g., shared data/code sections or peripheral blocks) and enable state at system startup. Unlike per-task MPU regions set via ITask::GetMpuRegions(), configurations returned by this callback apply globally across the platform driver.
MpuConfig structure encapsulating global region descriptors and enable state, or nullptr if no custom global MPU configuration is supplied. nullptr. MpuConfig instance referenced by the returned pointer must remain valid for the duration of platform initialization (e.g., point to a static instance). Definition at line 1067 of file stk_common.h.
|
inlinevirtual |
Called by platform driver when hardware exception occurred.
| [in] | exc_id | Hardware exception id, see EHwException. |
| [in] | tid | TId of the currently active task. |
| [in] | ctx | FaultContext which includes hardware exception frame captured at fault entry (see hw::ExceptionFrame). PC is the true faulting instruction address; may be nullptr if unavailable. |
Definition at line 1081 of file stk_common.h.
References STK_UNUSED.
|
inlinevirtual |
Called by Kernel when hard fault happens.
Reimplemented in EventOverrider.
Definition at line 1051 of file stk_common.h.
|
inlinevirtual |
Called by the Kernel when it is entering a sleep mode.
Reimplemented in EventOverrider.
Definition at line 1041 of file stk_common.h.
References STK_UNUSED.