hid device enhance

This commit is contained in:
hathach
2018-07-29 14:03:48 +07:00
parent 8b17c54609
commit 683bb574e7
6 changed files with 54 additions and 43 deletions

View File

@@ -78,13 +78,6 @@
// #define CFG_TUD_DESC_VID 0xCAFE
// #define CFG_TUD_DESC_PID 0x0001
/* Use Boot Protocol for Keyboard, Mouse. Enable this will create separated HID interface
* require more IN endpoints. If disabled, they they are all packed into a single
* multiple report interface called "Generic".
*/
#define CFG_TUD_DESC_BOOT_KEYBOARD 0
#define CFG_TUD_DESC_BOOT_MOUSE 0
//------------- CLASS -------------//
#define CFG_TUD_CDC 1
#define CFG_TUD_MSC 1
@@ -93,6 +86,12 @@
#define CFG_TUD_HID_KEYBOARD 1
#define CFG_TUD_HID_MOUSE 1
/* Use Boot Protocol for Keyboard, Mouse. Enable this will create separated HID interface
* require more IN endpoints. If disabled, they they are all packed into a single
* multiple report interface called "Generic". */
#define CFG_TUD_HID_KEYBOARD_BOOT 1
#define CFG_TUD_HID_MOUSE_BOOT 1
//--------------------------------------------------------------------
// CDC