From de4710abc813016d8a2bddcc2fb1a19be43c01de Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 1 Nov 2008 22:06:13 +0000 Subject: Switching tests for __AVR_ATmega168__ to tests for __AVR_ATmega8__ so that less changes are needed to support other processors. --- cores/arduino/pins_arduino.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cores/arduino/pins_arduino.c') 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, -- cgit v1.2.3-18-g5258