add more test code for keyboard hid application API
refractor, restructure, rename several thing regarding host, keyboard etc ...
This commit is contained in:
+13
-8
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user