call tuh_hid_receive_abort() when detach from kernel driver
- add tuh_event_hook_cb() in SRAM, required when updated to latest tinyusb - bump up pico-pio-usb to latest - bump up tinyusb to latest for new tuh_hid_receive_abort(), and all endpoint abort when SET_CONFIGURATION
This commit is contained in:
parent
54e78c89fc
commit
3d88402331
4 changed files with 10 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 1eb6ce784ca9b8acbbe43dba9f1d9c26c2e80eb0
|
||||
Subproject commit a0e5626bc50d484a23f33000c48082179f0cc2dd
|
||||
|
|
@ -170,3 +170,10 @@ usb_host_port_obj_t *common_hal_usb_host_port_construct(const mcu_pin_obj_t *dp,
|
|||
|
||||
return self;
|
||||
}
|
||||
|
||||
// Not used, but we must define to put this hook into SRAM
|
||||
void __not_in_flash_func(tuh_event_hook_cb)(uint8_t rhport, uint32_t eventid, bool in_isr) {
|
||||
(void)rhport;
|
||||
(void)eventid;
|
||||
(void)in_isr;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit d00a10a8c425d0d40f81b87169102944b01f3bb3
|
||||
Subproject commit 0f747aaa0c16f750bdfa2ba37ec25d6c8e1bc117
|
||||
|
|
@ -329,6 +329,7 @@ void usb_keyboard_detach(uint8_t dev_addr, uint8_t interface) {
|
|||
if (!usb_keyboard_in_use(dev_addr, interface)) {
|
||||
return;
|
||||
}
|
||||
tuh_hid_receive_abort(dev_addr, interface);
|
||||
_dev_addr = 0;
|
||||
_interface = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue