Prefix SD SPI pins (SCK, MISO, MOSI, SS) (#20606)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -100,8 +100,8 @@
|
||||
//
|
||||
// MicroSD card on SPI
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
@ -104,9 +104,9 @@
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
|
@ -93,9 +93,9 @@
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
|
@ -112,9 +112,9 @@
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
|
@ -102,16 +102,16 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN LCD_SDSS
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN LCD_SDSS
|
||||
#define SD_DETECT_PIN P3_25
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
@ -155,11 +155,11 @@
|
||||
* Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SCK_PIN P0_15 // EXP1-5
|
||||
#define MISO_PIN P0_16 // EXP1-4
|
||||
#define MOSI_PIN P0_18 // EXP1-3
|
||||
#define SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SS_PIN
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
#define SD_MOSI_PIN P0_18 // EXP1-3
|
||||
#define SD_SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SD_SS_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -127,11 +127,11 @@
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#define SCK_PIN P0_15 // EXP1-5
|
||||
#define MISO_PIN P0_16 // EXP1-4
|
||||
#define MOSI_PIN P0_18 // EXP1-3
|
||||
#define SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SS_PIN
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
#define SD_MOSI_PIN P0_18 // EXP1-3
|
||||
#define SD_SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
||||
|
@ -107,7 +107,7 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN P1_23
|
||||
#define SD_SS_PIN P1_23
|
||||
#endif
|
||||
|
||||
// Trinamic driver support
|
||||
|
@ -375,7 +375,7 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN EXPA2_07_PIN
|
||||
#define SD_SS_PIN EXPA2_07_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -244,7 +244,7 @@
|
||||
// SD Connection
|
||||
//
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN EXPA2_07_PIN
|
||||
#define SD_SS_PIN EXPA2_07_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -374,9 +374,9 @@
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
// SPI 1
|
||||
#define SCK_PIN EXPA2_09_PIN
|
||||
#define MISO_PIN EXPA2_10_PIN
|
||||
#define MOSI_PIN EXPA2_05_PIN
|
||||
#define SD_SCK_PIN EXPA2_09_PIN
|
||||
#define SD_MISO_PIN EXPA2_10_PIN
|
||||
#define SD_MOSI_PIN EXPA2_05_PIN
|
||||
|
||||
// Disable any LCD related PINs config
|
||||
#define LCD_PINS_ENABLE -1
|
||||
|
@ -114,16 +114,16 @@
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
@ -154,15 +154,15 @@
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN P0_16
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN P0_16
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
|
@ -182,26 +182,25 @@
|
||||
* SD_DETECT_PIN entirely and remove that wire from the the custom cable.
|
||||
*/
|
||||
#define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
|
||||
#define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
||||
#define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
||||
#define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
|
||||
#define SS_PIN P0_28
|
||||
#define SD_SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
||||
#define SD_MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
||||
#define SD_MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
|
||||
#define SD_SS_PIN P0_28
|
||||
#define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the
|
||||
// selected pins are not on a hardware SPI controller
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
// use standard cable and header, SPI and SD detect sre shared with on-board SD card
|
||||
// hardware SPI is used for both SD cards. The detect pin is shred between the
|
||||
// LCD and onboard SD readers so we disable it.
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN P0_28
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
// Use standard cable and header, SPI and SD detect are shared with onboard SD card.
|
||||
// Hardware SPI is used for both SD cards. The detect pin is shared between the
|
||||
// LCD and onboard SD readers so we disable it.
|
||||
#define SD_SS_PIN P0_28
|
||||
#else
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -238,8 +237,8 @@
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1.5
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
@ -375,13 +375,13 @@
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SS_PIN P0_28
|
||||
#define SD_SS_PIN P0_28
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
|
@ -336,11 +336,6 @@
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
//#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
//#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
//#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
//#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS)
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define BEEPER_PIN P1_01
|
||||
#define BTN_ENC P1_04
|
||||
@ -375,8 +370,8 @@
|
||||
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
@ -464,16 +459,16 @@
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#define SD_SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
#define SD_MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
#define SD_MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
#define SD_SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
@ -162,8 +162,8 @@
|
||||
|
||||
#define BEEPER_PIN P1_30 // (37) may change if cable changes
|
||||
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
@ -204,16 +204,16 @@
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN P1_23
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN P1_23
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
@ -253,10 +253,10 @@
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P2_00
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN P0_06
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN P0_06
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "SD CUSTOM_CABLE is not compatible with SKR E3 Turbo."
|
||||
#endif
|
||||
|
@ -233,17 +233,16 @@
|
||||
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
|
||||
#define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
|
||||
#define MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
|
||||
#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
|
||||
#define SD_MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
|
||||
#define SD_MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#else
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
@ -167,15 +167,15 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SS_PIN P0_06
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SD_SS_PIN P0_06
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_DETECT_PIN P0_05
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN P0_16
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN P0_16
|
||||
#define SD_DETECT_PIN P2_06
|
||||
#endif
|
||||
|
@ -394,13 +394,13 @@
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SS_PIN P0_28
|
||||
#define SD_SS_PIN P0_28
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
|
@ -124,10 +124,10 @@
|
||||
*/
|
||||
#define SD_DETECT_PIN P0_27 // EXP2 Pin 7 (SD_CD, SD_DET)
|
||||
|
||||
#define MISO_PIN P0_08 // EXP2 Pin 1 (PB3, SD_MISO)
|
||||
#define SCK_PIN P0_07 // EXP2 Pin 2 (SD_SCK)
|
||||
#define SS_PIN P0_28 // EXP2 Pin 4 (SD_CSEL, SD_CS)
|
||||
#define MOSI_PIN P0_09 // EXP2 Pin 6 (PB2, SD_MOSI)
|
||||
#define SD_MISO_PIN P0_08 // EXP2 Pin 1 (PB3, SD_MISO)
|
||||
#define SD_SCK_PIN P0_07 // EXP2 Pin 2 (SD_SCK)
|
||||
#define SD_SS_PIN P0_28 // EXP2 Pin 4 (SD_CSEL, SD_CS)
|
||||
#define SD_MOSI_PIN P0_09 // EXP2 Pin 6 (PB2, SD_MOSI)
|
||||
|
||||
/**
|
||||
* The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either
|
||||
|
@ -141,11 +141,11 @@
|
||||
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define ONBOARD_SD_CS_PIN P0_06
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
@ -702,7 +702,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MISO)
|
||||
// #endif
|
||||
#if PIN_EXISTS(MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MISO_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOSFET_A)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOSFET_A_PIN)
|
||||
@ -720,7 +720,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MOSI)
|
||||
// #endif
|
||||
#if PIN_EXISTS(MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOSI_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_E_PIN)
|
||||
@ -801,7 +801,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCK)
|
||||
// #endif
|
||||
#if PIN_EXISTS(SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SCK_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN)
|
||||
#endif
|
||||
// #if defined(SCL) && SCL >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCL)
|
||||
@ -909,7 +909,7 @@
|
||||
REPORT_NAME_DIGITAL(__LINE__, SR_STROBE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(SS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SS_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_SS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(STAT_LED_BLUE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN)
|
||||
|
@ -80,9 +80,9 @@
|
||||
#define SDSS 53 // PB0 / SS
|
||||
#define LED_PIN 13 // PB7 / PWM13
|
||||
|
||||
#define MISO_PIN 50 // PB3
|
||||
#define MOSI_PIN 51 // PB2
|
||||
#define SCK_PIN 52 // PB1
|
||||
#define SD_MISO_PIN 50 // PB3
|
||||
#define SD_MOSI_PIN 51 // PB2
|
||||
#define SD_SCK_PIN 52 // PB1
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
|
@ -170,9 +170,9 @@
|
||||
#define INT_SDSS 55 // D55 PA24/MCDA3
|
||||
|
||||
// External SD card reader on SC2
|
||||
#define SCK_PIN 76 // D76 PA27
|
||||
#define MISO_PIN 74 // D74 PA25
|
||||
#define MOSI_PIN 75 // D75 PA26
|
||||
#define SD_SCK_PIN 76 // D76 PA27
|
||||
#define SD_MISO_PIN 74 // D74 PA25
|
||||
#define SD_MOSI_PIN 75 // D75 PA26
|
||||
#define SDSS 87 // D87 PA29
|
||||
|
||||
// 2MB SPI Flash
|
||||
|
@ -192,9 +192,9 @@
|
||||
#define INT_SDSS 55 // D55 PA24/MCDA3
|
||||
|
||||
// External SD card reader on SC2
|
||||
#define SCK_PIN 76 // D76 PA27
|
||||
#define MISO_PIN 74 // D74 PA25
|
||||
#define MOSI_PIN 75 // D75 PA26
|
||||
#define SD_SCK_PIN 76 // D76 PA27
|
||||
#define SD_MISO_PIN 74 // D74 PA25
|
||||
#define SD_MOSI_PIN 75 // D75 PA26
|
||||
#define SDSS 87 // D87 PA29
|
||||
|
||||
// Unused Digital GPIO J20 Pins
|
||||
|
@ -117,9 +117,9 @@
|
||||
//
|
||||
// SD card
|
||||
//
|
||||
#define SCK_PIN 76
|
||||
#define MISO_PIN 74
|
||||
#define MOSI_PIN 75
|
||||
#define SD_SCK_PIN 76
|
||||
#define SD_MISO_PIN 74
|
||||
#define SD_MOSI_PIN 75
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 40
|
||||
|
||||
|
@ -151,9 +151,9 @@
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
|
||||
#define MISO_PIN 68 // set to unused pins for now
|
||||
#define MOSI_PIN 69 // set to unused pins for now
|
||||
#define SCK_PIN 70 // set to unused pins for now
|
||||
#define SD_MISO_PIN 68 // set to unused pins for now
|
||||
#define SD_MOSI_PIN 69 // set to unused pins for now
|
||||
#define SD_SCK_PIN 70 // set to unused pins for now
|
||||
#define SDSS 71 // set to unused pins for now
|
||||
|
||||
/**
|
||||
|
@ -147,9 +147,9 @@
|
||||
#define SPI_EEPROM2_CS -1
|
||||
#define SPI_FLASH_CS -1
|
||||
|
||||
#define SCK_PIN 76
|
||||
#define MISO_PIN 74
|
||||
#define MOSI_PIN 75
|
||||
#define SD_SCK_PIN 76
|
||||
#define SD_MISO_PIN 74
|
||||
#define SD_MOSI_PIN 75
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
#define MAX6675_SS_PIN 65
|
||||
|
@ -91,13 +91,13 @@
|
||||
PIN: 3 Port: B3 Z_STEP_PIN protected
|
||||
PIN: 4 Port: B4 AVR_SS_PIN protected
|
||||
. FAN_PIN protected
|
||||
. SS_PIN protected
|
||||
. SD_SS_PIN protected
|
||||
PIN: 5 Port: B5 AVR_MOSI_PIN Output = 1
|
||||
. MOSI_PIN Output = 1
|
||||
. SD_MOSI_PIN Output = 1
|
||||
PIN: 6 Port: B6 AVR_MISO_PIN Input = 0 TIMER3A PWM: 0 WGM: 1 COM3A: 0 CS: 3 TCCR3A: 1 TCCR3B: 3 TIMSK3: 0
|
||||
. MISO_PIN Input = 0
|
||||
. SD_MISO_PIN Input = 0
|
||||
PIN: 7 Port: B7 AVR_SCK_PIN Output = 0 TIMER3B PWM: 0 WGM: 1 COM3B: 0 CS: 3 TCCR3A: 1 TCCR3B: 3 TIMSK3: 0
|
||||
. SCK_PIN Output = 0
|
||||
. SD_SCK_PIN Output = 0
|
||||
PIN: 8 Port: D0 RXD Input = 1
|
||||
PIN: 9 Port: D1 TXD Input = 0
|
||||
PIN: 10 Port: D2 BTN_EN2 Input = 1
|
||||
|
@ -49,11 +49,11 @@
|
||||
* PIN: 4 Port: B4 SDSS
|
||||
* PIN: 4 Port: B4 V1: EXP1_6
|
||||
* PIN: 5 Port: B5 AVR_MOSI_PIN
|
||||
* . MOSI_PIN
|
||||
* . SD_MOSI_PIN
|
||||
* PIN: 6 Port: B6 AVR_MISO_PIN
|
||||
* . EXP1_9(MISO_PIN)
|
||||
* . EXP1_9(SD_MISO_PIN)
|
||||
* PIN: 7 Port: B7 AVR_SCK_PIN
|
||||
* . EXP1_10(SCK_PIN)
|
||||
* . EXP1_10(SD_SCK_PIN)
|
||||
* PIN: 8 Port: D0 RXD
|
||||
* PIN: 9 Port: D1 TXD
|
||||
* PIN: 10 Port: D2 EXP1_8
|
||||
|
@ -41,7 +41,7 @@
|
||||
//
|
||||
// SD CARD SPI
|
||||
//
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
//
|
||||
// Timers
|
||||
|
@ -280,7 +280,7 @@
|
||||
#define SD_DETECT_PIN PC4
|
||||
#elif SD_CONNECTION_IS(LCD) && BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
|
||||
#define SD_DETECT_PIN PA15
|
||||
#define SS_PIN PA10
|
||||
#define SD_SS_PIN PA10
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "SD CUSTOM_CABLE is not compatible with SKR E3 DIP."
|
||||
#endif
|
||||
|
@ -274,7 +274,7 @@
|
||||
#define SD_DETECT_PIN PC4
|
||||
#elif SD_CONNECTION_IS(LCD) && (BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050) || IS_TFTGLCD_PANEL)
|
||||
#define SD_DETECT_PIN PB5
|
||||
#define SS_PIN PA10
|
||||
#define SD_SS_PIN PA10
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "SD CUSTOM_CABLE is not compatible with SKR Mini E3."
|
||||
#endif
|
||||
|
@ -217,16 +217,16 @@
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SPI_DEVICE 3
|
||||
#define SD_DETECT_PIN PB9
|
||||
#define SCK_PIN PB3
|
||||
#define MISO_PIN PB4
|
||||
#define MOSI_PIN PB5
|
||||
#define SS_PIN PA15
|
||||
#define SD_SCK_PIN PB3
|
||||
#define SD_MISO_PIN PB4
|
||||
#define SD_MOSI_PIN PB5
|
||||
#define SD_SS_PIN PA15
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN PA3
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_SS_PIN PA4
|
||||
#endif
|
||||
#define ONBOARD_SPI_DEVICE 1 // SPI1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
|
||||
|
@ -166,10 +166,10 @@
|
||||
//
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN -1
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_SS_PIN PA4
|
||||
#endif
|
||||
|
||||
#define ONBOARD_SPI_DEVICE 1 // SPI1
|
||||
|
@ -175,10 +175,10 @@
|
||||
// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
|
||||
// Needs to use SPI2
|
||||
#define SPI_DEVICE 2
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SS_PIN PB12
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SD_SS_PIN PB12
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
@ -190,10 +190,10 @@
|
||||
// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
|
||||
// so SPI2 is required.
|
||||
#define SPI_DEVICE 2
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SS_PIN PB12
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SD_SS_PIN PB12
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
@ -62,9 +62,9 @@
|
||||
// SPI
|
||||
// Note: FLSun Hispeed (clone MKS_Robin_miniV2) board is using SPI2 interface.
|
||||
//
|
||||
#define SCK_PIN PB13 // SPI2
|
||||
#define MISO_PIN PB14 // SPI2
|
||||
#define MOSI_PIN PB15 // SPI2
|
||||
#define SD_SCK_PIN PB13 // SPI2
|
||||
#define SD_MISO_PIN PB14 // SPI2
|
||||
#define SD_MOSI_PIN PB15 // SPI2
|
||||
#define SPI_DEVICE 2
|
||||
|
||||
// SPI Flash
|
||||
@ -246,10 +246,10 @@
|
||||
|
||||
// Use the on-board card socket labeled SD_Extender
|
||||
#if SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN -1
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN -1
|
||||
#define SD_DETECT_PIN PD12 // SD_CD (if -1 no detection)
|
||||
#else
|
||||
#define SDIO_SUPPORT
|
||||
|
@ -133,12 +133,12 @@
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SPI_DEVICE 2
|
||||
#define SS_PIN PB12
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SD_SS_PIN PB12
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
#define SD_DETECT_PIN PB11
|
||||
|
||||
#define BEEPER_PIN PC14
|
||||
|
@ -216,23 +216,23 @@
|
||||
//
|
||||
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
|
||||
//
|
||||
#define SS_PIN PC11
|
||||
#define SCK_PIN PC12
|
||||
#define MOSI_PIN PD2
|
||||
#define MISO_PIN PC8
|
||||
#define SD_SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_DETECT_PIN PC7
|
||||
#else
|
||||
//
|
||||
// Use the on-board card socket labeled TF_CARD_SOCKET
|
||||
//
|
||||
#define SS_PIN PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MOSI_PIN PA7
|
||||
#define MISO_PIN PA6
|
||||
#define SD_SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_DETECT_PIN -1 // Card detect is not connected
|
||||
#endif
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
//
|
||||
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
|
||||
|
@ -210,23 +210,23 @@
|
||||
//
|
||||
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
|
||||
//
|
||||
#define SS_PIN PC11
|
||||
#define SCK_PIN PC12
|
||||
#define MOSI_PIN PD2
|
||||
#define MISO_PIN PC8
|
||||
#define SD_SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_DETECT_PIN PC7
|
||||
#else
|
||||
//
|
||||
// Use the on-board card socket labeled TF_CARD_SOCKET
|
||||
//
|
||||
#define SS_PIN PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MOSI_PIN PA7
|
||||
#define MISO_PIN PA6
|
||||
#define SD_SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_DETECT_PIN -1 // Card detect is not connected
|
||||
#endif
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
//
|
||||
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
|
||||
|
@ -216,23 +216,23 @@
|
||||
//
|
||||
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
|
||||
//
|
||||
#define SS_PIN PC11
|
||||
#define SCK_PIN PC12
|
||||
#define MOSI_PIN PD2
|
||||
#define MISO_PIN PC8
|
||||
#define SD_SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_DETECT_PIN PC7
|
||||
#else
|
||||
//
|
||||
// Use the on-board card socket labeled TF_CARD_SOCKET
|
||||
//
|
||||
#define SS_PIN PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MOSI_PIN PA7
|
||||
#define MISO_PIN PA6
|
||||
#define SD_SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_DETECT_PIN -1 // Card detect is not connected
|
||||
#endif
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
//
|
||||
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
|
||||
|
@ -212,24 +212,24 @@
|
||||
//
|
||||
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
|
||||
//
|
||||
#define SS_PIN PB12 // PC11
|
||||
#define SCK_PIN PB13 // PC12 // PC1
|
||||
#define MOSI_PIN PB15 // PD2 // PD2
|
||||
#define MISO_PIN PB14 // PC8
|
||||
#define SD_SS_PIN PB12 // PC11
|
||||
#define SD_SCK_PIN PB13 // PC12 // PC1
|
||||
#define SD_MOSI_PIN PB15 // PD2 // PD2
|
||||
#define SD_MISO_PIN PB14 // PC8
|
||||
#define SD_DETECT_PIN PC7
|
||||
|
||||
#else
|
||||
//
|
||||
// Use the on-board card socket labeled TF_CARD_SOCKET
|
||||
//
|
||||
#define SS_PIN PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MOSI_PIN PA7
|
||||
#define MISO_PIN PA6 // PA6
|
||||
#define SD_SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_MISO_PIN PA6 // PA6
|
||||
#define SD_DETECT_PIN -1 // Card detect is not connected
|
||||
#endif
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
//
|
||||
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
|
||||
|
@ -41,7 +41,7 @@
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
#define SDSS SS_PIN
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
// Based on PWM timer usage, we have to use these timers and soft PWM for the fans
|
||||
// On STM32F103:
|
||||
|
@ -168,9 +168,9 @@
|
||||
#define SDIO_CLOCK 4500000
|
||||
#define SDIO_READ_RETRIES 16
|
||||
#if ENABLED(SDIO_SUPPORT)
|
||||
#define SCK_PIN PB13 // SPI2
|
||||
#define MISO_PIN PB14 // SPI2
|
||||
#define MOSI_PIN PB15 // SPI2
|
||||
#define SD_SCK_PIN PB13 // SPI2
|
||||
#define SD_MISO_PIN PB14 // SPI2
|
||||
#define SD_MOSI_PIN PB15 // SPI2
|
||||
/**
|
||||
* MKS Robin has a few hardware revisions
|
||||
* https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/Hardware
|
||||
@ -184,10 +184,10 @@
|
||||
//#define SD_DETECT_PIN PF12 // SD_CD
|
||||
#else
|
||||
// SD as custom software SPI (SDIO pins)
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN -1
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN -1
|
||||
#define ONBOARD_SD_CS_PIN PC11
|
||||
#define SDSS PD2
|
||||
#define SD_DETECT_PIN -1
|
||||
|
@ -180,10 +180,10 @@
|
||||
//
|
||||
#define SPI_DEVICE 2
|
||||
#define SD_DETECT_PIN PC10
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SS_PIN PA15
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SD_SS_PIN PA15
|
||||
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
|
||||
|
@ -142,7 +142,7 @@
|
||||
// SPI
|
||||
//
|
||||
#define SPI_DEVICE 2
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN P1B4
|
||||
#define MOSI_PIN P1B5
|
||||
#define SS_PIN PA15
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN P1B4
|
||||
#define SD_MOSI_PIN P1B5
|
||||
#define SD_SS_PIN PA15
|
||||
|
@ -153,7 +153,7 @@
|
||||
// SPI
|
||||
//
|
||||
#define SPI_DEVICE 2
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SS_PIN PA15
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SD_SS_PIN PA15
|
||||
|
@ -193,10 +193,10 @@
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_DETECT_PIN PG3
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SS_PIN PG6
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SD_SS_PIN PG6
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SDIO_SUPPORT
|
||||
#define SD_DETECT_PIN PD12
|
||||
|
@ -166,17 +166,17 @@
|
||||
#define SPI_DEVICE 2
|
||||
|
||||
#if ENABLED(SDIO_SUPPORT)
|
||||
#define SCK_PIN PB13 // SPI2 ok
|
||||
#define MISO_PIN PB14 // SPI2 ok
|
||||
#define MOSI_PIN PB15 // SPI2 ok
|
||||
#define SS_PIN PC11 // PB12 is X- ok
|
||||
#define SD_SCK_PIN PB13 // SPI2 ok
|
||||
#define SD_MISO_PIN PB14 // SPI2 ok
|
||||
#define SD_MOSI_PIN PB15 // SPI2 ok
|
||||
#define SD_SS_PIN PC11 // PB12 is X- ok
|
||||
#define SD_DETECT_PIN -1 // SD_CD ok
|
||||
#else
|
||||
// SD as custom software SPI (SDIO pins)
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN -1
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN -1
|
||||
#define ONBOARD_SD_CS_PIN PC11
|
||||
#define SDSS PD2
|
||||
#define SD_DETECT_PIN -1
|
||||
|
@ -210,9 +210,9 @@
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
|
||||
#ifndef SD_DETECT_PIN
|
||||
|
@ -156,8 +156,8 @@
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
@ -175,10 +175,10 @@
|
||||
// HAL SPI1 pins
|
||||
#define CUSTOM_SPI_PINS
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define SCK_PIN PA5 // SPI1 SCLK
|
||||
#define SS_PIN PA4 // SPI1 SSEL
|
||||
#define MISO_PIN PA6 // SPI1 MISO
|
||||
#define MOSI_PIN PA7 // SPI1 MOSI
|
||||
#define SD_SCK_PIN PA5 // SPI1 SCLK
|
||||
#define SD_SS_PIN PA4 // SPI1 SSEL
|
||||
#define SD_MISO_PIN PA6 // SPI1 MISO
|
||||
#define SD_MOSI_PIN PA7 // SPI1 MOSI
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -341,10 +341,10 @@
|
||||
// Instruct the STM32 HAL to override the default SPI pins from the variant.h file
|
||||
#define CUSTOM_SPI_PINS
|
||||
#define SDSS PA4
|
||||
#define SS_PIN SDSS
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SS_PIN SDSS
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PC4
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
|
@ -303,9 +303,9 @@
|
||||
// so force Software SPI to work around this issue.
|
||||
#define SOFTWARE_SPI
|
||||
#define SDSS PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PB5
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PB5
|
||||
#define SD_DETECT_PIN PB11
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
|
@ -196,16 +196,16 @@
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SD_SCK_PIN PB13
|
||||
#define SD_MISO_PIN PB14
|
||||
#define SD_MOSI_PIN PB15
|
||||
#define SDSS PF11
|
||||
#define SD_DETECT_PIN PB2
|
||||
|
||||
|
@ -180,9 +180,9 @@
|
||||
//
|
||||
// SPI
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
@ -153,10 +153,10 @@
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN PA4 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
|
||||
#define SD_DETECT_PIN PA8
|
||||
#define BEEPER_PIN PC7
|
||||
|
@ -158,10 +158,10 @@
|
||||
#define SDIO_SUPPORT
|
||||
#define SDIO_CLOCK 4800000
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
|
||||
#define SD_DETECT_PIN PG15
|
||||
|
||||
|
@ -117,10 +117,10 @@
|
||||
// Lerdge supports auto-power off and power loss sense through a single pin.
|
||||
#define POWER_LOSS_PIN PC14 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
|
||||
//
|
||||
// SD support
|
||||
|
@ -217,11 +217,11 @@
|
||||
#define CUSTOM_SPI_PINS // TODO: needed because is the only way to set SPI3 for SD on STM32 (by now)
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define ENABLE_SPI3
|
||||
#define SS_PIN -1
|
||||
#define SD_SS_PIN -1
|
||||
#define SDSS PC9
|
||||
#define SCK_PIN PC10
|
||||
#define MISO_PIN PC11
|
||||
#define MOSI_PIN PC12
|
||||
#define SD_SCK_PIN PC10
|
||||
#define SD_MISO_PIN PC11
|
||||
#define SD_MOSI_PIN PC12
|
||||
#define SD_DETECT_PIN PD12
|
||||
#endif
|
||||
#endif
|
||||
@ -234,9 +234,9 @@
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define ENABLE_SPI1
|
||||
#define SDSS PE10
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PE12
|
||||
#endif
|
||||
#endif
|
||||
|
@ -220,11 +220,11 @@
|
||||
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9)
|
||||
#else
|
||||
#define ENABLE_SPI3
|
||||
#define SS_PIN -1
|
||||
#define SD_SS_PIN -1
|
||||
#define SDSS PC9
|
||||
#define SCK_PIN PC10
|
||||
#define MISO_PIN PC11
|
||||
#define MOSI_PIN PC12
|
||||
#define SD_SCK_PIN PC10
|
||||
#define SD_MISO_PIN PC11
|
||||
#define SD_MOSI_PIN PC12
|
||||
#endif
|
||||
#define SD_DETECT_PIN PD12
|
||||
#endif
|
||||
@ -239,9 +239,9 @@
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define ENABLE_SPI1
|
||||
#define SDSS PE10
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PE12
|
||||
#endif
|
||||
#endif
|
||||
|
@ -126,9 +126,9 @@
|
||||
//
|
||||
// SPI
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
@ -120,13 +120,13 @@
|
||||
#define L6470_CHAIN_MOSI_PIN 19 // PA7
|
||||
#define L6470_CHAIN_SS_PIN 16 // PA4
|
||||
|
||||
//#define SCK_PIN L6470_CHAIN_SCK_PIN
|
||||
//#define MISO_PIN L6470_CHAIN_MISO_PIN
|
||||
//#define MOSI_PIN L6470_CHAIN_MOSI_PIN
|
||||
//#define SD_SCK_PIN L6470_CHAIN_SCK_PIN
|
||||
//#define SD_MISO_PIN L6470_CHAIN_MISO_PIN
|
||||
//#define SD_MOSI_PIN L6470_CHAIN_MOSI_PIN
|
||||
#else
|
||||
//#define SCK_PIN 13 // PB13 SPI_S
|
||||
//#define MISO_PIN 12 // PB14 SPI_M
|
||||
//#define MOSI_PIN 11 // PB15 SPI_M
|
||||
//#define SD_SCK_PIN 13 // PB13 SPI_S
|
||||
//#define SD_MISO_PIN 12 // PB14 SPI_M
|
||||
//#define SD_MOSI_PIN 11 // PB15 SPI_M
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -249,9 +249,9 @@
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#undef SDSS
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -99,16 +99,16 @@
|
||||
#define E1_CS_PIN PB0
|
||||
#endif
|
||||
|
||||
#define SCK_PIN PE12 // PA5 // SPI1 for SD card
|
||||
#define MISO_PIN PE13 // PA6
|
||||
#define MOSI_PIN PE14 // PA7
|
||||
#define SD_SCK_PIN PE12 // PA5 // SPI1 for SD card
|
||||
#define SD_MISO_PIN PE13 // PA6
|
||||
#define SD_MOSI_PIN PE14 // PA7
|
||||
|
||||
// added for SD card : optional or not ???
|
||||
//#define SD_CHIP_SELECT_PIN SDSS // The default chip select pin for the SD card is SS.
|
||||
// The following three pins must not be redefined for hardware SPI.
|
||||
//#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
|
||||
//#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
|
||||
//#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
|
||||
//#define SPI_MOSI_PIN SD_MOSI_PIN // SPI Master Out Slave In pin
|
||||
//#define SPI_MISO_PIN SD_MISO_PIN // SPI Master In Slave Out pin
|
||||
//#define SPI_SCK_PIN SD_SCK_PIN // SPI Clock pin
|
||||
|
||||
//
|
||||
// Temperature Sensors (Analog inputs)
|
||||
@ -159,7 +159,7 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SD_DETECT_PIN PB7
|
||||
#define SS_PIN PB_15 // USD_CS -> CS for onboard SD
|
||||
#define SD_SS_PIN PB_15 // USD_CS -> CS for onboard SD
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -170,10 +170,10 @@
|
||||
#define SERVO1_PIN PB5 // PWM Capable, TIM3_CH2
|
||||
|
||||
// SPI for external SD Card (Not entirely sure this will work)
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SS_PIN PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_SS_PIN PA4
|
||||
#define SDSS PA4
|
||||
|
||||
#define LED_PIN LED_BLUE
|
||||
|
Reference in New Issue
Block a user