diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2009-03-25 10:50:00 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2009-03-25 10:50:00 +0000 |
commit | a42326aba2fd9696a4b2e1239a5a222014056ff5 (patch) | |
tree | 69288e62749704d81d7ab11079e5868022bdc174 /cores/arduino/wiring_private.h | |
parent | b89ee8da481d7b9c360b689f367b7a234ec7cb11 (diff) |
Adding support for the Arduino Mega (ATmega1280) to the core and bootloader.
Diffstat (limited to 'cores/arduino/wiring_private.h')
-rwxr-xr-x | cores/arduino/wiring_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cores/arduino/wiring_private.h b/cores/arduino/wiring_private.h index b30c1f0..2dfe552 100755 --- a/cores/arduino/wiring_private.h +++ b/cores/arduino/wiring_private.h @@ -46,8 +46,18 @@ extern "C"{ #define EXTERNAL_INT_0 0 #define EXTERNAL_INT_1 1 +#define EXTERNAL_INT_2 2 +#define EXTERNAL_INT_3 3 +#define EXTERNAL_INT_4 4 +#define EXTERNAL_INT_5 5 +#define EXTERNAL_INT_6 6 +#define EXTERNAL_INT_7 7 +#if defined(__AVR_ATmega1280__) +#define EXTERNAL_NUM_INTERRUPTS 8 +#else #define EXTERNAL_NUM_INTERRUPTS 2 +#endif typedef void (*voidFuncPtr)(void); |