Commit Graph

42 Commits

Author SHA1 Message Date
hathach
ad72db5aea change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code
change pipe xfer API buffer from void* to uint8_t*
change FIFO_DEF to have a separated buffer to be compatible with IAR\
refractor IAR data alignment pragma
2014-03-10 13:13:13 +07:00
hathach
f0e705c8da IAR host freertos works with EA4357 2014-03-06 12:51:16 +07:00
hathach
90b7ead017 refine keyboard host demo (added new line for enter key) 2014-03-02 21:39:18 +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
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
d020c2f609 remove immediately reset when device plug.
check to make sure device is still plug after initial delay (200ms) before reset
remove blocking waiting when reset in ehci.c
2013-12-19 13:55:22 +07:00
hathach
cfcef0558a fix plug & unplug issue by reseting port immediately instead of waiting for usbh enumeration task to do so 2013-12-19 12:43:22 +07:00
hathach
fce6252456 hub works with ohci as well. There is some problem when plug & unplug device hmm 2013-12-19 12:21:40 +07:00
hathach
cc736fd45e able to run ohci hid mouse demo
- an old mouse cause double plug event
- an old mouse failed to response the first get 8 byte device descriptor
2013-12-19 11:59:19 +07:00
hathach
75ffc0bfec implement ohci
- hcd_port_reset
- hcd_port_connect_status
- hcd_port_speed_get
- hcd_pipe_control_open
- hcd_pipe_control_xfer
- done_queue_isr for control xfer

able to go through enumeration with MSC device
2013-12-16 12:35:05 +07:00
hathach
b35d2c8f43 add lpc17xx build config for host demo 2013-12-11 12:13:22 +07:00
hathach
a5ba283557 change MCU to TUSB_CFG_MCU 2013-11-25 12:48:27 +07:00
hathach
b2b53e61fb refractor dcd_controller_reset & hcd_controller_reset to hal_controller_reset 2013-11-06 12:15:11 +07:00
hathach
064d0cf5a9 document cdc 2013-10-27 19:59:06 +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
15c80a9580 clean up 2013-10-16 12:35:55 +07:00
hathach
3cc169f2fd able to mount one device on the hub 2013-09-30 15:16:23 +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
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
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
hathach
d8907c9a2b IAR host none project working 2013-09-19 18:18:05 +07:00
hathach
86681fe442 starting to add support for IAR workbench 2013-09-19 16:11:11 +07:00
hathach
e4ae45359d fix bug with RNDIS class open using non-static variable p_cdc
fix bug with SUBTASK_EXIT with single if (add do while wrapper)
add payloay message
able to send initialize & wait on notification pipe & get initialize cmpt
2013-07-05 20:21:24 +07:00
hathach
c08c655fd1 implementing initializing for RNDIS 2013-07-05 11:46:12 +07:00
hathach
e94ce81b04 fix compilation error 2013-07-01 10:43:55 +07:00
hathach
a4f7dc1105 add & pass a first few test for cdc host
implement cdch_open_subtask
2013-07-01 10:35:37 +07:00
hathach
7e6e5cc356 [CDC]
- add configure option
- add include path
- add driver function table
2013-06-29 16:06:45 +07:00
hathach
132c3996ea move scu_pinmux(0x2, 5, MD_PLN | MD_EZI | MD_ZI, FUNC2) to hal/hal_lpc43xx.c
dual host run without problem with mcb4300
2013-05-23 14:56:11 +07:00
hathach
8cb7818bcc - move CMSIS & driver lib for lpc13u to codebase bsp/lpc13xx
- change descriptor.c/h able to build device example
2013-05-23 13:22:46 +07:00
hathach
40503b913b abstract os priority for application tasks 2013-05-14 21:32:13 +07:00
hathach
fd49cff8e8 add stub for msc host & hub driver 2013-05-06 20:09:06 +07:00
hathach
120db28a17 change format of file header & license spacing 2013-05-06 12:50:19 +07:00
hathach
e9dbce5f1b add TUSB_CFG_OS_TASK_PRIO to mandatory option for using an RTOS
using plain char for error enum character
increase freeRTOS configMAX_PRIORITIES to 16
house keeping & clean up compiler warning
2013-04-25 11:00:56 +07:00
hathach
3f9a73a34d change config to use USB0 only
fix some compiler warnings
2013-04-22 10:44:51 +07:00
hathach
cb4981dd2d adding host_freertos configure & build etc 2013-04-16 16:30:36 +08:00
hathach
54221bb73b move code in host demo to /src in prepare for support freeRTOS projects 2013-04-15 17:30:36 +08:00