Check microcontroller type before defining Mega ADK

This allows the users to easily use an ADK and for instance an Uno
without needing to edit avrpins.h every time
This commit is contained in:
Kristian Lauszus 2012-06-22 22:41:02 +02:00
parent 0ccffe946c
commit 9460daf941

View file

@ -20,8 +20,10 @@ e-mail : support@circuitsathome.com
#ifndef _avrpins_h_ #ifndef _avrpins_h_
#define _avrpins_h_ #define _avrpins_h_
#if defined(__AVR_ATmega1280__) || (__AVR_ATmega2560__)
/* Uncomment the following if you have Arduino Mega ADK board with MAX3421e built-in */ /* Uncomment the following if you have Arduino Mega ADK board with MAX3421e built-in */
//#define BOARD_MEGA_ADK //#define BOARD_MEGA_ADK
#endif
/* Uncomment the following if you are using a Teensy 2.0 */ /* Uncomment the following if you are using a Teensy 2.0 */
//#define BOARD_TEENSY //#define BOARD_TEENSY