SDPOWER => SDPOWER_PIN

This commit is contained in:
Scott Lahteine 2019-08-02 02:19:39 -05:00
parent 5e2582a31b
commit 9ac348ef7b
12 changed files with 10 additions and 16 deletions

View file

@ -384,6 +384,8 @@
#error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
#elif defined(MKS_ROBIN_TFT)
#error "MKS_ROBIN_TFT is now FSMC_GRAPHICAL_TFT. Please update your configuration."
#elif defined(SDPOWER)
#error "SDPOWER is now SDPOWER_PIN. Please update your configuration and/or pins."
#endif
#define BOARD_MKS_13 -1109

View file

@ -125,7 +125,6 @@
#define BEEPER_PIN 44
#if ENABLED(SDSUPPORT)
#define SDPOWER -1
#define SDSS 53
#define SD_DETECT_PIN 49
#endif

View file

@ -89,7 +89,6 @@
//
// Misc. Functions
//
#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13
#define PS_ON_PIN 12

View file

@ -83,7 +83,6 @@
// SD Card
//
#define SD_DETECT_PIN -1
#define SDPOWER -1
#define SDSS 53
//

View file

@ -774,8 +774,8 @@
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN -1
#endif
#ifndef SDPOWER
#define SDPOWER -1
#ifndef SDPOWER_PIN
#define SDPOWER_PIN -1
#endif
#ifndef SDSS
#define SDSS -1

View file

@ -707,8 +707,8 @@
// #if defined(SDA) && SDA >= 0
// REPORT_NAME_DIGITAL(__LINE__, SDA)
// #endif
#if defined(SDPOWER) && SDPOWER >= 0
REPORT_NAME_DIGITAL(__LINE__, SDPOWER)
#if PIN_EXISTS(SDPOWER)
REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN)
#endif
#if defined(SDSS) && SDSS >= 0
REPORT_NAME_DIGITAL(__LINE__, SDSS)

View file

@ -42,8 +42,7 @@
//
// Misc. Functions
//
#undef SDPOWER
#define SDPOWER 1
#define SDPOWER_PIN 1
#define PS_ON_PIN 12

View file

@ -103,7 +103,7 @@
//
// Misc. Functions
//
#define SDPOWER 48
#define SDPOWER_PIN 48
#define SDSS 53
#define LED_PIN 13
#define CASE_LIGHT_PIN 45 // Hardware PWM

View file

@ -215,7 +215,6 @@
#define BEEPER_PIN 44
#if ENABLED(SDSUPPORT)
#define SDPOWER -1
#define SDSS 53
#define SD_DETECT_PIN 49
#endif

View file

@ -86,7 +86,6 @@
//
// Misc. Functions
//
#define SDPOWER -1
#define SDSS PA15
#define LED_PIN PB2

View file

@ -84,7 +84,6 @@
//
// Misc. Functions
//
#define SDPOWER -1
#define SDSS -1
#define LED_PIN -1
#define CASE_LIGHT_PIN 8

View file

@ -133,9 +133,8 @@ CardReader::CardReader() {
// Disable autostart until card is initialized
autostart_index = -1;
//power to SD reader
#if SDPOWER > -1
OUT_WRITE(SDPOWER, HIGH);
#if PIN_EXISTS(SDPOWER)
OUT_WRITE(SDPOWER_PIN, HIGH); // Power the SD reader
#endif
}