QXK/C port example for a generic C compiler. More...
#include "qxk.h"
Go to the source code of this file.
Macros | |
#define | QXK_ISR_CONTEXT_() (getSR() != 0U) |
determination if the code executes in the ISR context (used internally in QXK only) More... | |
#define | QXK_ON_CONTEXT_SW 1 |
activate the context-switch callback More... | |
#define | QXK_CONTEXT_SWITCH_() (trigSWI()) |
trigger context switch (used internally in QXK only) More... | |
#define | QXK_ISR_ENTRY() |
Define the ISR entry sequence, if the compiler supports writing interrupts in C. More... | |
#define | QXK_ISR_EXIT() |
Define the ISR exit sequence, if the compiler supports writing interrupts in C. More... | |
Functions | |
uint32_t | getSR (void) |
void | trigSWI (void) |
QXK/C port example for a generic C compiler.
Definition in file qxk_port.h.
#define QXK_ISR_CONTEXT_ | ( | ) | (getSR() != 0U) |
determination if the code executes in the ISR context (used internally in QXK only)
determination if the code executes in the ISR context
Definition at line 55 of file qxk_port.h.
#define QXK_ON_CONTEXT_SW 1 |
activate the context-switch callback
Definition at line 58 of file qxk_port.h.
#define QXK_CONTEXT_SWITCH_ | ( | ) | (trigSWI()) |
trigger context switch (used internally in QXK only)
Definition at line 61 of file qxk_port.h.
#define QXK_ISR_ENTRY | ( | ) |
Define the ISR entry sequence, if the compiler supports writing interrupts in C.
Definition at line 73 of file qxk_port.h.
#define QXK_ISR_EXIT | ( | ) |
Define the ISR exit sequence, if the compiler supports writing interrupts in C.
Definition at line 89 of file qxk_port.h.
uint32_t getSR | ( | void | ) |
void trigSWI | ( | void | ) |