Loading...
Searching...
No Matches
4#define __PACKED_STRUCT PACKED(struct)
8#define __PACKED_UNION PACKED(union)
14#if defined(__ICCARM__) || defined(__IAR_SYSTEMS_ASM__)
28#define PACKED(decl) __packed decl
35#define SECTION(name) _Pragma(QUOTE_(location = name))
42#define ALIGN_DEF(v) _Pragma(QUOTE_(data_alignment = v))
50#define NO_INIT(var) __no_init var
59#define __WEAK __attribute__((weak))
68#define PACKED(decl) decl __attribute__((packed))
75#define SECTION(name) __attribute__((section(name)))
82#define ALIGN_DEF(N) __attribute__((aligned(N)))
90#define NO_INIT(var) var __attribute__((section(".noinit")))
108#define PACKED(decl) decl __attribute__((packed))
115#define SECTION(name) __attribute__((section(name)))
122#define ALIGN_DEF(N) __attribute__((aligned(N)))
130#define NO_INIT(var) var __attribute__((section("NoInit")))
134#error Neither ICCARM, CC ARM nor GNUC C detected. Define your macros.