| Age | Commit message (Collapse) | Author |
|
refractor hidh_open_subtask & hidh_keyboard_open
add ATTR_PACKED_STRUCT(x)
- TODO remove ugly pre_pack & post pack
|
|
- change host_class_driver_t: open_subtask signature to accept tusb_descriptor_interface_t const * instead of uint8_t*
|
|
|
|
|
|
remove all ATTR_WEAK in init,open,isr,close driver functions of USBH-CLASS API
- prefer testing
|
|
- API retain though
|
|
|
|
|
|
add test & code for hidh_keyboard_open_subtask
- skip parsing HID descriptor for keyboard
|
|
temporarily ignore test for hid_host.c due to ceedling linking issue with weak symbol
implement hidh_open_subtask driver to subclass open
rename hidh_keyboard_install to hidh_keyboard_open_subtask
|
|
hack include in hid_host_keyboard.h
|
|
move test hid related to its own folder
|
|
|
|
- bulk/int/iso pipe can only be closed as part of unmount/safe remove process
add test for interrupt_close
|
|
|
|
|
|
changing class hidh behavior
|
|
change keyboard_info_pool to keyboard_data
|
|
- rename usbh_device_info_pool to usbh_devices
- create a struct for control pipe in usbh_device_info_t
|
|
|
|
|
|
- rename tusbh_device_status_get to tusbh_device_get_state
- replace tusbh_device_status_t by tusb_device_state_t
|
|
- refractor tusb_handle_device_t device_hdl to uint8_t dev_addr
add keyboard_app.c/h
|
|
|
|
transfer of control pipe
- fix bug with hcd_port_reset
+ remove regs->portsc_bit.port_enable in the wait loop as device unplugged can cause this to always fails
- correct the timeout for hcd_controll_stop/reset 16 uframes ~ 2 ms
- potentially fix bugs device unplugged when new address is not assigned
|
|
add test for usbh_isr error invoke
fix bug if device unplugged before is set to new address
- clean up & close control addr0 in usbh_device_unplugged_isr
|
|
change singature of call_isr as well
|
|
|
|
- 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
|
|
- rename usbh_device_info_t.status to state
- rename enum TUSB_DEVICE_STATUS_* to TUSB_DEVICE_STATE_*
|
|
|
|
|
|
|
|
(previously mark as removing).
|
|
|
|
|
|
|
|
|
|
- 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
|
|
- add tests for pipe_close (while TDs are active)
- add tests for device unplugged
add tesst & implement the async_advance_isr to clean up "REMOVING" queue head
- add helper find previous qhd
- add remove qhd from async list
- add is_removing field for async advance isr to clean up
add pipe close for control pipe & bulk pipe (with tests)
add helper get qhd from pipe_handle
|
|
|
|
adding some code for async_advance_isr
add test for async_advance_isr
|
|
close control pipe when unplugged
|
|
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
|
|
|
|
- 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
|
|
- void usbh_device_plugged_isr(uint8_t hostid, tusb_speed_t speed);
- void usbh_device_unplugged_isr(uint8_t hostid);
implement port_connect_status_isr
|
|
add semaphore reset when opening control pipe
|
|
modify test to check control pipe semaphore created with usbh_init
|
|
- fix mismatch type func return
|