summaryrefslogtreecommitdiff
path: root/hid/lib/drivers-avr/factory.cpp
diff options
context:
space:
mode:
authortomaszduda23 <[email protected]>2022-07-14 09:51:16 +0900
committerGitHub <[email protected]>2022-07-14 03:51:16 +0300
commitd409ae68c329fb436a49bf1aac51c203cbd93bda (patch)
tree87b7633703edf5cf0832538cfbdb9f684c863e64 /hid/lib/drivers-avr/factory.cpp
parent6772d3425dc7c8d853eb3e437f02042de9947340 (diff)
prepare avr for stm32 (#104)
Diffstat (limited to 'hid/lib/drivers-avr/factory.cpp')
-rw-r--r--hid/lib/drivers-avr/factory.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/hid/lib/drivers-avr/factory.cpp b/hid/lib/drivers-avr/factory.cpp
index 989f4e2b..ccd1612c 100644
--- a/hid/lib/drivers-avr/factory.cpp
+++ b/hid/lib/drivers-avr/factory.cpp
@@ -21,10 +21,15 @@
#include "usb/hid.h"
+#ifdef HID_WITH_PS2
#include "ps2/hid.h"
+#endif
#include "factory.h"
#include "eeprom.h"
+#ifndef ARDUINO_ARCH_AVR
+ #error "Only AVR is supported"
+#endif
namespace DRIVERS {
Keyboard *Factory::makeKeyboard(type _type) {