SuperTinyKernel™ RTOS 1.06.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk_arch_common.h File Reference

Contains common inventory for platform implementation. More...

#include "stk_common.h"
Include dependency graph for stk_arch_common.h:

Go to the source code of this file.

Classes

class  stk::PlatformContext
 Base platform context for all platform implementations. More...

Namespaces

namespace  stk
 Namespace of STK package.

Macros

#define STK_ARCH_GET_CPU_ID()
 Get CPU core id of the caller, e.g. if called while running on core 0 then returned value must be 0.
#define GetContext()
 Get platform's context.

Functions

static __stk_forceinline Cycles stk::ConvertTimeUsToClockCycles (uint32_t clock_freq, Ticks time_us)
 Convert time (microseconds) to core clock cycles.

Detailed Description

Contains common inventory for platform implementation.

Definition in file stk_arch_common.h.

Macro Definition Documentation

◆ GetContext

#define GetContext ( )
Value:
s_StkPlatformContext[STK_ARCH_GET_CPU_ID()]
#define STK_ARCH_GET_CPU_ID()
Get CPU core id of the caller, e.g. if called while running on core 0 then returned value must be 0.

Get platform's context.

Definition at line 100 of file stk_arch_common.h.

◆ STK_ARCH_GET_CPU_ID

#define STK_ARCH_GET_CPU_ID ( )
Value:
(0)

Get CPU core id of the caller, e.g. if called while running on core 0 then returned value must be 0.

Definition at line 93 of file stk_arch_common.h.