|
@ -214,9 +214,6 @@ |
|
|
//
|
|
|
//
|
|
|
// detect pin dont work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
|
|
// detect pin dont work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
|
|
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD |
|
|
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD |
|
|
#define CUSTOM_SPI_PINS |
|
|
|
|
|
#if ENABLED(CUSTOM_SPI_PINS) |
|
|
|
|
|
|
|
|
|
|
|
#if USE_NEW_SPI_API |
|
|
#if USE_NEW_SPI_API |
|
|
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9) |
|
|
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9) |
|
|
#else |
|
|
#else |
|
@ -228,7 +225,6 @@ |
|
|
#define SD_MOSI_PIN PC12 |
|
|
#define SD_MOSI_PIN PC12 |
|
|
#endif |
|
|
#endif |
|
|
#define SD_DETECT_PIN PD12 |
|
|
#define SD_DETECT_PIN PD12 |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
@ -236,15 +232,12 @@ |
|
|
// LCD SD
|
|
|
// LCD SD
|
|
|
//
|
|
|
//
|
|
|
#if SDCARD_CONNECTION == LCD |
|
|
#if SDCARD_CONNECTION == LCD |
|
|
#define CUSTOM_SPI_PINS |
|
|
|
|
|
#if ENABLED(CUSTOM_SPI_PINS) |
|
|
|
|
|
#define ENABLE_SPI1 |
|
|
#define ENABLE_SPI1 |
|
|
#define SDSS PE10 |
|
|
#define SDSS PE10 |
|
|
#define SD_SCK_PIN PA5 |
|
|
#define SD_SCK_PIN PA5 |
|
|
#define SD_MISO_PIN PA6 |
|
|
#define SD_MISO_PIN PA6 |
|
|
#define SD_MOSI_PIN PA7 |
|
|
#define SD_MOSI_PIN PA7 |
|
|
#define SD_DETECT_PIN PE12 |
|
|
#define SD_DETECT_PIN PE12 |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|