Browse Source

Fix pins_RAMPS.h for 32-bit platforms

Followup to 436e5b7
Scott Lahteine 7 years ago
parent
commit
d573a2cada
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      Marlin/src/pins/pins_RAMPS.h

+ 14
- 2
Marlin/src/pins/pins_RAMPS.h View File

44
  *         7 | 11
44
  *         7 | 11
45
  */
45
  */
46
 
46
 
47
-#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
48
-  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
47
+#if ENABLED(TARGET_LPC1768)
48
+  #error "Oops!  Set MOTHERBOARD to an LPC1768-based board when building for LPC1768."
49
+#elif defined(__STM32F1__)
50
+  #error "Oops!  Set MOTHERBOARD to an STM32F1-based board when building for STM32F1."
51
+#endif
52
+
53
+#if DISABLED(IS_RAMPS_SMART) && DISABLED(IS_RAMPS_DUO) && DISABLED(IS_RAMPS4DUE) && DISABLED(TARGET_LPC1768)
54
+  #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
55
+    #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
56
+  #endif
49
 #endif
57
 #endif
50
 
58
 
51
 #ifndef BOARD_NAME
59
 #ifndef BOARD_NAME
539
 
547
 
540
       #define ADC_KEYPAD_PIN    12
548
       #define ADC_KEYPAD_PIN    12
541
 
549
 
550
+    #elif ENABLED(AZSMZ_12864)
551
+
552
+      // Pins only defined for RAMPS_SMART currently
553
+
542
     #else
554
     #else
543
 
555
 
544
       // Beeper on AUX-4
556
       // Beeper on AUX-4

Loading…
Cancel
Save