Browse Source

Fix build on Sanguino based boards with ATmega1284P

Changwoo Ryu 13 years ago
parent
commit
7b14953c99
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/pins.h

+ 7
- 1
Marlin/pins.h View File

475
 #define KNOWN_BOARD 1
475
 #define KNOWN_BOARD 1
476
 
476
 
477
 #ifndef __AVR_ATmega644P__
477
 #ifndef __AVR_ATmega644P__
478
-    #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
478
+#ifndef __AVR_ATmega1284P__
479
+#error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
480
+#endif
479
 #endif
481
 #endif
480
 
482
 
481
 //x axis pins
483
 //x axis pins
546
 #if MOTHERBOARD == 6
548
 #if MOTHERBOARD == 6
547
 #define KNOWN_BOARD 1
549
 #define KNOWN_BOARD 1
548
 #ifndef __AVR_ATmega644P__
550
 #ifndef __AVR_ATmega644P__
551
+#ifndef __AVR_ATmega1284P__
549
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
552
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
550
 #endif
553
 #endif
554
+#endif
551
 
555
 
552
 #define X_STEP_PIN         15
556
 #define X_STEP_PIN         15
553
 #define X_DIR_PIN          21
557
 #define X_DIR_PIN          21
867
 #define MOTHERBOARD 6
871
 #define MOTHERBOARD 6
868
 #define KNOWN_BOARD 1
872
 #define KNOWN_BOARD 1
869
 #ifndef __AVR_ATmega644P__
873
 #ifndef __AVR_ATmega644P__
874
+#ifndef __AVR_ATmega1284P__
870
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
875
 #error Oops!  Make sure you have 'Sanguino' selected from the 'Tools -> Boards' menu.
871
 #endif
876
 #endif
877
+#endif
872
 
878
 
873
 #define X_STEP_PIN         15
879
 #define X_STEP_PIN         15
874
 #define X_DIR_PIN          18
880
 #define X_DIR_PIN          18

Loading…
Cancel
Save