Skip to content

Commit

Permalink
Support Sanguino/Sanguinololu with ATmega1284P
Browse files Browse the repository at this point in the history
  • Loading branch information
changwoo committed Aug 8, 2011
1 parent 95fbe3d commit 7a3bdb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sprinter/Sd2PinMap.h
Expand Up @@ -117,7 +117,7 @@ static const pin_map_t digitalPinMap[] = {
{&DDRK, &PINK, &PORTK, 7} // K7 69
};
//------------------------------------------------------------------------------
#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__)
#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega1284P__)
// Sanguino

// Two Wire (aka I2C) ports
Expand Down
4 changes: 2 additions & 2 deletions Sprinter/fastio.h
Expand Up @@ -400,7 +400,7 @@ pins
#define PD7_PWM NULL
#endif /* _AVR_ATmega{168,328,328P}__ */

#if defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644PA__)
#if defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644PA__) || defined(__AVR_ATmega1284P__)
// UART
#define RXD DIO8
#define TXD DIO9
Expand Down Expand Up @@ -901,7 +901,7 @@ pins
#define PD7_WPORT PORTD
#define PD7_DDR DDRD
#define PD7_PWM &OCR2A
#endif /* _AVR_ATmega{644,644P,644PA}__ */
#endif /* _AVR_ATmega{644,644P,644PA,1284P}__ */

#if defined (__AVR_ATmega1280__) || defined (__AVR_ATmega2560__)
// UART
Expand Down
8 changes: 4 additions & 4 deletions Sprinter/pins.h
Expand Up @@ -98,7 +98,7 @@
#if MOTHERBOARD == 1
#define KNOWN_BOARD 1

#ifndef __AVR_ATmega644P__
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
#endif

Expand Down Expand Up @@ -148,7 +148,7 @@
#if MOTHERBOARD == 2
#define KNOWN_BOARD 1

#ifndef __AVR_ATmega644P__
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
#endif

Expand Down Expand Up @@ -376,7 +376,7 @@
#if MOTHERBOARD == 5
#define KNOWN_BOARD 1

#ifndef __AVR_ATmega644P__
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
#endif

Expand Down Expand Up @@ -435,7 +435,7 @@
#endif
#if MOTHERBOARD == 6
#define KNOWN_BOARD 1
#ifndef __AVR_ATmega644P__
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
#error Oops! Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
#endif

Expand Down

0 comments on commit 7a3bdb7

Please sign in to comment.