diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-11-01 22:06:13 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-11-01 22:06:13 +0000 |
commit | de4710abc813016d8a2bddcc2fb1a19be43c01de (patch) | |
tree | fa2dc220559eb9d577e2f2354c0ec02660d6ab6b /cores/arduino/pins_arduino.c | |
parent | e42b8d7ef811df7f552582c57cda66a275670fe4 (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-x | cores/arduino/pins_arduino.c | 20 |
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, |