Merge upstream changes from Marlin 2.1.2.2
This commit is contained in:
@@ -39,11 +39,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint16_t const SD_INIT_TIMEOUT = 2000, // (ms) Init timeout
|
||||
SD_ERASE_TIMEOUT = 10000, // (ms) Erase timeout
|
||||
SD_READ_TIMEOUT = 300, // (ms) Read timeout
|
||||
SD_WRITE_TIMEOUT = 600; // (ms) Write timeout
|
||||
|
||||
// SD card errors
|
||||
typedef enum : uint8_t {
|
||||
SD_CARD_ERROR_CMD0 = 0x01, // Timeout error for command CMD0 (initialize card in SPI mode)
|
||||
@@ -70,7 +65,7 @@ typedef enum : uint8_t {
|
||||
SD_CARD_ERROR_WRITE_PROGRAMMING = 0x16, // Card returned an error to a CMD13 status check after a write
|
||||
SD_CARD_ERROR_WRITE_TIMEOUT = 0x17, // Timeout occurred during write programming
|
||||
SD_CARD_ERROR_SCK_RATE = 0x18, // Incorrect rate selected
|
||||
SD_CARD_ERROR_INIT_NOT_CALLED = 0x19, // Init() not called
|
||||
SD_CARD_ERROR_INIT_NOT_CALLED = 0x19, // init() not called
|
||||
// 0x1A is unused now, it was: card returned an error for CMD59 (CRC_ON_OFF)
|
||||
SD_CARD_ERROR_READ_CRC = 0x1B // Invalid read CRC
|
||||
} sd_error_code_t;
|
||||
@@ -83,7 +78,7 @@ uint8_t const SD_CARD_TYPE_SD1 = 1, // Standard capacity V1 SD card
|
||||
/**
|
||||
* Define SOFTWARE_SPI to use bit-bang SPI
|
||||
*/
|
||||
#if EITHER(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
|
||||
#if ANY(MEGA_SOFT_SPI, USE_SOFTWARE_SPI)
|
||||
#define SOFTWARE_SPI
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user