From 80e414ace8afbd1285d554a56c5948e044458d88 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 10 Jun 2021 12:36:49 +0200 Subject: [PATCH] driver::hid: Allow compiling base::Keyboard without KeyboardioHID If `HID_BOOT_PROTOCOL` is undefined, define it ourselves (the value is set by the USB standard, so we can do that). This allows compiling the base class without KeyboardioHID, letting our HID base driver be completely independent of it. Signed-off-by: Gergely Nagy --- src/kaleidoscope/driver/hid/base/Keyboard.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kaleidoscope/driver/hid/base/Keyboard.h b/src/kaleidoscope/driver/hid/base/Keyboard.h index 0f44b9f5..8363ea6b 100644 --- a/src/kaleidoscope/driver/hid/base/Keyboard.h +++ b/src/kaleidoscope/driver/hid/base/Keyboard.h @@ -20,6 +20,10 @@ #include "kaleidoscope/key_defs.h" +#ifndef HID_BOOT_PROTOCOL +#define HID_BOOT_PROTOCOL 0 +#endif + namespace kaleidoscope { namespace driver { namespace hid {