ソースを参照

add explanations

1) add explanations as to why software SPIs are selected

2) remove unused flag/option
Bob-the-Kuhn 6年前
コミット
57fac33a74
1個のファイルの変更6行の追加6行の削除
  1. 6
    6
      Marlin/src/HAL/HAL_LPC1768/spi_pins.h

+ 6
- 6
Marlin/src/HAL/HAL_LPC1768/spi_pins.h ファイルの表示

@@ -27,7 +27,8 @@
27 27
 
28 28
 #if MB(MKS_SBASE)
29 29
   
30
-#define LPC_SOFTWARE_SPI
30
+#define LPC_SOFTWARE_SPI  // MKS_SBASE needs a software SPI because the 
31
+                          // selected pins are not on a hardware SPI controller
31 32
 
32 33
 // A custom cable is needed. See the README file in the 
33 34
 // Marlin\src\config\examples\Mks\Sbase directory
@@ -39,7 +40,10 @@
39 40
 
40 41
 #else
41 42
 
42
-#define LPC_SOFTWARE_SPI
43
+#define LPC_SOFTWARE_SPI  // Re-ARM board needs a software SPI because using the 
44
+                          // standard LCD adapter results in the LCD and the 
45
+                          // SD card sharing a single SPI when the RepRap Full
46
+                          // Graphic Smart Controller is selected
43 47
 
44 48
 /** onboard SD card */
45 49
 //#define SCK_PIN           P0_07
@@ -63,9 +67,5 @@
63 67
   #define SDSS              SS_PIN
64 68
 #endif
65 69
 
66
-#if defined(TARGET_LPC1768) && !defined(LPC_SOFTWARE_SPI)   // signal LCDs that they need to use the hardware SPI
67
-  #define SHARED_SPI
68
-#endif
69
-
70 70
 #endif // MKS_SBASE
71 71
 #endif /* SPI_PINS_LPC1768_H */

読み込み中…
キャンセル
保存