diff options
| author | hathach <[email protected]> | 2013-03-23 18:36:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-23 18:36:43 +0700 |
| commit | 0c5e0ef0f37b88990c995de465792d0e50eb8cda (patch) | |
| tree | 5df1b0231ed9c5cabc4767670dd703a697f3938d /tinyusb/host/usbh.h | |
| parent | 44e09cc397df4e7fc47c37a4d967fe17a3d82e16 (diff) | |
- add control_pipe_status for usbh_device_info_t to reflect the status 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
Diffstat (limited to 'tinyusb/host/usbh.h')
| -rw-r--r-- | tinyusb/host/usbh.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tinyusb/host/usbh.h b/tinyusb/host/usbh.h index 901a0f056..2934e4c3c 100644 --- a/tinyusb/host/usbh.h +++ b/tinyusb/host/usbh.h @@ -93,10 +93,11 @@ // TUSB_CLASS_APPLICATION_SPECIFIC = 0xEF , // TUSB_CLASS_VENDOR_SPECIFIC = 0xFF -typedef enum { - PIPE_STATUS_AVAILABLE = 0, +typedef enum pipe_status_{ + PIPE_STATUS_READY = 0, PIPE_STATUS_BUSY, - PIPE_STATUS_COMPLETE + PIPE_STATUS_COMPLETE, + PIPE_STATUS_ERROR } pipe_status_t; typedef uint32_t tusbh_flag_class_t; |
