summaryrefslogtreecommitdiff
path: root/examples/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-27 21:48:15 +0700
committerhathach <[email protected]>2018-07-27 21:48:15 +0700
commit456506045f0cb4234b6fef9fddf621a53cd862ac (patch)
tree0f54027faf47f1bb93337455a9cc0f24ffb6cc6e /examples/device
parentcf6c534c1974f4efeb5c136697d1f1028e6aa34a (diff)
seperate CFG_TUD_HID_BOOT_PROTOCOL to CFG_TUD_HID_KEYBOARD_BOOT & CFG_TUD_HID_MOUSE_BOOT
Diffstat (limited to 'examples/device')
-rw-r--r--examples/device/nrf52840/src/tusb_config.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h
index 457dceea7..aad189429 100644
--- a/examples/device/nrf52840/src/tusb_config.h
+++ b/examples/device/nrf52840/src/tusb_config.h
@@ -75,6 +75,19 @@
#define CFG_TUD_HID_KEYBOARD 1
#define CFG_TUD_HID_MOUSE 1
+//#define CFG_TUD_HID_GENERIC 0
+
+/* Enable boot protocol will create separated HID interface for Keyboard,
+ * Consumer Key and Mouse --> require more In endpoints. Otherwise they
+ * are all packed into a single Multiple Report Interface.
+ *
+ * Note: If your device is meant to work with simple host running on
+ * an MCU (e.g with tinyusb host), boot protocol should be enabled.
+ */
+//#define CFG_TUD_HID_BOOT_PROTOCOL 1
+
+#define CFG_TUD_HID_KEYBOARD_BOOT 1
+#define CFG_TUD_HID_MOUSE_BOOT 1
//--------------------------------------------------------------------
// CDC
@@ -117,15 +130,6 @@
// HID
//--------------------------------------------------------------------
-/* Enable boot protocol will create separated HID interface for Keyboard,
- * Consumer Key and Mouse --> require more In endpoints. Otherwise they
- * are all packed into a single Multiple Report Interface.
- *
- * Note: If your device is meant to work with simple host running on
- * an MCU (e.g with tinyusb host), boot protocol should be enabled.
- */
-#define CFG_TUD_HID_BOOT_PROTOCOL 1
-
/* Use the HID_ASCII_TO_KEYCODE lookup if CFG_TUD_HID_KEYBOARD is enabled.
* This will occupies 256 bytes of ROM. It will also enable the use of 2 extra APIs
* - tud_hid_keyboard_send_char()