diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2010-08-02 22:33:11 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2010-08-02 22:33:11 +0000 |
commit | 853439667eddfa51fea9275b2c458aa83df06f62 (patch) | |
tree | 8a386449341bd9d0f0cbffe8474fd372a50b1dc7 | |
parent | 2b1c9aea350e883c040bc168fde55934d77c5f47 (diff) |
Moving SPI pin definitions into core (from SPI library): SS, MISO, MOSI, and SCK.
-rw-r--r-- | cores/arduino/pins_arduino.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cores/arduino/pins_arduino.h b/cores/arduino/pins_arduino.h index c7e40fd..2e33565 100644 --- a/cores/arduino/pins_arduino.h +++ b/cores/arduino/pins_arduino.h @@ -49,6 +49,18 @@ #define TIMER5B 15 #define TIMER5C 16 +#if defined(__AVR_ATmega1280__) +const static uint8_t SS = 53; +const static uint8_t MOSI = 51; +const static uint8_t MISO = 50; +const static uint8_t SCK = 52; +#else +const static uint8_t SS = 10; +const static uint8_t MOSI = 11; +const static uint8_t MISO = 12; +const static uint8_t SCK = 13; +#endif + // On the ATmega1280, the addresses of some of the port registers are // greater than 255, so we can't store them in uint8_t's. extern const uint16_t PROGMEM port_to_mode_PGM[]; |