Macros | |
| #define | NOP() {asm volatile("nop"::);} |
| Assemlby NOP instruction. More... | |
| #define | ELEMS(p) (sizeof(p)/sizeof(p[0])) |
| Number of elements. More... | |
| #define | NOINIT __attribute__ ((section (".noinit"))) |
| Create non initialized variable. More... | |
| #define | CONNECT_NAMES(a, b) XCONNECT_NAMES(a, b) |
| Concat two mnemonics. More... | |
| #define | MAKE_TEXT(x) XMAKE_TEXT(x) |
| Change mnemonic to string. More... | |
| #define | MIN(a, b) ( (a) < (b) ? (a) : (b) ) |
| Minimum value. More... | |
| #define | MAX(a, b) ( (a) > (b) ? (a) : (b) ) |
| Maximum value. More... | |
Group of helpfull macros for common usage
| #define CONNECT_NAMES | ( | a, | |
| b | |||
| ) | XCONNECT_NAMES(a, b) |
Concat two mnemonics.
Macro that concats two mnemonics
| #define ELEMS | ( | p | ) | (sizeof(p)/sizeof(p[0])) |
| #define MAKE_TEXT | ( | x | ) | XMAKE_TEXT(x) |
Change mnemonic to string.
Macro changes given argument to text in quotes
| #define MAX | ( | a, | |
| b | |||
| ) | ( (a) > (b) ? (a) : (b) ) |
| #define MIN | ( | a, | |
| b | |||
| ) | ( (a) < (b) ? (a) : (b) ) |
Minimum value.
Macro that takes minimum value of two
| #define NOINIT __attribute__ ((section (".noinit"))) |
Create non initialized variable.
Syntax sugar for putting variable into .noinit section
| #define NOP | ( | ) | {asm volatile("nop"::);} |
Assemlby NOP instruction.
Empty instruction, that may be used for delays or synchronization