From 9ed3e805823f108c3e148f800851c5e091d76ce0 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 10 Sep 2013 11:47:05 +0700 Subject: keil project can mount mouse, but cannot mount rndis --- demos/host/host_os_none/host_os_none.uvopt | 480 +++++++++++++++++++++------- demos/host/host_os_none/host_os_none.uvproj | 244 +++++++------- demos/host/src/main.c | 5 +- 3 files changed, 499 insertions(+), 230 deletions(-) diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt index 21bc97509..e2aa37b23 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,140 @@ 1 0 0 - 21 + 6 0 - 1 - 8 + 94 + 96 0 ..\src\main.c main.c 0 0 + + 1 + 2 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\src\cdc_serial_app.c + cdc_serial_app.c + 0 + 0 + + + 1 + 3 + 1 + 0 + 0 + 0 + 0 + 114 + 124 + 0 + ..\src\keyboard_app.c + keyboard_app.c + 0 + 0 + + + 1 + 4 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + ..\src\mouse_app.c + mouse_app.c + 0 + 0 + + + 1 + 5 + 1 + 0 + 0 + 44 + 0 + 32 + 8 + 0 + ..\src\rndis_app.c + rndis_app.c + 0 + 0 + - startup + boards 1 0 0 0 2 - 2 - 2 + 6 + 1 + 0 + 0 + 13 + 0 + 34 + 35 + 0 + ..\..\bsp\boards\board.c + board.c + 0 + 0 + + + 2 + 7 + 1 + 0 + 0 + 0 + 0 + 84 + 92 + 0 + ..\..\bsp\boards\embedded_artists\board_ea4357.c + board_ea4357.c + 0 + 0 + + + 2 + 8 + 1 + 0 + 0 + 2 + 0 + 112 + 141 + 0 + ..\..\bsp\boards\printf_retarget.c + printf_retarget.c + 0 + 0 + + + 2 + 9 + 1 0 0 0 @@ -267,38 +353,38 @@ 0 0 0 - ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s - startup_LPC43xx.s + ..\..\bsp\boards\embedded_artists\oem_base_board\pca9532.c + pca9532.c 0 0 - cmsis + tinyusb 1 0 0 0 3 - 3 + 10 1 0 0 0 0 - 1 - 1 + 0 + 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_uart.c - lpc43xx_uart.c + ..\..\..\tinyusb\tusb.c + tusb.c 0 0 3 - 4 + 11 1 0 0 @@ -307,14 +393,14 @@ 0 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c - lpc43xx_scu.c + ..\..\..\tinyusb\osal\osal_none.c + osal_none.c 0 0 3 - 5 + 12 1 0 0 @@ -323,14 +409,14 @@ 0 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_gpio.c - lpc43xx_gpio.c + ..\..\..\tinyusb\host\hcd.c + hcd.c 0 0 3 - 6 + 13 1 0 0 @@ -339,30 +425,46 @@ 0 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_cgu.c - lpc43xx_cgu.c + ..\..\..\tinyusb\host\hub.c + hub.c 0 0 3 - 7 + 14 + 1 + 0 + 0 + 32 + 0 + 496 + 360 + 0 + ..\..\..\tinyusb\host\usbh.c + usbh.c + 0 + 0 + + + 3 + 15 1 0 0 0 0 - 29 - 37 + 0 + 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\system_LPC43xx.c - system_LPC43xx.c + ..\..\..\tinyusb\host\ehci\ehci.c + ehci.c 0 0 3 - 8 + 16 1 0 0 @@ -371,70 +473,62 @@ 0 0 0 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_i2c.c - lpc43xx_i2c.c + ..\..\..\tinyusb\hal\hal_lpc11uxx.c + hal_lpc11uxx.c 0 0 - - - - boards - 1 - 0 - 0 - 0 - 4 - 9 + 3 + 17 1 0 0 0 0 - 1 - 1 + 0 + 0 0 - ..\..\bsp\boards\board.c - board.c + ..\..\..\tinyusb\hal\hal_lpc13uxx.c + hal_lpc13uxx.c 0 0 - 4 - 10 + 3 + 18 1 0 0 0 0 - 1 - 1 + 0 + 0 0 - ..\..\bsp\boards\embedded_artists\board_ea4357.c - board_ea4357.c + ..\..\..\tinyusb\hal\hal_lpc43xx.c + hal_lpc43xx.c 0 0 - 4 - 11 + 3 + 19 1 0 0 - 27 + 0 0 - 112 - 125 + 0 + 0 0 - ..\..\bsp\boards\printf_retarget.c - printf_retarget.c + ..\..\..\tinyusb\hal\hal_lpc175x_6x.c + hal_lpc175x_6x.c 0 0 - 4 - 12 + 3 + 20 1 0 0 @@ -443,22 +537,118 @@ 0 0 0 - ..\..\bsp\boards\embedded_artists\oem_base_board\pca9532.c - pca9532.c + ..\..\..\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 - tinyusb + cmsis 1 0 0 0 - 5 - 13 + 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 @@ -467,14 +657,14 @@ 0 0 0 - ..\..\..\tinyusb\tusb.c - tusb.c + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c + lpc43xx_scu.c 0 0 - 5 - 14 + 4 + 28 1 0 0 @@ -483,8 +673,80 @@ 0 0 0 - ..\..\..\tinyusb\osal\osal_none.c - osal_none.c + ..\..\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 de815611e..31371ddd3 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,91 +395,26 @@ 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 - - - - - - - - - - - - - startup - - startup_LPC43xx.s - 2 - ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s - - - - - cmsis - - - lpc43xx_uart.c + cdc_serial_app.c 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_uart.c + ..\src\cdc_serial_app.c - lpc43xx_scu.c + keyboard_app.c 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c + ..\src\keyboard_app.c - lpc43xx_gpio.c + mouse_app.c 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_gpio.c + ..\src\mouse_app.c - lpc43xx_cgu.c + rndis_app.c 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_cgu.c - - - system_LPC43xx.c - 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\system_LPC43xx.c - - - lpc43xx_i2c.c - 1 - ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_i2c.c + ..\src\rndis_app.c @@ -515,52 +450,127 @@ 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 + + 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 + + + + + cmsis + + + lpc43xx_uart.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_uart.c + + + lpc43xx_scu.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_scu.c + + + lpc43xx_gpio.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_gpio.c + + + lpc43xx_cgu.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_cgu.c + + + system_LPC43xx.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\system_LPC43xx.c + + + lpc43xx_i2c.c + 1 + ..\..\bsp\lpc43xx\CMSISv2p10_LPC43xx_DriverLib\src\lpc43xx_i2c.c + + + + + startup + + + 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 a58fccdd2..ac8f38f95 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; } -- cgit v1.3.1