1. support for iar in situation of usb host application

This commit is contained in:
biyq
2022-12-14 13:35:44 +08:00
committed by sakumisu
parent 82596cea4b
commit 9bcea9ae37
3 changed files with 10 additions and 2 deletions

View File

@@ -44,12 +44,12 @@
#ifndef __ALIGNED
#define __ALIGNED(x) __attribute__((aligned(x)))
#endif
#elif defined(__ICCARM__)
#elif defined(__ICCARM__) || defined(__ICCRX__)
#ifndef __USED
#if __ICCARM_V8
#define __USED __attribute__((used))
#else
#define __USED _Pragma("__root")
#define __USED __root
#endif
#endif