summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-31 11:26:41 +0700
committerhathach <[email protected]>2014-03-31 11:26:41 +0700
commit0bb2cc64b0e1248bfc8e564755a0850b5e5ad762 (patch)
tree7a3c1d73ce2cb9f05acbb930b5490a0d93f97234 /demos/host/src
parent538c2bd6983938ecfb8b5ef6e9d2caaab853c3e7 (diff)
device_freertos/.cproject works well with msc & keyboard
Diffstat (limited to 'demos/host/src')
-rw-r--r--demos/host/src/tusb_config.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h
index 591f691c0..b1a4f1517 100644
--- a/demos/host/src/tusb_config.h
+++ b/demos/host/src/tusb_config.h
@@ -77,24 +77,26 @@
//--------------------------------------------------------------------+
#ifdef __CODE_RED // make use of code red's support for ram region macros
- #if (TUSB_CFG_MCU == MCU_LPC11UXX) || (TUSB_CFG_MCU == MCU_LPC13UXX)
- #define TUSB_CFG_ATTR_USBRAM ATTR_SECTION(.data.$RAM2)
- #elif TUSB_CFG_MCU == MCU_LPC175X_6X
- #define TUSB_CFG_ATTR_USBRAM // LPC17xx USB DMA can access all
+ #if TUSB_CFG_MCU == MCU_LPC175X_6X
+ #define TUSB_CFG_ATTR_USBRAM // LPC17xx USB DMA can access all address
#elif (TUSB_CFG_MCU == MCU_LPC43XX)
#define TUSB_CFG_ATTR_USBRAM ATTR_SECTION(.data.$RAM3)
#endif
#elif defined __CC_ARM // Compiled with Keil armcc
- #define TUSB_CFG_ATTR_USBRAM
+ #if (TUSB_CFG_MCU == MCU_LPC175X_6X)
+ #define TUSB_CFG_ATTR_USBRAM // LPC17xx USB DMA can access all address
+ #elif (TUSB_CFG_MCU == MCU_LPC43XX)
+ #define TUSB_CFG_ATTR_USBRAM // Use keil tool configure to have AHB SRAM as default memory
+ #endif
#elif defined __ICCARM__ // compiled with IAR
- #if (TUSB_CFG_MCU == MCU_LPC43XX)
- #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
- #elif (TUSB_CFG_MCU == MCU_LPC175X_6X)
+ #if (TUSB_CFG_MCU == MCU_LPC175X_6X)
#define TUSB_CFG_ATTR_USBRAM
+ #elif (TUSB_CFG_MCU == MCU_LPC43XX)
+ #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
#endif
#else