diff options
| author | hathach <[email protected]> | 2013-04-07 05:09:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-07 05:09:18 +0700 |
| commit | 27f860db9ffd46bb8cb43046f9203f510a554d7c (patch) | |
| tree | bb25a7ee341c943f76b394a3bfc6fa270c57099a /tinyusb/core | |
| parent | 24ade0458e0fe3831615d7ddb1be0e3b8ed64ba6 (diff) | |
rename hidh_keyboard_info_t to hidh_interface_info_t
rename tusb_bus_event_t to tusb_event_t
add test_mouse_init and more stuff for hidh mouse
move delay after port reset to only for speed detection
prioritize port change interrupt over xfer interrupt
- in case of unplugged, current connect change & xfer error both set
- xfer error only break to debugger if not because of unplugged
fix bug: set dev addr0 state to UNPLUG after close its control pipe in enumeration process
Diffstat (limited to 'tinyusb/core')
| -rw-r--r-- | tinyusb/core/tusb_types.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index 8dd9a529e..33baf6709 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -190,9 +190,11 @@ typedef enum tusb_device_state_{ }tusb_device_state_t; typedef enum { - BUS_EVENT_XFER_COMPLETE, - BUS_EVENT_XFER_ERROR -}tusb_bus_event_t; + TUSB_EVENT_XFER_COMPLETE, + TUSB_EVENT_XFER_ERROR, + TUSB_EVENT_INTERFACE_OPEN, + TUSB_EVENT_INTERFACE_CLOSE +}tusb_event_t; enum { DESCRIPTOR_OFFSET_LENGTH = 0, |
