|
@@ -27,45 +27,48 @@
|
27
|
27
|
|
28
|
28
|
#if MB(MKS_SBASE)
|
29
|
29
|
|
30
|
|
-#define LPC_SOFTWARE_SPI // MKS_SBASE needs a software SPI because the
|
31
|
|
- // selected pins are not on a hardware SPI controller
|
|
30
|
+ #define LPC_SOFTWARE_SPI // MKS_SBASE needs a software SPI because the
|
|
31
|
+ // selected pins are not on a hardware SPI controller
|
32
|
32
|
|
33
|
|
-// A custom cable is needed. See the README file in the
|
34
|
|
-// Marlin\src\config\examples\Mks\Sbase directory
|
|
33
|
+ // A custom cable is needed. See the README file in the
|
|
34
|
+ // Marlin\src\config\examples\Mks\Sbase directory
|
35
|
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
|
|
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
|
40
|
41
|
|
41
|
42
|
#else
|
42
|
43
|
|
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
|
|
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
|
47
|
69
|
|
48
|
|
-/** onboard SD card */
|
49
|
|
-//#define SCK_PIN P0_07
|
50
|
|
-//#define MISO_PIN P0_08
|
51
|
|
-//#define MOSI_PIN P0_09
|
52
|
|
-//#define SS_PIN P0_06
|
53
|
|
-/** external */
|
54
|
|
-#ifndef SCK_PIN
|
55
|
|
- #define SCK_PIN P0_15
|
56
|
|
-#endif
|
57
|
|
-#ifndef MISO_PIN
|
58
|
|
- #define MISO_PIN P0_17
|
59
|
|
-#endif
|
60
|
|
-#ifndef MOSI_PIN
|
61
|
|
- #define MOSI_PIN P0_18
|
62
|
|
-#endif
|
63
|
|
-#ifndef SS_PIN
|
64
|
|
- #define SS_PIN P1_23
|
65
|
|
-#endif
|
66
|
70
|
#ifndef SDSS
|
67
|
71
|
#define SDSS SS_PIN
|
68
|
72
|
#endif
|
69
|
73
|
|
70
|
|
-#endif // MKS_SBASE
|
71
|
|
-#endif /* SPI_PINS_LPC1768_H */
|
|
74
|
+#endif // SPI_PINS_LPC1768_H
|