summaryrefslogtreecommitdiff
path: root/src/class/hid/hid_device.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-28 20:15:20 +0700
committerhathach <[email protected]>2018-07-28 22:42:44 +0700
commit8b17c5460950c425e17a055940e3a02cf6b29962 (patch)
treedc730af4daada5828094c2436ab7568171b69e8b /src/class/hid/hid_device.h
parentc729db229422a2771be394ea4ac8de65eac619e4 (diff)
fix hid generic various error
Diffstat (limited to 'src/class/hid/hid_device.h')
-rw-r--r--src/class/hid/hid_device.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h
index c78f56bb1..31d4a0c2f 100644
--- a/src/class/hid/hid_device.h
+++ b/src/class/hid/hid_device.h
@@ -47,6 +47,17 @@
extern "C" {
#endif
+//--------------------------------------------------------------------+
+// Class Driver Configuration
+//--------------------------------------------------------------------+
+#if !CFG_TUD_HID_KEYBOARD && CFG_TUD_DESC_BOOT_KEYBOARD
+#error CFG_TUD_HID_KEYBOARD must be enabled
+#endif
+
+#if !CFG_TUD_HID_MOUSE && CFG_TUD_DESC_BOOT_MOUSE
+#error CFG_TUD_HID_MOUSE must be enabled
+#endif
+
//--------------------------------------------------------------------+
// HID GENERIC API