Helper macros for declaring aligned variables.
◆ DECLARE_ALIGNED
#define DECLARE_ALIGNED |
( |
|
n, |
|
|
|
t, |
|
|
|
v |
|
) |
| t v |
Declare a variable that is aligned in memory.
uint16_t aligned_int = 42;
uint8_t aligned_array[128];
- Parameters
-
n | Minimum alignment in bytes |
t | Type of the variable (or array element) |
v | Name of the variable |
◆ DECLARE_ASM_CONST
#define DECLARE_ASM_CONST |
( |
|
n, |
|
|
|
t, |
|
|
|
v |
|
) |
| static const t v |
Declare a static constant aligned variable appropriate for use in inline assembly code.
- Parameters
-
n | Minimum alignment in bytes |
t | Type of the variable (or array element) |
v | Name of the variable |