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 /tests/test/support | |
| 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 'tests/test/support')
| -rw-r--r-- | tests/test/support/tusb_callback.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test/support/tusb_callback.h b/tests/test/support/tusb_callback.h index c5e4ae259..992194161 100644 --- a/tests/test/support/tusb_callback.h +++ b/tests/test/support/tusb_callback.h @@ -58,10 +58,14 @@ #include "common/common.h" #include "usbh.h" +//------------- core -------------// uint8_t tusbh_device_attached_cb (tusb_descriptor_device_t const *p_desc_device) ATTR_WEAK ATTR_WARN_UNUSED_RESULT; void tusbh_device_mount_succeed_cb (uint8_t dev_addr) ATTR_WEAK; void tusbh_device_mount_failed_cb(tusb_error_t error, tusb_descriptor_device_t const *p_desc_device) ATTR_WEAK; +//------------- hidh -------------// +void tusbh_hid_keyboard_isr(uint8_t dev_addr, tusb_event_t event); + #ifdef __cplusplus } #endif |
