summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-04-10 01:13:31 +0700
committerhathach <[email protected]>2013-04-10 01:18:32 +0700
commite14aa4197d290fc7f294d42d4886fb5892c9f360 (patch)
tree20743d8b56c7cb9b9f66b83987235fe45e17772f /demos
parente6a44b3fe9a0af6ce33f8340c8703bf0bbc43d5a (diff)
change osal_queue_send(osal_queue_handle_t const queue_hdl, uint32_t data) signature to osal_queue_send(osal_queue_handle_t const queue_hdl, const void * data)
- support any size queue message (instead of fixed uint32_t)
Diffstat (limited to 'demos')
-rw-r--r--demos/host/keyboard_app.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/demos/host/keyboard_app.c b/demos/host/keyboard_app.c
index 25bf67e1a..cb3f569ff 100644
--- a/demos/host/keyboard_app.c
+++ b/demos/host/keyboard_app.c
@@ -63,6 +63,32 @@ static inline uint8_t keycode_to_ascii(uint8_t keycode)
}
+//--------------------------------------------------------------------+
+// tinyusb callback (ISR context)
+//--------------------------------------------------------------------+
+//void tusbh_hid_keyboard_isr(uint8_t dev_addr, uint8_t instance_num, tusb_event_t event)
+//{
+// switch(event)
+// {
+// case TUSB_EVENT_INTERFACE_OPEN:
+// tusbh_hid_keyboard_get_report(dev_addr, 0, (uint8_t*) &keyboard_report); // first report
+// break;
+//
+// case TUSB_EVENT_INTERFACE_CLOSE:
+//
+// break;
+//
+// case TUSB_EVENT_XFER_COMPLETE:
+// tusbh_hid_keyboard_get_report(dev_addr, 0, (uint8_t*) &keyboard_report);
+// break;
+//
+// case TUSB_EVENT_XFER_ERROR:
+// break;
+//
+// default:
+// }
+//}
+
void keyboard_app_task(void)
{
for (uint8_t dev_addr = 1; dev_addr <= TUSB_CFG_HOST_DEVICE_MAX; dev_addr++)