|
@@ -196,3 +196,38 @@
|
196
|
196
|
#endif
|
197
|
197
|
|
198
|
198
|
#endif // ULTRA_LCD
|
|
199
|
+
|
|
200
|
+//
|
|
201
|
+// SD Support (as with the AZTEEG_X5_MINI_WIFI)
|
|
202
|
+//
|
|
203
|
+//#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
|
|
204
|
+#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
|
|
205
|
+
|
|
206
|
+//#define LPC_SD_LCD // Marlin uses the SD drive attached to the LCD
|
|
207
|
+#define LPC_SD_ONBOARD // Marlin uses the SD drive on the control board. There is no SD detect pin
|
|
208
|
+ // for the onboard card. Init card from LCD menu or send M21 whenever printer
|
|
209
|
+ // is powered on to enable SD access.
|
|
210
|
+
|
|
211
|
+#if ENABLED(LPC_SD_LCD)
|
|
212
|
+
|
|
213
|
+ #define SCK_PIN P0_15
|
|
214
|
+ #define MISO_PIN P0_17
|
|
215
|
+ #define MOSI_PIN P0_18
|
|
216
|
+ #define SS_PIN P1_23 // Chip select for SD card used by Marlin
|
|
217
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
218
|
+
|
|
219
|
+#elif ENABLED(LPC_SD_ONBOARD)
|
|
220
|
+
|
|
221
|
+ #if ENABLED(USB_SD_ONBOARD)
|
|
222
|
+ // When sharing the SD card with a PC we want the menu options to
|
|
223
|
+ // mount/unmount the card and refresh it. So we disable card detect.
|
|
224
|
+ #define SHARED_SD_CARD
|
|
225
|
+ #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
|
|
226
|
+ #endif
|
|
227
|
+ #define SCK_PIN P0_07
|
|
228
|
+ #define MISO_PIN P0_08
|
|
229
|
+ #define MOSI_PIN P0_09
|
|
230
|
+ #define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
|
231
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
232
|
+
|
|
233
|
+#endif
|