60#include <TargConfig.h>
100#define SeCtx_setStackTop(o, stackMark) \
101 (*(stackMark)=1,(o)->stackTop=stackMark,setjmp((o)->startContext))
127#define SeCtx_destructor(o)
130void SeCtx_save(
SeCtx* o);
132void SeCtx_restore(
SeCtx* o);
void SeCtx_panic(SeCtx *o, U32 size)
Function you must implement.
#define SeCtx_destructor(o)
No operation for a context using a caller-supplied static stack buffer.
Definition: SeCtx.h:127
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:69
struct SeCtx SeCtx
SeCtx structure: See Context Manager and Bare Metal Systems for details.
uint16_t U16
Unsigned 16-bit integer.
Definition: GenPrimT.h:94
uint32_t U32
Unsigned 32-bit integer.
Definition: GenPrimT.h:96
uint8_t U8
Unsigned 8-bit integer.
Definition: GenPrimT.h:92
SeCtx structure: See Context Manager and Bare Metal Systems for details.
Definition: SeCtx.h:75