Skip to content

Commit

Permalink
Adding ATmega644P check to ATmega1284P check.
Browse files Browse the repository at this point in the history
  • Loading branch information
damellis committed Oct 9, 2012
1 parent 795df1e commit 23c2a96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extern "C"{
#define EXTERNAL 1
#define INTERNAL 2
#else
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284P__)
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)
#define INTERNAL1V1 2
#define INTERNAL2V56 3
#else
Expand Down
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int analogRead(uint8_t pin)
if (pin >= 54) pin -= 54; // allow for channel or pin numbers
#elif defined(__AVR_ATmega32U4__)
if (pin >= 18) pin -= 18; // allow for channel or pin numbers
#elif defined(__AVR_ATmega1284__)
#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)
if (pin >= 24) pin -= 24; // allow for channel or pin numbers
#else
if (pin >= 14) pin -= 14; // allow for channel or pin numbers
Expand Down
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/wiring_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extern "C"{

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define EXTERNAL_NUM_INTERRUPTS 8
#elif defined(__AVR_ATmega1284P__)
#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644P__)
#define EXTERNAL_NUM_INTERRUPTS 3
#elif defined(__AVR_ATmega32U4__)
#define EXTERNAL_NUM_INTERRUPTS 4
Expand Down

0 comments on commit 23c2a96

Please sign in to comment.