tinyusb
0.4
|
|
Go to the documentation of this file.
48 #ifndef _TUSB_COMPILER_IAR_H_
49 #define _TUSB_COMPILER_IAR_H_
55 #define ALIGN_OF(x) __ALIGNOF__(x)
57 #define ATTR_PACKED_STRUCT(x) __packed x
58 #define ATTR_PREPACKED __packed
62 #define ATTR_ALIGNED(bytes) _Pragma(XSTRING_(data_alignment=##bytes))
64 #ifndef ATTR_ALWAYS_INLINE
65 #define ATTR_ALWAYS_INLINE error
69 #define ATTR_PURE // TODO IAR pure function attribute
70 #define ATTR_CONST // TODO IAR const function attribute
71 #define ATTR_WEAK __weak
73 #define ATTR_WARN_UNUSED_RESULT
82 #define __n2be_16(u16) ((uint16_t) __REV16(u16))
83 #define __be2n_16(u16) __n2be_16(u16)