summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid_host.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-10-01 13:53:54 +0700
committerhathach <[email protected]>2013-10-01 13:53:54 +0700
commit640b0ec5467eadf153c4a09d53e0a38bae752685 (patch)
tree1d589605ee186827ba6bd70958dd9286ca5ac535 /tinyusb/class/hid_host.c
parent7f4a3fc8294e733a9ba52d20fa16ca6662721126 (diff)
- move disconnection handle to enum task --> move tusbh_xxx_unmount is invoked in non-isr context
Diffstat (limited to 'tinyusb/class/hid_host.c')
-rw-r--r--tinyusb/class/hid_host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c
index b968c4454..0c7d4dc0a 100644
--- a/tinyusb/class/hid_host.c
+++ b/tinyusb/class/hid_host.c
@@ -282,7 +282,7 @@ void hidh_close(uint8_t dev_addr)
if ( pipehandle_is_valid( keyboardh_data[dev_addr-1].pipe_hdl ) )
{
hidh_interface_close(dev_addr, &keyboardh_data[dev_addr-1]);
- tusbh_hid_keyboard_unmounted_isr(dev_addr);
+ tusbh_hid_keyboard_unmounted_cb(dev_addr);
}
#endif
@@ -290,7 +290,7 @@ void hidh_close(uint8_t dev_addr)
if( pipehandle_is_valid( mouseh_data[dev_addr-1].pipe_hdl ) )
{
hidh_interface_close(dev_addr, &mouseh_data[dev_addr-1]);
- tusbh_hid_mouse_unmounted_isr( dev_addr );
+ tusbh_hid_mouse_unmounted_cb( dev_addr );
}
#endif