diff options
| author | hathach <[email protected]> | 2014-03-04 15:19:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-04 15:19:50 +0700 |
| commit | 6f24dd50a003cec5fd894304969cfcea1a600108 (patch) | |
| tree | 52f6fd00526433122216cefd6c634abd446cb0d5 /tinyusb/common | |
| parent | 93a60641ea8c2237a54f5823dc5511947c847d5b (diff) | |
change lpc17xx cmsis file & ohci to be able to build with IAR
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/compiler/compiler_iar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h index 43062a1d8..cd94f5b2f 100644 --- a/tinyusb/common/compiler/compiler_iar.h +++ b/tinyusb/common/compiler/compiler_iar.h @@ -66,6 +66,7 @@ #define ATTR_ALIGNED_64 _Pragma("data_alignment=64") #define ATTR_ALIGNED_48 _Pragma("data_alignment=48") #define ATTR_ALIGNED_32 _Pragma("data_alignment=32") +#define ATTR_ALIGNED_16 _Pragma("data_alignment=16") #define ATTR_ALIGNED_4 _Pragma("data_alignment=4") #ifndef ATTR_ALWAYS_INLINE @@ -86,6 +87,9 @@ #define __be2n __REV #define __n2be __be2n +#define __n2be_16(u16) ((uint16_t) __REV16(u16)) +#define __be2n_16(u16) __n2be_16(u16) + #ifdef __cplusplus } #endif |
