summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid_host.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-09 13:11:02 +0700
committerhathach <[email protected]>2013-03-09 13:11:02 +0700
commitb1db85dedf5546bee594a40ba41cf644bf7b3ae0 (patch)
tree186060e03f943865bcdbea2e77efce19396279af /tinyusb/class/hid_host.h
parentb146730306ff9f5e3d8dea520a62a5a25d33f92b (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.h')
-rw-r--r--tinyusb/class/hid_host.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/tinyusb/class/hid_host.h b/tinyusb/class/hid_host.h
index 96f73cddd..6ca025fa4 100644
--- a/tinyusb/class/hid_host.h
+++ b/tinyusb/class/hid_host.h
@@ -84,19 +84,11 @@ typedef struct {
void hidh_keyboard_init(void);
tusb_error_t hidh_keyboard_install(uint8_t dev_addr, uint8_t const *descriptor) ATTR_WARN_UNUSED_RESULT;
-#ifndef _TEST_
-static inline void hidh_init(void) ATTR_ALWAYS_INLINE;
-static inline void hidh_init(void)
-{
-#if TUSB_CFG_HOST_HID_KEYBOARD
- hidh_keyboard_init();
-#endif
-}
-#else
-void hidh_init(void);
-#endif
-
-tusb_error_t hidh_install_subtask(uint8_t dev_addr, uint8_t const *descriptor, uint16_t *p_length) ATTR_WARN_UNUSED_RESULT;
+//--------------------------------------------------------------------+
+// CLASS DRIVER FUNCTION (all declared with WEAK)
+//--------------------------------------------------------------------+
+void hidh_init(void) ATTR_WEAK;
+tusb_error_t hidh_install_subtask(uint8_t dev_addr, uint8_t const *descriptor, uint16_t *p_length) ATTR_WEAK ATTR_WARN_UNUSED_RESULT;
#endif