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/core | |
| 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/core')
| -rw-r--r-- | tinyusb/core/tusb_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index f0797bfdc..6bdc057f9 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -154,7 +154,7 @@ enum { #define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2) /// Device State -typedef enum { +typedef enum tusb_device_state_{ TUSB_DEVICE_STATE_UNPLUG = 0 , TUSB_DEVICE_STATE_ADDRESSED , |
