aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Arduino.h
diff options
context:
space:
mode:
authorSandeep Mistry <s.mistry@arduino.cc>2016-09-08 15:37:27 -0400
committerSandeep Mistry <s.mistry@arduino.cc>2016-09-08 15:37:27 -0400
commit0f959829ba264a8dabf726048fcee177bd58e1dc (patch)
treee57d12e2f1866f7e5b1b94f0238a4208ad6d75e4 /cores/arduino/Arduino.h
parent671619100df5f7a4a4c031c334a1f6f80cff5b92 (diff)
parentbb567ae644b3a2ebbf228e83802a5e7411a1e8eb (diff)
Merge pull request #5300 from mischnic/attiny_anlReference
Add all analog references supported by the ATtinyX5 series
Diffstat (limited to 'cores/arduino/Arduino.h')
-rw-r--r--cores/arduino/Arduino.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h
index f1da68d..09c1448 100644
--- a/cores/arduino/Arduino.h
+++ b/cores/arduino/Arduino.h
@@ -61,10 +61,18 @@ void yield(void);
#define FALLING 2
#define RISING 3
-#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) || defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
-#define DEFAULT 0
-#define EXTERNAL 1
-#define INTERNAL 2
+#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__)
+ #define DEFAULT 0
+ #define EXTERNAL 1
+ #define INTERNAL1V1 2
+ #define INTERNAL INTERNAL1V1
+#elif defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
+ #define DEFAULT 0
+ #define EXTERNAL 4
+ #define INTERNAL1V1 8
+ #define INTERNAL INTERNAL1V1
+ #define INTERNAL2V56 9
+ #define INTERNAL2V56_EXTCAP 13
#else
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__)
#define INTERNAL1V1 2