diff options
| author | hathach <[email protected]> | 2018-07-29 14:03:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-07-29 14:03:48 +0700 |
| commit | 683bb574e723685f38082f2461f2fa8eb9900c90 (patch) | |
| tree | 0ee6c78f823711da14108f7e76d18a738098c07f /examples | |
| parent | 8b17c5460950c425e17a055940e3a02cf6b29962 (diff) | |
hid device enhance
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/nrf52840/src/tusb_config.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h index 3b5ec360d..9e6b01616 100644 --- a/examples/device/nrf52840/src/tusb_config.h +++ b/examples/device/nrf52840/src/tusb_config.h @@ -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 |
