From b3ead81c2c7e4655ed0524d1be9b4a43737b92c7 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 31 Aug 2013 13:24:52 +0200 Subject: [PATCH] Added support for newest version of the Balanduino board --- avrpins.h | 4 ++-- usbhost.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avrpins.h b/avrpins.h index 23961bf0..fcba4933 100644 --- a/avrpins.h +++ b/avrpins.h @@ -663,7 +663,7 @@ public: #define P45 Pf7 #endif // Teensy++ 2.0 -#if !defined(BOARD_SANGUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__)) +#if !defined(BOARD_SANGUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) #define BOARD_BALANDUINO // Balanduino pin numbers // http://balanduino.net/ @@ -701,7 +701,7 @@ public: #define P31 Pa7 /* 31 - PA7 */ #endif // Balanduino -#if defined(BOARD_SANGUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__)) +#if defined(BOARD_SANGUINO) && (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) // Sanguino pin numbers // http://sanguino.cc/hardware #define P0 Pb0 diff --git a/usbhost.h b/usbhost.h index 538d9641..efadcabf 100644 --- a/usbhost.h +++ b/usbhost.h @@ -55,7 +55,7 @@ typedef SPi< Pb1, Pb2, Pb3, Pb0 > spi; #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) typedef SPi< Pb5, Pb3, Pb4, Pb2 > spi; #endif -#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) +#if defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) typedef SPi< Pb7, Pb5, Pb6, Pb4 > spi; #endif