fix IAR CMSIS rtx build for lpc175 6x --> build all ok

This commit is contained in:
hathach
2014-04-18 16:47:56 +07:00
parent 8dff4d454b
commit fe0dafc73f
4 changed files with 108 additions and 129 deletions

View File

@@ -95,7 +95,8 @@
#elif defined __ICCARM__ // compiled with IAR
#if (TUSB_CFG_MCU == MCU_LPC175X_6X)
#define TUSB_CFG_ATTR_USBRAM
// LP175x_6x can access all but CMSIS-RTX causes overflow in 32KB SRAM --> move to AHB ram
#define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".sram\"")
#elif (TUSB_CFG_MCU == MCU_LPC43XX)
#define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
#endif