summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorJoe Wasson <jwasson+github@gmail.com>2017-08-20 05:35:41 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-20 17:51:57 +0200
commitbdc0880ca5ead73a4a66355ade85b005507764c1 (patch)
treef530f3c1d1506fab723718541fcb5cfb5dc347cc /tmk_core
parentfc70c9ac9e725310144d7b8227fbc931e5b2d5a1 (diff)
downloadqmk_firmware-bdc0880ca5ead73a4a66355ade85b005507764c1.tar.gz
qmk_firmware-bdc0880ca5ead73a4a66355ade85b005507764c1.tar.xz
Add compile error if too many endpoints are defined for the ATmega32U4.
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/lufa/descriptor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/descriptor.h b/tmk_core/protocol/lufa/descriptor.h
index cde44abc9..43001c977 100644
--- a/tmk_core/protocol/lufa/descriptor.h
+++ b/tmk_core/protocol/lufa/descriptor.h
@@ -238,7 +238,8 @@ typedef struct
# define CDC_OUT_EPNUM MIDI_STREAM_OUT_EPNUM
#endif
-#if defined(__AVR_ATmega32U2__) && CDC_OUT_EPNUM > 4
+#if (defined(__AVR_ATmega32U2__) && CDC_OUT_EPNUM > 4) || \
+ (defined(__AVR_ATmega32U4__) && CDC_OUT_EPNUM > 6)
# error "Endpoints are not available enough to support all functions. Remove some in Makefile.(MOUSEKEY, EXTRAKEY, CONSOLE, NKRO, MIDI, SERIAL)"
#endif