87 Commits

Author SHA1 Message Date
hathach
93a60641ea fix issue with SVC_Handler SVCall_Handler name between keil & xpresso start up file. Host freertos works with lpc17xx 2014-03-04 14:15:10 +07:00
hathach
c11946f318 able to build keil with lpc17xx (non os + freeRTOS) 2014-03-03 17:53:09 +07:00
hathach
22a84f744d able to build freeRTOS with lpc175x_6x 2014-03-03 16:25:34 +07:00
hathach
5f8f046eaa refractor remove tusbh_msc_is_failed
increase usbh enum task from 150 to 200 due to stack overflow when mounting msc device
added task for msc host freeRTOS with stack = 300 (still cannot execute copy command)
2014-02-28 18:42:33 +07:00
hathach
da6b2fbef8 EHCI: immediately reset port when device connected. This proves to help prevent duplication connection event (also with OHCI)
increase delay after reset to 100 ms (NXP's EHCI does not work with 50ms)

--> fix all duplication connection with OHCI & EHCI
2014-02-28 17:08:47 +07:00
hathach
a1978e20fe merge common define in osal/osal_cmsis_rtx.h & osal/osal_freeRTOS.h 2014-02-28 15:50:04 +07:00
hathach
856be67189 keil support for lpc17xx host 2014-02-20 16:31:34 +07:00
hathach
4b6c6929cb fix the duplicated plug connection status change with lpc17xx by using immediate reset on isr. However Khanh's G5 mouse is not enumerated !!
remove TUSB_CFG_CONFIGURATION_MAX from config file
fix some warning
2014-02-20 16:06:31 +07:00
hathach
533c8d2eed use hcd_pipe_is_busy instead of hcd_pipe_is_idle
remove hcd_pipe_is_idle
2014-02-20 10:41:31 +07:00
hathach
bbe26facb3 some code clean up
NOTE: host on ea4357 does not work anymore
2014-02-19 15:29:29 +07:00
hathach
275e834bbe add device_os_none keil project for all boards 2013-12-27 13:40:59 +07:00
hathach
b35d2c8f43 add lpc17xx build config for host demo 2013-12-11 12:13:22 +07:00
hathach
8bd6440547 fix error in dcd_lpc175x_6x (still has problem with control transfer)
fix build error for host
start to add keil support for device
opt out pca9532.c when ea4357 is not the selected board
2013-12-11 11:31:09 +07:00
hathach
a5ba283557 change MCU to TUSB_CFG_MCU 2013-11-25 12:48:27 +07:00
hathach
7ff0dbb64c add tusbd_cdc_is_busy
enhance cdc serial device demo
refractor fifo.c
2013-11-08 14:46:48 +07:00
hathach
83d9ececfb msc add support
- SCSI_CMD_MODE_SELECT_6
- SCSI_CMD_MODE_SENSE_6
- SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL

fix msc device bug with no data unsupported command
complete msc device demo with ram disk of 8KB
2013-11-05 13:02:15 +07:00
hathach
357813f171 implementing sw device stack 2013-10-29 11:27:25 +07:00
hathach
d925026089 make device keyboard buildable & runnable with ea4357 2013-10-27 21:33:06 +07:00
hathach
318a058d3c static assert to check OSAL_QUEUE_DEF's queue_depth parameter < 256
enable HOST_HCD_XFER_INTERRUPT by default (previously only enabled with HID), as it is widely used
implement tusbh_cdc_is_busy
add compilation switch in usbh enumeration for hub
rewrite CDC serial application to address usb-serial race condition
2013-10-27 19:34:36 +07:00
hathach
b71ffe3d5a change TUSB_CFG_CONTROLLER0/1_MODE to TUSB_CFG_CONTROLLER_0/1_MODE for clearance
adding configuration docs for tinyusb_config.h
document HID mouse & keyboard API
2013-10-24 15:32:54 +07:00
hathach
6f9172c15f clean up warnings here and there 2013-10-02 14:20:05 +07:00
hathach
1263dbb122 enhacne msc demo, update IAR project file 2013-10-02 13:32:39 +07:00
hathach
5c8389b9ae update freertos project
temp hack to fix problem with no TD on status endpoint of hub in case of error
2013-10-02 11:01:28 +07:00
hathach
ef83b8e10a wrap up msc demo 2013-10-01 17:05:02 +07:00
hathach
fffd613897 enhance cd command 2013-10-01 16:36:52 +07:00
hathach
18b3179bc6 refractor msc host app examples 2013-10-01 16:11:34 +07:00
hathach
640b0ec546 - move disconnection handle to enum task --> move tusbh_xxx_unmount is invoked in non-isr context 2013-10-01 13:53:54 +07:00
hathach
4da3b03430 refractor hub 2013-10-01 12:12:35 +07:00
hathach
93821c55ce hack ehci advance async to handle disconnect via hub 2013-09-30 18:40:20 +07:00
hathach
5fb22e3f34 refractor hub 2013-09-30 16:13:08 +07:00
hathach
821f85cb20 refractor hub 2013-09-30 15:34:22 +07:00
hathach
3cc169f2fd able to mount one device on the hub 2013-09-30 15:16:23 +07:00
hathach
cb600ed988 clean up hid host (temp let test failed) 2013-09-28 01:01:44 +07:00
hathach
eb1a101667 house keeping 2013-09-27 22:38:23 +07:00
hathach
26f75d6cac house keeping 2013-09-26 15:35:15 +07:00
hathach
238afb474f house keeping 2013-09-26 15:15:16 +07:00
hathach
9d60db0f9f add scsi write10 & test unit ready
done copy command
implement get_fattime using __DATE__ and number of calls
2013-09-26 14:37:40 +07:00
hathach
4bdede53eb refractor cli error handling
add cat command
2013-09-26 11:27:48 +07:00
hathach
89898acd5d almost complete cli for msc 2013-09-25 19:52:05 +07:00
hathach
1fee50b9fe add tusbh_msc_status
reanme PRINTF_TARGET_DEBUG_CONSOLE to PRINTF_TARGET_SEMIHOST
add read10 implementation
able to read fat root sector
2013-09-25 16:20:38 +07:00
hathach
cf65f859be working on fatfs integration
fix retarget input for lpcxpresso
2013-09-25 11:23:53 +07:00
hathach
bd9af2d57b added cli support 2013-09-24 21:04:56 +07:00
hathach
bbfa85aa08 allow a limited model to deal with stalled pipe/transaction
added stall clear & able to mount the stupid toshiba thumb drive

add HCD pipe API
- bool hcd_pipe_is_busy(pipe_handle_t pipe_hdl);
- bool hcd_pipe_is_stalled(pipe_handle_t pipe_hdl);
- uint8_t hcd_pipe_get_endpoint_addr(pipe_handle_t pipe_hdl);
- tusb_error_t hcd_pipe_clear_stall(pipe_handle_t pipe_hdl);

remove tusbh_device_mount_failed_cb (not neccessary for user)
2013-09-24 18:23:34 +07:00
hathach
63b776f7cf add some tests support for msc host
refractor msch buffer for getting inital scsi like inquiry, read capacity
adding support for resovling stall on control pipe
2013-09-24 15:21:16 +07:00
hathach
cc91a73cdc fix pingstate for highspeed bulk out transfer
temp implementation of msc host --> can issue inquiry command
2013-09-22 18:44:55 +07:00
hathach
5708863859 house keeping, clean up warnings 2013-09-21 14:38:40 +07:00
hathach
d15ba08fdc house keeping 2013-09-21 13:17:43 +07:00
hathach
295612b48f remove ATTR_WEAK for all necessary driver callback
fix ceedling tests
2013-09-21 00:42:39 +07:00
hathach
f8f398a681 start to add msc host, fix dangerous problem with unstable device when plugged --> 200 ms delay. 50ms delay after each port reset 2013-09-20 23:53:48 +07:00
hathach
52ae0afeb6 refine hid host driver 2013-09-20 16:20:28 +07:00