From 6ceb992f2c06d2f34cab8910db48ecf464724ccf Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 12 Mar 2014 15:57:02 +0700 Subject: [PATCH] clean up --- demos/host/host_os_none/host_os_none.uvopt | 92 +++++++++++++++------- demos/host/src/tusb_config.h | 16 +--- 2 files changed, 66 insertions(+), 42 deletions(-) diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt index e37c21df2..178b94254 100644 --- a/demos/host/host_os_none/host_os_none.uvopt +++ b/demos/host/host_os_none/host_os_none.uvopt @@ -157,7 +157,7 @@ 0 0 - 405 + 402 1
0
0 @@ -391,7 +391,7 @@ 0 0 - 405 + 402 1
0
0 @@ -499,7 +499,7 @@ 1 0 - 0 + 1 8 @@ -594,7 +594,24 @@ -O975 -S0 -C0 -FO7 -FD10000000 -FC800 -FN2 -FF0LPC18xx43xx_512_BA -FS01A000000 -FL080000 -FF1LPC18xx43xx_512_BB -FS11B000000 -FL180000) - + + + 0 + 0 + 402 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + C:\Users\hathach\Dropbox\tinyusb\workspace\tinyusb\demos\host\src\cli.c + + +
+
0 @@ -612,7 +629,7 @@ 0 1 - 1 + 0 0 0 0 @@ -629,7 +646,7 @@ 0 0 0 - 1 + 0 0 0 0 @@ -696,7 +713,7 @@ 1 0 - 1 + 0 8 @@ -791,7 +808,24 @@ -O975 -S0 -C0) - + + + 0 + 0 + 402 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + C:\Users\hathach\Dropbox\tinyusb\workspace\tinyusb\demos\host\src\cli.c + + +
+
0 @@ -882,10 +916,10 @@ 1 0 0 - 0 + 6 0 - 151 - 158 + 139 + 145 0 ..\src\main.c main.c @@ -898,10 +932,10 @@ 1 0 0 - 0 + 3 0 - 1 - 1 + 139 + 142 0 ..\src\cdc_serial_app.c cdc_serial_app.c @@ -964,8 +998,8 @@ 0 0 0 - 1 - 1 + 94 + 149 0 ..\src\msc_app.c msc_app.c @@ -978,10 +1012,10 @@ 1 0 0 - 0 + 21 0 - 0 - 0 + 382 + 394 0 ..\src\cli.c cli.c @@ -992,7 +1026,7 @@ tinyusb - 1 + 0 0 0 0 @@ -1428,7 +1462,7 @@ 0 39 0 - 61 + 62 63 0 ..\..\..\vendor\fatfs\diskio.c @@ -1442,9 +1476,9 @@ 1 0 0 - 15 + 17 0 - 2117 + 2118 2122 0 ..\..\..\vendor\fatfs\ff.c @@ -1516,7 +1550,7 @@ 0 17 0 - 86 + 87 90 0 ..\..\bsp\boards\printf_retarget.c @@ -1544,7 +1578,7 @@ 4 41 1 - 1 + 0 0 0 0 @@ -1652,7 +1686,7 @@ 0 20 0 - 147 + 148 159 0 ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s @@ -1866,10 +1900,10 @@ 2 0 0 - 0 + 20 0 - 143 - 145 + 139 + 158 0 ..\..\bsp\lpc175x_6x\startup_keil\startup_LPC17xx.s startup_LPC17xx.s diff --git a/demos/host/src/tusb_config.h b/demos/host/src/tusb_config.h index e12f020a6..e2dab0cdd 100644 --- a/demos/host/src/tusb_config.h +++ b/demos/host/src/tusb_config.h @@ -72,19 +72,6 @@ #define TUSB_CFG_HOST_CDC 1 #define TUSB_CFG_HOST_CDC_RNDIS 0 -//--------------------------------------------------------------------+ -// DEVICE CONFIGURATION -//--------------------------------------------------------------------+ -#define TUSB_CFG_DEVICE_CONTROL_ENDOINT_SIZE 64 // TODO refractor remove -#define TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT 4 - -//------------- CLASS -------------// -#define TUSB_CFG_DEVICE_HID_KEYBOARD 0 -#define TUSB_CFG_DEVICE_HID_MOUSE 0 -#define TUSB_CFG_DEVICE_HID_GENERIC 0 -#define TUSB_CFG_DEVICE_MSC 0 -#define TUSB_CFG_DEVICE_CDC 0 - //--------------------------------------------------------------------+ // COMMON CONFIGURATION //--------------------------------------------------------------------+ @@ -95,6 +82,9 @@ #define TUSB_CFG_OS_TICKS_PER_SECOND 1000 +//--------------------------------------------------------------------+ +// USB RAM PLACEMENT +//--------------------------------------------------------------------+ #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)