Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Atmega32u2 external interrupts

Set EXTERNAL_NUM_INTERRUPTS corrently from atmega32u2

Signed-off-by: Paul Brook <paul@nowt.org>
  • Loading branch information...
commit b1ac93b6abc60f307e18828ae40f6f7286fbe936 1 parent 4eca980
@pbrook authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cores/minimus/wiring_private.h
View
2  cores/minimus/wiring_private.h
@@ -56,7 +56,7 @@ extern "C"{
#define EXTERNAL_NUM_INTERRUPTS 8
#elif defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__)
#define EXTERNAL_NUM_INTERRUPTS 3
-#elif defined(__AVR_ATmega32U4__)
+#elif defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__)
#define EXTERNAL_NUM_INTERRUPTS 5
#else
#define EXTERNAL_NUM_INTERRUPTS 2
Please sign in to comment.
Something went wrong with that request. Please try again.