1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Update LPC SD pins for BIQU SKR (#12767)

(Exactly matching the Azteeg X5 MINI Wifi)
This commit is contained in:
luxflow 2019-01-04 01:44:00 +09:00 committed by Scott Lahteine
parent 813a4ea107
commit 7f244f9b9c

View File

@ -196,3 +196,38 @@
#endif
#endif // ULTRA_LCD
//
// SD Support (as with the AZTEEG_X5_MINI_WIFI)
//
//#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
//#define LPC_SD_LCD // Marlin uses the SD drive attached to the LCD
#define LPC_SD_ONBOARD // Marlin uses the SD drive on the control board. There is no SD detect pin
// for the onboard card. Init card from LCD menu or send M21 whenever printer
// is powered on to enable SD access.
#if ENABLED(LPC_SD_LCD)
#define SCK_PIN P0_15
#define MISO_PIN P0_17
#define MOSI_PIN P0_18
#define SS_PIN P1_23 // Chip select for SD card used by Marlin
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
#elif ENABLED(LPC_SD_ONBOARD)
#if ENABLED(USB_SD_ONBOARD)
// When sharing the SD card with a PC we want the menu options to
// mount/unmount the card and refresh it. So we disable card detect.
#define SHARED_SD_CARD
#undef SD_DETECT_PIN // there is also no detect pin for the onboard card
#endif
#define SCK_PIN P0_07
#define MISO_PIN P0_08
#define MOSI_PIN P0_09
#define SS_PIN P0_06 // Chip select for SD card used by Marlin
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
#endif