Browse Source

Tweaks for pins_BTT_SKR_common.h

Scott Lahteine 4 years ago
parent
commit
45b11553f4
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h

+ 6
- 6
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h View File

21
  */
21
  */
22
 #pragma once
22
 #pragma once
23
 
23
 
24
-#ifdef SKR_HAS_LPC1769
24
+#if ENABLED(SKR_HAS_LPC1769)
25
   #if NOT_TARGET(MCU_LPC1769)
25
   #if NOT_TARGET(MCU_LPC1769)
26
     #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
26
     #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
27
   #endif
27
   #endif
35
 
35
 
36
 #if BOTH(HAS_WIRED_LCD, HAS_BTT_EXP_MOT)
36
 #if BOTH(HAS_WIRED_LCD, HAS_BTT_EXP_MOT)
37
   #if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
37
   #if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
38
-    #define EXP_MOT_USE_EXP2_ONLY
38
+    #define EXP_MOT_USE_EXP2_ONLY 1
39
   #else
39
   #else
40
-    #error "Having a LCD that uses both EXP1/EXP2 and a expanion motor module on EXP1/EXP2 is not possible."
40
+    #error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
41
   #endif
41
   #endif
42
 #endif
42
 #endif
43
 
43
 
146
   #define E2_STEP_PIN               EXPA2_05_PIN
146
   #define E2_STEP_PIN               EXPA2_05_PIN
147
   #define E2_DIR_PIN                EXPA2_06_PIN
147
   #define E2_DIR_PIN                EXPA2_06_PIN
148
   #define E2_ENABLE_PIN             EXPA2_04_PIN
148
   #define E2_ENABLE_PIN             EXPA2_04_PIN
149
-  #ifndef EXP_MOT_USE_EXP2_ONLY
149
+  #if !EXP_MOT_USE_EXP2_ONLY
150
     #define E2_DIAG_PIN             EXPA1_06_PIN
150
     #define E2_DIAG_PIN             EXPA1_06_PIN
151
     #define E2_CS_PIN               EXPA1_05_PIN
151
     #define E2_CS_PIN               EXPA1_05_PIN
152
     #if HAS_TMC_UART
152
     #if HAS_TMC_UART
158
   // M2 on Driver Expansion Module
158
   // M2 on Driver Expansion Module
159
   #define E3_STEP_PIN               EXPA2_08_PIN
159
   #define E3_STEP_PIN               EXPA2_08_PIN
160
   #define E3_DIR_PIN                EXPA2_07_PIN
160
   #define E3_DIR_PIN                EXPA2_07_PIN
161
-  #ifndef EXP_MOT_USE_EXP2_ONLY
161
+  #if !EXP_MOT_USE_EXP2_ONLY
162
     #define E3_ENABLE_PIN           EXPA1_03_PIN
162
     #define E3_ENABLE_PIN           EXPA1_03_PIN
163
     #define E3_DIAG_PIN             EXPA1_08_PIN
163
     #define E3_DIAG_PIN             EXPA1_08_PIN
164
     #define E3_CS_PIN               EXPA1_07_PIN
164
     #define E3_CS_PIN               EXPA1_07_PIN
173
   // M3 on Driver Expansion Module
173
   // M3 on Driver Expansion Module
174
   #define E4_STEP_PIN               EXPA2_10_PIN
174
   #define E4_STEP_PIN               EXPA2_10_PIN
175
   #define E4_DIR_PIN                EXPA2_09_PIN
175
   #define E4_DIR_PIN                EXPA2_09_PIN
176
-  #ifndef EXP_MOT_USE_EXP2_ONLY
176
+  #if !EXP_MOT_USE_EXP2_ONLY
177
     #define E4_ENABLE_PIN           EXPA1_04_PIN
177
     #define E4_ENABLE_PIN           EXPA1_04_PIN
178
     #define E4_DIAG_PIN             EXPA1_10_PIN
178
     #define E4_DIAG_PIN             EXPA1_10_PIN
179
     #define E4_CS_PIN               EXPA1_09_PIN
179
     #define E4_CS_PIN               EXPA1_09_PIN

Loading…
Cancel
Save