summaryrefslogtreecommitdiff
path: root/demos/host/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-13 00:12:18 +0700
committerhathach <[email protected]>2014-03-13 00:12:18 +0700
commit1610aa3e29d0069c9162a2f853b6ddc38254b0a1 (patch)
treece250bfe5651d66c6a890045da1f9e4d3d56435b /demos/host/src
parent1d98e895fa80d1890640e32e83a487e667bfcf9d (diff)
fix build for host freertos xpresso
Diffstat (limited to 'demos/host/src')
-rw-r--r--demos/host/src/tusb_config.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h
index e2dab0cdd..13362054c 100644
--- a/demos/host/src/tusb_config.h
+++ b/demos/host/src/tusb_config.h
@@ -68,7 +68,7 @@
#define TUSB_CFG_HOST_HID_KEYBOARD 1
#define TUSB_CFG_HOST_HID_MOUSE 1
#define TUSB_CFG_HOST_HID_GENERIC 0
-#define TUSB_CFG_HOST_MSC 1
+#define TUSB_CFG_HOST_MSC 0
#define TUSB_CFG_HOST_CDC 1
#define TUSB_CFG_HOST_CDC_RNDIS 0
@@ -88,24 +88,24 @@
#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_RAM_SECTION ".data.$RAM2"
+ #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
#elif (TUSB_CFG_MCU == MCU_LPC43XX)
- #define TUSB_RAM_SECTION ".data.$RAM3"
- #elif (TUSB_CFG_MCU == MCU_LPC175X_6X)
- #define TUSB_RAM_SECTION ".data.$RAM2"
- #else
- #error Please define USB RAM section
+ #define TUSB_CFG_ATTR_USBRAM ATTR_SECTION(.data.$RAM3)
#endif
- #define TUSB_CFG_ATTR_USBRAM __attribute__ ((section(TUSB_RAM_SECTION)))
-
#elif defined __CC_ARM // Compiled with Keil armcc
#define TUSB_CFG_ATTR_USBRAM
#elif defined __ICCARM__ // compiled with IAR
- #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
+ #if (TUSB_CFG_MCU == MCU_LPC43XX)
+ #define TUSB_CFG_ATTR_USBRAM _Pragma("location=\".ahb_sram1\"")
+ #elif (TUSB_CFG_MCU == MCU_LPC175X_6X)
+ #define TUSB_CFG_ATTR_USBRAM
+ #endif
#else