aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/pins_arduino.c
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-11-01 22:06:13 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-11-01 22:06:13 +0000
commitde4710abc813016d8a2bddcc2fb1a19be43c01de (patch)
treefa2dc220559eb9d577e2f2354c0ec02660d6ab6b /cores/arduino/pins_arduino.c
parente42b8d7ef811df7f552582c57cda66a275670fe4 (diff)
Switching tests for __AVR_ATmega168__ to tests for __AVR_ATmega8__ so that less changes are needed to support other processors.
Diffstat (limited to 'cores/arduino/pins_arduino.c')
-rwxr-xr-xcores/arduino/pins_arduino.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/cores/arduino/pins_arduino.c b/cores/arduino/pins_arduino.c
index 3ef07b6..ef3f168 100755
--- a/cores/arduino/pins_arduino.c
+++ b/cores/arduino/pins_arduino.c
@@ -134,28 +134,28 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
NOT_ON_TIMER,
NOT_ON_TIMER,
// on the ATmega168, digital pin 3 has hardware pwm
-#if defined(__AVR_ATmega168__)
- TIMER2B,
-#else
+#if defined(__AVR_ATmega8__)
NOT_ON_TIMER,
+#else
+ TIMER2B,
#endif
NOT_ON_TIMER,
// on the ATmega168, digital pins 5 and 6 have hardware pwm
-#if defined(__AVR_ATmega168__)
- TIMER0B,
- TIMER0A,
-#else
+#if defined(__AVR_ATmega8__)
NOT_ON_TIMER,
NOT_ON_TIMER,
+#else
+ TIMER0B,
+ TIMER0A,
#endif
NOT_ON_TIMER,
NOT_ON_TIMER, /* 8 - port B */
TIMER1A,
TIMER1B,
-#if defined(__AVR_ATmega168__)
- TIMER2A,
-#else
+#if defined(__AVR_ATmega8__)
TIMER2,
+#else
+ TIMER2A,
#endif
NOT_ON_TIMER,
NOT_ON_TIMER,