add more test code for keyboard hid application API

refractor, restructure, rename several thing regarding host, keyboard etc ...
This commit is contained in:
hathach
2013-01-26 01:37:15 +07:00
parent fdc9a82e8c
commit 7edda37518
18 changed files with 336 additions and 95 deletions
+13 -8
View File
@@ -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);