diff options
| author | hathach <[email protected]> | 2013-10-01 13:53:54 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-10-01 13:53:54 +0700 |
| commit | 640b0ec5467eadf153c4a09d53e0a38bae752685 (patch) | |
| tree | 1d589605ee186827ba6bd70958dd9286ca5ac535 /demos/host/src/mouse_app.c | |
| parent | 7f4a3fc8294e733a9ba52d20fa16ca6662721126 (diff) | |
- move disconnection handle to enum task --> move tusbh_xxx_unmount is invoked in non-isr context
Diffstat (limited to 'demos/host/src/mouse_app.c')
| -rw-r--r-- | demos/host/src/mouse_app.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/host/src/mouse_app.c b/demos/host/src/mouse_app.c index af0dfc834..e37090913 100644 --- a/demos/host/src/mouse_app.c +++ b/demos/host/src/mouse_app.c @@ -71,15 +71,16 @@ void tusbh_hid_mouse_mounted_cb(uint8_t dev_addr) { // application set-up - printf("a mouse device is mounted\n"); + puts("\na Mouse device is mounted"); osal_queue_flush(queue_mouse_hdl); (void) tusbh_hid_mouse_get_report(dev_addr, (uint8_t*) &usb_mouse_report); // first report } -void tusbh_hid_mouse_unmounted_isr(uint8_t dev_addr) +void tusbh_hid_mouse_unmounted_cb(uint8_t dev_addr) { // application tear-down + puts("\na Mouse device is unmounted\n"); } void tusbh_hid_mouse_isr(uint8_t dev_addr, tusb_event_t event) |
