|
@@ -23,50 +23,29 @@
|
23
|
23
|
#ifndef SPI_PINS_LPC1768_H
|
24
|
24
|
#define SPI_PINS_LPC1768_H
|
25
|
25
|
|
26
|
|
-#include "../../inc/MarlinConfig.h"
|
27
|
|
-
|
28
|
|
-#if MB(MKS_SBASE)
|
29
|
|
-
|
30
|
|
- #define LPC_SOFTWARE_SPI // MKS_SBASE needs a software SPI because the
|
31
|
|
- // selected pins are not on a hardware SPI controller
|
32
|
|
-
|
33
|
|
- // A custom cable is needed. See the README file in the
|
34
|
|
- // Marlin\src\config\examples\Mks\Sbase directory
|
35
|
|
-
|
36
|
|
- #define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
37
|
|
- #define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
38
|
|
- #define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.5)
|
39
|
|
- #define SS_PIN P0_28
|
40
|
|
- #define SD_DETECT_PIN P0_27
|
41
|
|
-
|
42
|
|
-#else
|
43
|
|
-
|
44
|
|
- #define LPC_SOFTWARE_SPI // Re-ARM board needs a software SPI because using the
|
45
|
|
- // standard LCD adapter results in the LCD and the
|
46
|
|
- // SD card sharing a single SPI when the RepRap Full
|
47
|
|
- // Graphic Smart Controller is selected
|
48
|
|
-
|
49
|
|
- /** onboard SD card */
|
50
|
|
- //#define SCK_PIN P0_07
|
51
|
|
- //#define MISO_PIN P0_08
|
52
|
|
- //#define MOSI_PIN P0_09
|
53
|
|
- //#define SS_PIN P0_06
|
54
|
|
- /** external */
|
55
|
|
- #ifndef SCK_PIN
|
56
|
|
- #define SCK_PIN P0_15
|
57
|
|
- #endif
|
58
|
|
- #ifndef MISO_PIN
|
59
|
|
- #define MISO_PIN P0_17
|
60
|
|
- #endif
|
61
|
|
- #ifndef MOSI_PIN
|
62
|
|
- #define MOSI_PIN P0_18
|
63
|
|
- #endif
|
64
|
|
- #ifndef SS_PIN
|
65
|
|
- #define SS_PIN P1_23
|
66
|
|
- #endif
|
67
|
|
-
|
68
|
|
-#endif // MKS_SBASE
|
69
|
|
-
|
|
26
|
+#define LPC_SOFTWARE_SPI // Re-ARM board needs a software SPI because using the
|
|
27
|
+ // standard LCD adapter results in the LCD and the
|
|
28
|
+ // SD card sharing a single SPI when the RepRap Full
|
|
29
|
+ // Graphic Smart Controller is selected
|
|
30
|
+
|
|
31
|
+/** onboard SD card */
|
|
32
|
+//#define SCK_PIN P0_07
|
|
33
|
+//#define MISO_PIN P0_08
|
|
34
|
+//#define MOSI_PIN P0_09
|
|
35
|
+//#define SS_PIN P0_06
|
|
36
|
+/** external */
|
|
37
|
+#ifndef SCK_PIN
|
|
38
|
+ #define SCK_PIN P0_15
|
|
39
|
+#endif
|
|
40
|
+#ifndef MISO_PIN
|
|
41
|
+ #define MISO_PIN P0_17
|
|
42
|
+#endif
|
|
43
|
+#ifndef MOSI_PIN
|
|
44
|
+ #define MOSI_PIN P0_18
|
|
45
|
+#endif
|
|
46
|
+#ifndef SS_PIN
|
|
47
|
+ #define SS_PIN P1_23
|
|
48
|
+#endif
|
70
|
49
|
#ifndef SDSS
|
71
|
50
|
#define SDSS SS_PIN
|
72
|
51
|
#endif
|