Преглед на файлове

Merge pull request #8650 from Bob-the-Kuhn/2.0.x-comment

[2.0.x] LPC1768 - add explanations in spi_pins.h
Bob-the-Kuhn преди 7 години
родител
ревизия
cff886ba12
No account linked to committer's email address
променени са 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
 
27
 
28
 #if MB(MKS_SBASE)
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
 // A custom cable is needed. See the README file in the 
33
 // A custom cable is needed. See the README file in the 
33
 // Marlin\src\config\examples\Mks\Sbase directory
34
 // Marlin\src\config\examples\Mks\Sbase directory
39
 
40
 
40
 #else
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
 /** onboard SD card */
48
 /** onboard SD card */
45
 //#define SCK_PIN           P0_07
49
 //#define SCK_PIN           P0_07
63
   #define SDSS              SS_PIN
67
   #define SDSS              SS_PIN
64
 #endif
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
 #endif // MKS_SBASE
70
 #endif // MKS_SBASE
71
 #endif /* SPI_PINS_LPC1768_H */
71
 #endif /* SPI_PINS_LPC1768_H */

Loading…
Отказ
Запис