diff options
| author | hathach <[email protected]> | 2013-01-26 01:37:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-26 01:37:15 +0700 |
| commit | 7edda37518f0b193009c832b4092c357d0d01e96 (patch) | |
| tree | c6952e1f97b6c89e37968364c5c0a2a88958b3bf /tinyusb/tusb.h | |
| parent | fdc9a82e8c3dcce08613f0c0e1a773f0c39381e0 (diff) | |
add more test code for keyboard hid application API
refractor, restructure, rename several thing regarding host, keyboard etc ...
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 91f8261c2..02a00d48d 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -51,24 +51,29 @@ #include "common/common.h" #ifdef TUSB_CFG_HOST - #include "host/hcd.h" + #include "host/usbd_host.h" + + #ifdef HOST_CLASS_HID + #include "class/hid_host.h" + #endif #endif #ifdef TUSB_CFG_DEVICE #include "device/dcd.h" + + #if DEVICE_CLASS_HID + #include "class/hid_device.h" + #endif + + #ifdef TUSB_CFG_DEVICE_CDC + #include "class/cdc.h" + #endif #endif #if !(defined TUSB_CFG_HOST) && !(defined TUSB_CFG_DEVICE) #error please enable either TUSB_CFG_HOST or TUSB_CFG_DEVICE #endif -#if DEVICE_CLASS_HID - #include "class/hid.h" -#endif - -#ifdef TUSB_CFG_DEVICE_CDC - #include "class/cdc.h" -#endif tusb_error_t tusb_init(void); |
