From 9ed3e805823f108c3e148f800851c5e091d76ce0 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 10 Sep 2013 11:47:05 +0700 Subject: [PATCH] keil project can mount mouse, but cannot mount rndis --- demos/host/host_os_none/host_os_none.uvopt | 546 +++++++++++++++----- demos/host/host_os_none/host_os_none.uvproj | 254 ++++----- demos/host/src/main.c | 5 +- 3 files changed, 537 insertions(+), 268 deletions(-) diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt index 21bc9750..e2aa37b2 100644 --- a/demos/host/host_os_none/host_os_none.uvopt +++ b/demos/host/host_os_none/host_os_none.uvopt @@ -108,7 +108,7 @@ 1 1 1 - 0 + 1 0 1 1 @@ -128,7 +128,7 @@ - ..\src\Internal FLASH.ini + Segger\JL2CM3.dll @@ -145,7 +145,7 @@ 0 DLGUARM - ¾ + 0 @@ -158,44 +158,18 @@ -O975 -S0 -C0 -FO7 -FD10000000 -FC800 -FN2 -FF0LPC18xx43xx_512_BA -FS01A000000 -FL080000 -FF1LPC18xx43xx_512_BB -FS11B000000 -FL180000) - - - 0 - 0 - 126 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - C:\Users\hathach\Dropbox\tinyusb\workspace\tinyusb\demos\bsp\boards\printf_retarget.c - - -
- - 1 - 0 - 143 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - C:\Users\hathach\Dropbox\tinyusb\workspace\tinyusb\demos\bsp\boards\printf_retarget.c - - -
-
+ + + + 0 + 1 + usbh_devices + + 0 1 - 0 + 1 0 0 0 @@ -238,28 +212,20 @@ 1 0 0 - 21 + 6 0 - 1 - 8 + 94 + 96 0 ..\src\main.c main.c 0 0 - - - - startup - 1 - 0 - 0 - 0 - 2 + 1 2 - 2 + 1 0 0 0 @@ -267,37 +233,29 @@ 0 0 0 - ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s - startup_LPC43xx.s + ..\src\cdc_serial_app.c + cdc_serial_app.c 0 0 - - - - cmsis - 1 - 0 - 0 - 0 - 3 + 1 3 1 0 0 0 0 - 1 - 1 + 114 + 124 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_uart.c - lpc43xx_uart.c + ..\src\keyboard_app.c + keyboard_app.c 0 0 - 3 + 1 4 1 0 @@ -307,72 +265,24 @@ 0 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c - lpc43xx_scu.c + ..\src\mouse_app.c + mouse_app.c 0 0 - 3 + 1 5 1 0 0 - 0 + 44 0 - 0 - 0 + 32 + 8 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_gpio.c - lpc43xx_gpio.c - 0 - 0 - - - 3 - 6 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_cgu.c - lpc43xx_cgu.c - 0 - 0 - - - 3 - 7 - 1 - 0 - 0 - 0 - 0 - 29 - 37 - 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\system_LPC43xx.c - system_LPC43xx.c - 0 - 0 - - - 3 - 8 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_i2c.c - lpc43xx_i2c.c + ..\src\rndis_app.c + rndis_app.c 0 0 @@ -385,15 +295,15 @@ 0 0 - 4 - 9 + 2 + 6 1 0 0 - 0 + 13 0 - 1 - 1 + 34 + 35 0 ..\..\bsp\boards\board.c board.c @@ -401,15 +311,15 @@ 0 - 4 - 10 + 2 + 7 1 0 0 0 0 - 1 - 1 + 84 + 92 0 ..\..\bsp\boards\embedded_artists\board_ea4357.c board_ea4357.c @@ -417,15 +327,15 @@ 0 - 4 - 11 + 2 + 8 1 0 0 - 27 + 2 0 112 - 125 + 141 0 ..\..\bsp\boards\printf_retarget.c printf_retarget.c @@ -433,8 +343,8 @@ 0 - 4 - 12 + 2 + 9 1 0 0 @@ -457,8 +367,8 @@ 0 0 - 5 - 13 + 3 + 10 1 0 0 @@ -473,8 +383,8 @@ 0 - 5 - 14 + 3 + 11 1 0 0 @@ -488,6 +398,358 @@ 0 0 + + 3 + 12 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\host\hcd.c + hcd.c + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\host\hub.c + hub.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 32 + 0 + 496 + 360 + 0 + ..\..\..\tinyusb\host\usbh.c + usbh.c + 0 + 0 + + + 3 + 15 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\host\ehci\ehci.c + ehci.c + 0 + 0 + + + 3 + 16 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\hal\hal_lpc11uxx.c + hal_lpc11uxx.c + 0 + 0 + + + 3 + 17 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\hal\hal_lpc13uxx.c + hal_lpc13uxx.c + 0 + 0 + + + 3 + 18 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\hal\hal_lpc43xx.c + hal_lpc43xx.c + 0 + 0 + + + 3 + 19 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\hal\hal_lpc175x_6x.c + hal_lpc175x_6x.c + 0 + 0 + + + 3 + 20 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\common\errors.c + errors.c + 0 + 0 + + + 3 + 21 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\common\fifo.c + fifo.c + 0 + 0 + + + 3 + 22 + 1 + 0 + 0 + 45 + 0 + 136 + 89 + 0 + ..\..\..\tinyusb\class\cdc_host.c + cdc_host.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\class\cdc_rndis_host.c + cdc_rndis_host.c + 0 + 0 + + + 3 + 24 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\class\hid_host.c + hid_host.c + 0 + 0 + + + 3 + 25 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\..\tinyusb\class\msc_host.c + msc_host.c + 0 + 0 + + + + + cmsis + 1 + 0 + 0 + 0 + + 4 + 26 + 1 + 0 + 0 + 0 + 0 + 2 + 7 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_uart.c + lpc43xx_uart.c + 0 + 0 + + + 4 + 27 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c + lpc43xx_scu.c + 0 + 0 + + + 4 + 28 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_gpio.c + lpc43xx_gpio.c + 0 + 0 + + + 4 + 29 + 1 + 0 + 0 + 31 + 0 + 1 + 9 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_cgu.c + lpc43xx_cgu.c + 0 + 0 + + + 4 + 30 + 1 + 0 + 0 + 0 + 0 + 30 + 37 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\system_LPC43xx.c + system_LPC43xx.c + 0 + 0 + + + 4 + 31 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_i2c.c + lpc43xx_i2c.c + 0 + 0 + + + + + startup + 1 + 0 + 0 + 0 + + 5 + 32 + 2 + 0 + 0 + 20 + 0 + 144 + 155 + 0 + ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s + startup_LPC43xx.s + 0 + 0 + diff --git a/demos/host/host_os_none/host_os_none.uvproj b/demos/host/host_os_none/host_os_none.uvproj index de815611..31371ddd 100644 --- a/demos/host/host_os_none/host_os_none.uvproj +++ b/demos/host/host_os_none/host_os_none.uvproj @@ -129,7 +129,7 @@ 1 - 0 + 1 0 1 1 @@ -152,7 +152,7 @@ - ..\src\Internal FLASH.ini + Segger\JL2CM3.dll @@ -231,8 +231,8 @@ 0 0 0 - 1 - 0 + 0 + 1 0 @@ -395,56 +395,136 @@ main.c 1 ..\src\main.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 2 - 2 - 2 - 2 - 11 - - - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - - - - - - - - - + + + cdc_serial_app.c + 1 + ..\src\cdc_serial_app.c + + + keyboard_app.c + 1 + ..\src\keyboard_app.c + + + mouse_app.c + 1 + ..\src\mouse_app.c + + + rndis_app.c + 1 + ..\src\rndis_app.c - startup + boards - startup_LPC43xx.s - 2 - ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s + board.c + 1 + ..\..\bsp\boards\board.c + + + board_ea4357.c + 1 + ..\..\bsp\boards\embedded_artists\board_ea4357.c + + + printf_retarget.c + 1 + ..\..\bsp\boards\printf_retarget.c + + + pca9532.c + 1 + ..\..\bsp\boards\embedded_artists\oem_base_board\pca9532.c + + + + + tinyusb + + + tusb.c + 1 + ..\..\..\tinyusb\tusb.c + + + osal_none.c + 1 + ..\..\..\tinyusb\osal\osal_none.c + + + hcd.c + 1 + ..\..\..\tinyusb\host\hcd.c + + + hub.c + 1 + ..\..\..\tinyusb\host\hub.c + + + usbh.c + 1 + ..\..\..\tinyusb\host\usbh.c + + + ehci.c + 1 + ..\..\..\tinyusb\host\ehci\ehci.c + + + hal_lpc11uxx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc11uxx.c + + + hal_lpc13uxx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc13uxx.c + + + hal_lpc43xx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc43xx.c + + + hal_lpc175x_6x.c + 1 + ..\..\..\tinyusb\hal\hal_lpc175x_6x.c + + + errors.c + 1 + ..\..\..\tinyusb\common\errors.c + + + fifo.c + 1 + ..\..\..\tinyusb\common\fifo.c + + + cdc_host.c + 1 + ..\..\..\tinyusb\class\cdc_host.c + + + cdc_rndis_host.c + 1 + ..\..\..\tinyusb\class\cdc_rndis_host.c + + + hid_host.c + 1 + ..\..\..\tinyusb\class\hid_host.c + + + msc_host.c + 1 + ..\..\..\tinyusb\class\msc_host.c @@ -484,82 +564,12 @@ - boards + startup - board.c - 1 - ..\..\bsp\boards\board.c - - - board_ea4357.c - 1 - ..\..\bsp\boards\embedded_artists\board_ea4357.c - - - printf_retarget.c - 1 - ..\..\bsp\boards\printf_retarget.c - - - pca9532.c - 1 - ..\..\bsp\boards\embedded_artists\oem_base_board\pca9532.c - - - - - tinyusb - - - tusb.c - 1 - ..\..\..\tinyusb\tusb.c - - - 2 - 0 - 0 - 0 - 0 - 0 - 2 - 2 - 2 - 2 - 11 - - - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - - - - - - - - - - - - osal_none.c - 1 - ..\..\..\tinyusb\osal\osal_none.c + startup_LPC43xx.s + 2 + ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s diff --git a/demos/host/src/main.c b/demos/host/src/main.c index a58fccdd..ac8f38f9 100644 --- a/demos/host/src/main.c +++ b/demos/host/src/main.c @@ -135,10 +135,7 @@ int main(void) //------------- this part of code should not be reached -------------// hal_debugger_breakpoint(); - while(1) - { - - } + while(1) { } return 0; }