Browse Source

TMC SPI sanity-check and pins debugging (#10324)

Bob-the-Kuhn 6 years ago
parent
commit
ab715c70d1
2 changed files with 18 additions and 4 deletions
  1. 9
    4
      Marlin/src/HAL/HAL_LPC1768/SanityCheck.h
  2. 9
    0
      Marlin/src/pins/pinsDebug_list.h

+ 9
- 4
Marlin/src/HAL/HAL_LPC1768/SanityCheck.h View File

@@ -24,10 +24,6 @@
24 24
  * Test Re-ARM specific configuration values for errors at compile-time.
25 25
  */
26 26
 
27
-/**
28
- * Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features.
29
- */
30
-
31 27
 #if ENABLED(SPINDLE_LASER_ENABLE)
32 28
   #if !PIN_EXISTS(SPINDLE_LASER_ENABLE)
33 29
     #error "SPINDLE_LASER_ENABLE requires SPINDLE_LASER_ENABLE_PIN."
@@ -69,3 +65,12 @@
69 65
     #endif
70 66
   #endif
71 67
 #endif // SPINDLE_LASER_ENABLE
68
+
69
+#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && ENABLED(HAVE_TMC2130) && DISABLED(TMC_USE_SW_SPI) \
70
+    && (MB(RAMPS_14_RE_ARM_EFB) \
71
+    ||  MB(RAMPS_14_RE_ARM_EEB) \
72
+    ||  MB(RAMPS_14_RE_ARM_EFF) \
73
+    ||  MB(RAMPS_14_RE_ARM_EEF) \
74
+    ||  MB(RAMPS_14_RE_ARM_SF))
75
+  #error "Re-ARM with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and TMC2130 require TMC_USE_SW_SPI"
76
+#endif

+ 9
- 0
Marlin/src/pins/pinsDebug_list.h View File

@@ -226,6 +226,15 @@
226 226
 #if defined(DOGLCD_SCK) && DOGLCD_SCK >= 0
227 227
   REPORT_NAME_DIGITAL(__LINE__, DOGLCD_SCK)
228 228
 #endif
229
+#if defined(TMC_SW_MISO) && TMC_SW_MISO >= 0
230
+  REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO)
231
+#endif
232
+#if defined(TMC_SW_MOSI) && TMC_SW_MOSI >= 0
233
+  REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI)
234
+#endif
235
+#if defined(TMC_SW_SCK) && TMC_SW_SCK >= 0
236
+  REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
237
+#endif
229 238
 #if PIN_EXISTS(E_MUX0)
230 239
   REPORT_NAME_DIGITAL(__LINE__, E_MUX0_PIN)
231 240
 #endif

Loading…
Cancel
Save