#include <arch/arm/cortex-m/stk_arch_arm-tz.h>
#include "example.h"
#if (__ARM_FEATURE_CMSE & 1) == 0
#error "Need ARMv8-M security extensions"
#elif (__ARM_FEATURE_CMSE & 2) != 0
#error "Compile without --mcmse"
#endif
#include "pico/unique_id.h"
uint32_t
NSC_GetKey(uint8_t key[], uint32_t size);
{
}
{
}
#ifdef _PICO_H
#else
#endif
};
template <stk::EAccessMode _AccessMode>
{
public:
{}
private:
{
while (true)
{
continue;
{
const stk::hw::CriticalSection::ScopedLock __guard;
}
}
}
};
{
uint8_t key[4] = {0};
static tz::nsec::Kernel kernel;
kernel.Initialize(0);
kernel.AddTask(&task1);
kernel.AddTask(&task2);
kernel.AddTask(&task3);
kernel.AddTask(&task4);
kernel.Start();
}
Top-level STK include. Provides the Kernel class template and all built-in task-switching strategies.
Collection of synchronization primitives (stk::sync namespace).
Collection of time-related primitives (stk::time namespace).
Namespace of STK package.
int64_t Ticks
Ticks value.
static bool SleepUntil(Ticks timestamp)
Put calling process into a sleep state until the specified timestamp.
static Ticks GetTicksFromMs(Time ms, uint32_t resolution)
Convert milliseconds to ticks.
static Ticks GetTicks()
Get number of ticks elapsed since kernel start.
EventFlagsT< uint32_t > EventFlags
Default event flags group with a 32-bit flags word (31 usable flags, bit 31 reserved).
Partial implementation of the user task.
T Set(T flags)
Set one or more flags.
static constexpr uint32_t OPT_WAIT_ANY
T Wait(T flags, uint32_t options=OPT_WAIT_ANY, Timeout timeout_ticks=WAIT_INFINITE)
Wait for one or more flags to be set.
static bool IsError(uint32_t result)
void Run() override
Entry point of the user task.
void NSC_GetBoardUID(pico_unique_board_id_t *id_out)
static stk::Ticks g_Timeline
void runtime_init_clocks(void)
static const uint32_t FLAGS_ALL[]
uint32_t NSC_GetKey(uint8_t key[], uint32_t size)
void NSC_bsp_Led_SwitchOnExclusive(bsp::Led::Id led)
static stk::sync::EventFlags g_TaskFlags(FLAGS_ALL[LED_RED])
void pico_get_unique_board_id(pico_unique_board_id_t *id_out)
static stk::Ticks g_Timeline