|
@@ -21,7 +21,7 @@
|
21
|
21
|
*/
|
22
|
22
|
#pragma once
|
23
|
23
|
|
24
|
|
-#ifdef SKR_HAS_LPC1769
|
|
24
|
+#if ENABLED(SKR_HAS_LPC1769)
|
25
|
25
|
#if NOT_TARGET(MCU_LPC1769)
|
26
|
26
|
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
27
|
27
|
#endif
|
|
@@ -35,9 +35,9 @@
|
35
|
35
|
|
36
|
36
|
#if BOTH(HAS_WIRED_LCD, HAS_BTT_EXP_MOT)
|
37
|
37
|
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
|
38
|
|
- #define EXP_MOT_USE_EXP2_ONLY
|
|
38
|
+ #define EXP_MOT_USE_EXP2_ONLY 1
|
39
|
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
|
41
|
#endif
|
42
|
42
|
#endif
|
43
|
43
|
|
|
@@ -146,7 +146,7 @@
|
146
|
146
|
#define E2_STEP_PIN EXPA2_05_PIN
|
147
|
147
|
#define E2_DIR_PIN EXPA2_06_PIN
|
148
|
148
|
#define E2_ENABLE_PIN EXPA2_04_PIN
|
149
|
|
- #ifndef EXP_MOT_USE_EXP2_ONLY
|
|
149
|
+ #if !EXP_MOT_USE_EXP2_ONLY
|
150
|
150
|
#define E2_DIAG_PIN EXPA1_06_PIN
|
151
|
151
|
#define E2_CS_PIN EXPA1_05_PIN
|
152
|
152
|
#if HAS_TMC_UART
|
|
@@ -158,7 +158,7 @@
|
158
|
158
|
// M2 on Driver Expansion Module
|
159
|
159
|
#define E3_STEP_PIN EXPA2_08_PIN
|
160
|
160
|
#define E3_DIR_PIN EXPA2_07_PIN
|
161
|
|
- #ifndef EXP_MOT_USE_EXP2_ONLY
|
|
161
|
+ #if !EXP_MOT_USE_EXP2_ONLY
|
162
|
162
|
#define E3_ENABLE_PIN EXPA1_03_PIN
|
163
|
163
|
#define E3_DIAG_PIN EXPA1_08_PIN
|
164
|
164
|
#define E3_CS_PIN EXPA1_07_PIN
|
|
@@ -173,7 +173,7 @@
|
173
|
173
|
// M3 on Driver Expansion Module
|
174
|
174
|
#define E4_STEP_PIN EXPA2_10_PIN
|
175
|
175
|
#define E4_DIR_PIN EXPA2_09_PIN
|
176
|
|
- #ifndef EXP_MOT_USE_EXP2_ONLY
|
|
176
|
+ #if !EXP_MOT_USE_EXP2_ONLY
|
177
|
177
|
#define E4_ENABLE_PIN EXPA1_04_PIN
|
178
|
178
|
#define E4_DIAG_PIN EXPA1_10_PIN
|
179
|
179
|
#define E4_CS_PIN EXPA1_09_PIN
|