diff options
| author | hathach <[email protected]> | 2013-03-09 13:11:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-09 13:11:02 +0700 |
| commit | b1db85dedf5546bee594a40ba41cf644bf7b3ae0 (patch) | |
| tree | 186060e03f943865bcdbea2e77efce19396279af /tinyusb/class/hid_host.c | |
| parent | b146730306ff9f5e3d8dea520a62a5a25d33f92b (diff) | |
- addd p_qtd_list_tail to qhd structure for easy queue TD
- move control_request from ehci_data to usbh_device_info_pool
- add test for bulk transfer double (2 consecutive xfers)
- use table (array) structure for class driver, currently included
- refractor extract to function insert_qtd_to_qhd
+ init function
+ install_subtask
--> all class driver function must be declared with WEAK
Diffstat (limited to 'tinyusb/class/hid_host.c')
| -rw-r--r-- | tinyusb/class/hid_host.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index 2f3107a35..5d7218ac8 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -90,6 +90,13 @@ uint8_t tusbh_hid_keyboard_no_instances(tusb_handle_device_t const device_hdl) //--------------------------------------------------------------------+ // CLASS-USBD API (don't require to verify parameters) //--------------------------------------------------------------------+ +void hidh_init(void) +{ +#if TUSB_CFG_HOST_HID_KEYBOARD + hidh_keyboard_init(); +#endif +} + void hidh_keyboard_init(void) { memclr_(&keyboard_info_pool, sizeof(class_hid_keyboard_info_t)*TUSB_CFG_HOST_DEVICE_MAX); |
