瀏覽代碼

Shared SPI sanity check (#16581)

vivian-ng 4 年之前
父節點
當前提交
e94f782f51
共有 3 個檔案被更改,包括 11 行新增0 行删除
  1. 8
    0
      Marlin/src/inc/SanityCheck.h
  2. 2
    0
      Marlin/src/pins/esp32/pins_MRR_ESPA.h
  3. 1
    0
      Marlin/src/pins/esp32/pins_MRR_ESPE.h

+ 8
- 0
Marlin/src/inc/SanityCheck.h 查看文件

@@ -2513,3 +2513,11 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
2513 2513
 #if HAS_ADC_BUTTONS && defined(ADC_BUTTON_DEBOUNCE_DELAY) && !WITHIN(ADC_BUTTON_DEBOUNCE_DELAY, 16, 255)
2514 2514
   #error "ADC_BUTTON_DEBOUNCE_DELAY must be an integer from 16 to 255."
2515 2515
 #endif
2516
+
2517
+/**
2518
+ * Check to make sure MONITOR_DRIVER_STATUS isn't enabled
2519
+ * on boards where TMC drivers share the SPI bus with SD.
2520
+ */
2521
+#if TMC_HAS_SPI && ALL(MONITOR_DRIVER_STATUS, SDSUPPORT, USES_SHARED_SPI)
2522
+  #error "MONITOR_DRIVER_STATUS and SDSUPPORT cannot be used together on boards with shared SPI."
2523
+#endif

+ 2
- 0
Marlin/src/pins/esp32/pins_MRR_ESPA.h 查看文件

@@ -99,3 +99,5 @@
99 99
 #define MISO_PIN           19
100 100
 #define SCK_PIN            18
101 101
 #define SDSS                5
102
+#define USES_SHARED_SPI  // SPI is shared by SD card with TMC SPI drivers
103
+

+ 1
- 0
Marlin/src/pins/esp32/pins_MRR_ESPE.h 查看文件

@@ -118,6 +118,7 @@
118 118
 #define MISO_PIN           19
119 119
 #define SCK_PIN            18
120 120
 #define SDSS                5
121
+#define USES_SHARED_SPI  // SPI is shared by SD card with TMC SPI drivers
121 122
 
122 123
 //////////////////////////
123 124
 // LCDs and Controllers //

Loading…
取消
儲存