|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
TrustZone + per-task MPU sandboxing, Non-Secure side. More...
#include <new>#include <pico/runtime.h>#include <stk.h>#include <sync/stk_sync.h>#include <time/stk_time.h>#include <arch/arm/cortex-m/stk_arch_arm-tz.h>#include "example.h"#include "pico/unique_id.h"Go to the source code of this file.
Classes | |
| class | PlatformEventHandler |
| class | MyTask< _AccessMode > |
| struct | MyTask< _AccessMode >::TaskPrivateData |
Functions | |
| void | NSC_OnExitNs (void) |
| uint32_t | NSC_GetKey (uint8_t key[], uint32_t size) |
| void | NSC_GetBoardUID (pico_unique_board_id_t *id_out) |
| void | NSC_bsp_Led_SwitchOnExclusive (bsp::Led::Id led) |
| void | runtime_init_clocks (void) |
| void | pico_get_unique_board_id (pico_unique_board_id_t *id_out) |
| static stk::Word s_LedTaskStackMem[4][TASK_STACK_MEMORY_SIZE] | __stk_aligned (32U) |
| static STK_MPU_SHARED_DATA_SECTION stk::sync::EventFlags | g_TaskFlags (FLAGS_ALL[LED_RED]) |
| STK_MPU_SHARED_CODE_SECTION void | SetBreakoutTask (stk::ITask *tsk) |
| static void | InitMpuSharedData () |
| PICO_RUNTIME_INIT_FUNC (InitMpuSharedData, "00100") | |
| void | RunExample () |
Variables | |
| static constexpr size_t | TASK_STACK_SIZE = 256U |
| static const uint32_t | FLAGS_ALL [] |
| const size_t | TASK_STACK_MEMORY_SIZE = stk::Align<size_t>(TASK_STACK_SIZE, 32U) |
| static constexpr size_t | TASK_MEMORY_SIZE = stk::Align<size_t>(10U, 32U) |
| static STK_MPU_SHARED_DATA_SECTION stk::Ticks | g_Timeline = 0 |
| static STK_MPU_SHARED_DATA_SECTION stk::ITask * | g_BreakoutTask = nullptr |
TrustZone + per-task MPU sandboxing, Non-Secure side.
Definition in file blinky_mpu-trustzone-ns/example.cpp.
|
static |
References TASK_STACK_MEMORY_SIZE.
|
static |
References FLAGS_ALL, LED_RED, and STK_MPU_SHARED_DATA_SECTION.
|
static |
Definition at line 132 of file blinky_mpu-trustzone-ns/example.cpp.
Referenced by __attribute__(), and PICO_RUNTIME_INIT_FUNC().
| void NSC_bsp_Led_SwitchOnExclusive | ( | bsp::Led::Id | led | ) |
Definition at line 115 of file blinky-trustzone-sc/example.cpp.
References __stk_tz_nsc_entry, HwCommand::CMD_LED_ON, stk::hw::IsPrivilegedContext(), s_HwCmdQueue, and bsp::Led::SwitchOnExclusive().
Referenced by MyTask< _AccessMode >::Run().
| void NSC_GetBoardUID | ( | pico_unique_board_id_t * | id_out | ) |
Definition at line 87 of file blinky-trustzone-sc/example.cpp.
References __stk_tz_nsc_entry, and pico_get_unique_board_id().
Referenced by pico_get_unique_board_id().
| uint32_t NSC_GetKey | ( | uint8_t | key[], |
| uint32_t | size ) |
Definition at line 93 of file blinky-trustzone-sc/example.cpp.
References __stk_tz_nsc_entry.
Referenced by RunExample().
| void NSC_OnExitNs | ( | void | ) |
Definition at line 79 of file blinky-trustzone-sc/example.cpp.
References __stk_tz_nsc_entry, and s_NsExitEnv.
Referenced by RunExample().
| void pico_get_unique_board_id | ( | pico_unique_board_id_t * | id_out | ) |
Definition at line 72 of file blinky_mpu-trustzone-ns/example.cpp.
References NSC_GetBoardUID().
| PICO_RUNTIME_INIT_FUNC | ( | InitMpuSharedData | , |
| "00100" | ) |
References InitMpuSharedData().
| void RunExample | ( | void | ) |
Definition at line 450 of file blinky_mpu-trustzone-ns/example.cpp.
References stk::ACCESS_USER, LED_BLUE, LED_GREEN, LED_ORANGE, LED_RED, NSC_GetKey(), NSC_OnExitNs(), SetBreakoutTask(), STK_STATIC_ARRAY_SIZE, STK_STATIC_ASSERT, and TASK_MEMORY_SIZE.
| void runtime_init_clocks | ( | void | ) |
Definition at line 67 of file blinky_mpu-trustzone-ns/example.cpp.
| STK_MPU_SHARED_CODE_SECTION void SetBreakoutTask | ( | stk::ITask * | tsk | ) |
Definition at line 112 of file blinky_mpu-trustzone-ns/example.cpp.
References g_BreakoutTask, and STK_MPU_SHARED_CODE_SECTION.
Referenced by RunExample().
|
static |
Definition at line 89 of file blinky_mpu-trustzone-ns/example.cpp.
|
static |
Definition at line 111 of file blinky_mpu-trustzone-ns/example.cpp.
Referenced by MyTask< _AccessMode >::Run(), and SetBreakoutTask().
|
static |
Definition at line 108 of file blinky_mpu-trustzone-ns/example.cpp.
|
staticconstexpr |
Definition at line 101 of file blinky_mpu-trustzone-ns/example.cpp.
| const size_t TASK_STACK_MEMORY_SIZE = stk::Align<size_t>(TASK_STACK_SIZE, 32U) |
Definition at line 97 of file blinky_mpu-trustzone-ns/example.cpp.
|
staticconstexpr |
Definition at line 85 of file blinky_mpu-trustzone-ns/example.cpp.