1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

1280 -> 1280/2560.

This commit is contained in:
David A. Mellis
2010-09-08 22:33:33 +00:00
parent 6fbfb713ee
commit 27cfd22066
15 changed files with 26 additions and 26 deletions

View File

@ -308,7 +308,7 @@ private:
uint16_t RBASE[SOCKETS]; // Rx buffer base address
private:
#if defined(__AVR_ATmega1280__)
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
inline static void initSS() { DDRB |= _BV(4); };
inline static void setSS() { PORTB &= ~_BV(4); };
inline static void resetSS() { PORTB |= _BV(4); };

View File

@ -153,7 +153,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
// Arduino Mega
#elif defined(__AVR_ATmega1280__)
#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define TOTAL_ANALOG_PINS 16
#define TOTAL_PINS 70 // 54 digital + 16 analog
#define VERSION_BLINK_PIN 13

View File

@ -57,7 +57,7 @@
*/
// Say which 16 bit timers can be used and in what order
#if defined(__AVR_ATmega1280__)
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define _useTimer5
#define _useTimer1
#define _useTimer3