60#include <TargConfig.h>
96#define SeCtx_setStackTop(o, stackMark) \
97 (*(stackMark)=1,(o)->stackTop=stackMark,setjmp((o)->startContext))
101void SeCtx_destructor(
SeCtx* o);
114#define SeCtx_destructor(o)
117void SeCtx_save(
SeCtx* o);
119void SeCtx_restore(
SeCtx* o);
void SeCtx_panic(SeCtx *o, U32 size)
Function you must implement.
void SeCtx_constructor(SeCtx *o, SeCtxTask t, void *buf, int bufLen)
Create a Context Manager instance.
void(* SeCtxTask)(struct SeCtx *ctx)
The task/thread entry point.
Definition: SeCtx.h:65
struct SeCtx SeCtx
SeCtx structure: See Context Manager and Bare Metal Systems for details.
uint16_t U16
Unsigned 16-bit integer.
Definition: GenPrimT.h:91
uint32_t U32
Unsigned 32-bit integer.
Definition: GenPrimT.h:93
uint8_t U8
Unsigned 8-bit integer.
Definition: GenPrimT.h:89
SeCtx structure: See Context Manager and Bare Metal Systems for details.
Definition: SeCtx.h:71