summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2020-12-20 23:06:32 +0100
committerHiFiPhile <[email protected]>2020-12-20 23:10:34 +0100
commitb3c0d417ef2b2d2ff3d00b7cdf623436ec7abf97 (patch)
tree2dc16c5eadf3a8c550a1144883706a4bedb523e8 /src/common
parent13e6afd5897ab018047fdc8e4c34f4b782ee5118 (diff)
Fix error if "Required Prototype" is selected.
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_compiler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h
index 505542078..22c8366ab 100644
--- a/src/common/tusb_compiler.h
+++ b/src/common/tusb_compiler.h
@@ -102,6 +102,7 @@
#define TU_BSWAP32(u32) (__builtin_bswap32(u32))
#elif defined(__ICCARM__)
+ #include <intrinsics.h>
#define TU_ATTR_ALIGNED(Bytes) __attribute__ ((aligned(Bytes)))
#define TU_ATTR_SECTION(sec_name) __attribute__ ((section(#sec_name)))
#define TU_ATTR_PACKED __attribute__ ((packed))