hathach
e14864759d
refractor
...
- rename TUSB_DEVICE_STATE_READY to TUSB_DEVICE_STATE_CONFIGURED
- move device_state to core/tusb_types.h
- remove usbh_device_hcd_data_cleaned_up_cb, hcd now set the state directly
2013-03-23 12:13:02 +07:00
hathach
d7ba86c85e
refractor
...
- rename usbh_device_info_t.status to state
- rename enum TUSB_DEVICE_STATUS_* to TUSB_DEVICE_STATE_*
2013-03-23 11:34:51 +07:00
hathach
dbaf6c0d30
- fix bug when unplugged unmounted-already device (mostly plugged when power on)
...
- add hal_debugger_is_attached & hal_debugger_breakpoint
- assert will suspend (place breakpoint) if the condition is failed and debugger is attached. Otherwise, a message to uart is printed
- fix get control qhd function when dev_addr is not zero (shifted 1)
- fix wrong logic for unsupported class
2013-03-22 17:08:51 +07:00
hathach
97c436a16e
add usbh_pipe_control_close (in conjunction with usbh pipe control open)
...
close control pipe when unplugged
2013-03-13 11:20:02 +07:00
hathach
97c9001d40
add hard fault handler to bsp.c
...
rename class_install_subtask to class_open_subtask
add class_close for unmount
adding code for usbh_device_unplugged_isr & invoke it in hcd_isr
2013-03-13 10:57:30 +07:00
hathach
79e277d323
go through all the enumeration (up to get full configuration)
...
- fix init_qhd for address 0 (clear queue head --> ehci controller halted)
- fix bug in usbh_init missing address0 for semaphore create
TUSB_CFG_DEBUG == 3: --> ATTR_ALWAYS_INLINE is null --> allow gcc to export "normal inline" function
2013-03-13 00:02:45 +07:00
hathach
8eaad2326b
add semphore reset & queue flush API
...
modify test to check control pipe semaphore created with usbh_init
2013-03-11 12:00:25 +07:00
hathach
795fe7468d
start to add code for hcd_init test
...
change hcd_init signature (omit hostid)
2013-02-28 17:00:51 +07:00
hathach
82bd4719ce
continue to strengthen include policy
2013-02-28 15:58:18 +07:00
hathach
49da210860
add osal subtask support
...
add usbh_control_xfer_subtask as xfer and wait
fix potential error when update device info & open control pipe for new address
fix build error with hal_****.c
add STATIC_ASSSERT to perform compile time checking with sizeof later
update osal_queue_receive and osal_semaphore_wait for osal_none to support subtask
2013-02-26 17:28:05 +07:00
hathach
5bacdc6c0f
updating usbh init with class init
2013-02-08 12:52:46 +07:00
hathach
489b98cb93
add TUSB_CFG_HOST_CONTROLLER_START_INDEX
...
update usbh_init and test code for TUSB_CFG_HOST_CONTROLLER_START_INDEX
clean up some
2013-02-08 12:12:10 +07:00
hathach
060c4b3b30
refractor move device_addr0 into usbh_device_pool
...
enum_entry contains speed and enum task will not carry out disconnection clean up
2013-02-06 16:52:18 +07:00
hathach
e20025b54d
refractor move test enum to its own file
...
add assert with handler
add task assert with error catcher
2013-02-06 12:03:01 +07:00
hathach
aeccdfde3f
remove TUSB prefix for class enum definitions
...
add most of HID USAGE TABLE and definitions etc ...
2013-02-05 13:57:06 +07:00
hathach
aa040c4c98
rename device_info_pool to usbh_device_info_pool
...
update enum task to post set address
2013-02-04 21:52:50 +07:00
hathach
93269b0343
fix osal_semaphore_wait & osal_queue_receive of osal_none's bug
...
- not assign error to TUSB_ERROR_NON if succeed
add code up to set device address for enumeration
2013-02-04 20:54:52 +07:00
hathach
d71e244dff
add TUSB_CFG_HOST_ENUM_BUFFER_SIZE
...
add enum buffer
getting serious with osal_freeRTOS
2013-02-04 16:07:42 +07:00
hathach
0a13e37ba2
resolve conflict between usbh & hcd
2013-02-04 14:48:35 +07:00
hathach
4f3b76caba
rename test file for usbh
2013-02-04 13:54:14 +07:00