From b35d2c8f43bd8fa80fd85bbb44c9f3f1d6030e20 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 11 Dec 2013 12:13:22 +0700 Subject: add lpc17xx build config for host demo --- demos/device/device_os_none/tusb_config.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'demos/device') diff --git a/demos/device/device_os_none/tusb_config.h b/demos/device/device_os_none/tusb_config.h index 4bf886b59..71a14acd0 100644 --- a/demos/device/device_os_none/tusb_config.h +++ b/demos/device/device_os_none/tusb_config.h @@ -73,6 +73,8 @@ #define TUSB_CFG_HOST_HID_MOUSE 0 #define TUSB_CFG_HOST_HID_GENERIC 0 #define TUSB_CFG_HOST_MSC 0 +#define TUSB_CFG_HOST_CDC 0 +#define TUSB_CFG_HOST_CDC_RNDIS 0 //--------------------------------------------------------------------+ // DEVICE CONFIGURATION @@ -96,8 +98,9 @@ //--------------------------------------------------------------------+ #define TUSB_CFG_DEBUG 3 -#define TUSB_CFG_OS TUSB_OS_NONE // defined using eclipse build +//#define TUSB_CFG_OS TUSB_OS_NONE // defined using eclipse build //#define TUSB_CFG_OS_TASK_PRIO + #define TUSB_CFG_OS_TICKS_PER_SECOND 1000 #ifdef __CODE_RED // make use of code red's support for ram region macros @@ -112,10 +115,19 @@ #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 __ICCARM__ // compiled with IAR + + #define TUSB_CFG_ATTR_USBRAM @ ".ahb_sram1" + #else + #error compiler not specified + #endif -- cgit v1.3.1