|
|
@ -118,39 +118,30 @@
|
|
|
|
// MKS_MINI_12864 strongly prefers the SD card on the display and
|
|
|
|
// MKS_MINI_12864 strongly prefers the SD card on the display and
|
|
|
|
// requires jumpers on the SKR V1.1 board as documented here:
|
|
|
|
// requires jumpers on the SKR V1.1 board as documented here:
|
|
|
|
// https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
|
|
|
|
// https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
|
|
|
|
#if !ANY(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
|
|
|
|
#ifndef SDCARD_CONNECTION
|
|
|
|
#if ENABLED(MKS_MINI_12864)
|
|
|
|
#if ENABLED(MKS_MINI_12864)
|
|
|
|
#define LPC_SD_LCD
|
|
|
|
#define SDCARD_CONNECTION LCD
|
|
|
|
#undef USB_SD_DISABLED
|
|
|
|
|
|
|
|
#define USB_SD_ONBOARD
|
|
|
|
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define USB_SD_ONBOARD
|
|
|
|
#define SDCARD_CONNECTION ONBOARD
|
|
|
|
#define LPC_SD_ONBOARD
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(LPC_SD_LCD)
|
|
|
|
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(LCD)
|
|
|
|
#define SCK_PIN P0_15
|
|
|
|
#define SCK_PIN P0_15
|
|
|
|
#define MISO_PIN P0_17
|
|
|
|
#define MISO_PIN P0_17
|
|
|
|
#define MOSI_PIN P0_18
|
|
|
|
#define MOSI_PIN P0_18
|
|
|
|
#define SS_PIN P1_23 // Chip select for SD card used by Marlin
|
|
|
|
#define SS_PIN P1_23
|
|
|
|
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
|
|
#elif SD_CONNECTION_IS(ONBOARD)
|
|
|
|
|
|
|
|
#undef SD_DETECT_PIN
|
|
|
|
#elif ENABLED(LPC_SD_ONBOARD)
|
|
|
|
#define SD_DETECT_PIN P0_27
|
|
|
|
|
|
|
|
|
|
|
|
#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 SCK_PIN P0_07
|
|
|
|
#define MISO_PIN P0_08
|
|
|
|
#define MISO_PIN P0_08
|
|
|
|
#define MOSI_PIN P0_09
|
|
|
|
#define MOSI_PIN P0_09
|
|
|
|
#define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
|
|
|
#define SS_PIN ONBOARD_SD_CS_PIN
|
|
|
|
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
|
|
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
|
|
|
|
|
|
|
#error "No custom SD drive cable defined for this board."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
// Trinamic driver support
|
|
|
|
// Trinamic driver support
|
|
|
@ -232,11 +223,11 @@
|
|
|
|
// EXAMPLES
|
|
|
|
// EXAMPLES
|
|
|
|
|
|
|
|
|
|
|
|
// Example 1: No LCD attached or a TFT style display using the AUX header RX/TX pins.
|
|
|
|
// Example 1: No LCD attached or a TFT style display using the AUX header RX/TX pins.
|
|
|
|
// LPC_SD_LCD must not be enabled. Nothing should be connected to EXP1/EXP2.
|
|
|
|
// SDCARD_CONNECTION must not be 'LCD'. Nothing should be connected to EXP1/EXP2.
|
|
|
|
//#define SKR_USE_LCD_PINS_FOR_CS
|
|
|
|
//#define SKR_USE_LCD_PINS_FOR_CS
|
|
|
|
#if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
|
|
|
|
#if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
|
|
|
|
#if ENABLED(LPC_SD_LCD)
|
|
|
|
#if SD_CONNECTION_IS(LCD)
|
|
|
|
#error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_PINS_FOR_CS."
|
|
|
|
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define X_CS_PIN P1_23
|
|
|
|
#define X_CS_PIN P1_23
|
|
|
|
#define Y_CS_PIN P3_26
|
|
|
|
#define Y_CS_PIN P3_26
|
|
|
@ -247,11 +238,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
|
|
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
|
|
|
// The SD card reader attached to the LCD (if present) can't be used because
|
|
|
|
// The SD card reader attached to the LCD (if present) can't be used because
|
|
|
|
// the pins will be in use. So LPC_SD_LCD must not be defined.
|
|
|
|
// the pins will be in use. So SDCARD_CONNECTION must not be 'LCD'.
|
|
|
|
//#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS
|
|
|
|
//#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS
|
|
|
|
#if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
|
|
|
|
#if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
|
|
|
|
#if ENABLED(LPC_SD_LCD)
|
|
|
|
#if SD_CONNECTION_IS(LCD)
|
|
|
|
#error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
|
|
|
|
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define X_CS_PIN P0_02
|
|
|
|
#define X_CS_PIN P0_02
|
|
|
|
#define Y_CS_PIN P0_03
|
|
|
|
#define Y_CS_PIN P0_03
|
|
|
|