add more test code for keyboard hid application API
refractor, restructure, rename several thing regarding host, keyboard etc ...
This commit is contained in:
@@ -55,19 +55,18 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// TODO refractor
|
||||
#include "common/common.h"
|
||||
|
||||
#ifdef TUSB_CFG_DEVICE
|
||||
#include "device/dcd.h"
|
||||
#include "hid_device.h"
|
||||
#endif
|
||||
|
||||
#ifdef TUSB_CFG_HOST
|
||||
#include "host/usbd_host.h"
|
||||
#include "hid_host.h"
|
||||
#endif
|
||||
enum {
|
||||
TUSB_HID_SUBCLASS_NONE = 0,
|
||||
TUSB_HID_SUBCLASS_BOOT = 1
|
||||
};
|
||||
|
||||
enum {
|
||||
TUSB_HID_PROTOCOL_NONE = 0,
|
||||
TUSB_HID_PROTOCOL_KEYBOARD = 1,
|
||||
TUSB_HID_PROTOCOL_MOUSE = 2
|
||||
};
|
||||
/** \struct tusb_mouse_report_t
|
||||
* \brief Standard HID Boot Protocol Mouse Report.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user