|
@ -136,25 +136,25 @@ uint8_t const SD_CARD_TYPE_SDHC = 3; |
|
|
#if DISABLED(SOFTWARE_SPI) |
|
|
#if DISABLED(SOFTWARE_SPI) |
|
|
// hardware pin defs
|
|
|
// hardware pin defs
|
|
|
/** The default chip select pin for the SD card is SS. */ |
|
|
/** The default chip select pin for the SD card is SS. */ |
|
|
uint8_t const SD_CHIP_SELECT_PIN = SS_PIN; |
|
|
#define SD_CHIP_SELECT_PIN SS_PIN |
|
|
// The following three pins must not be redefined for hardware SPI.
|
|
|
// The following three pins must not be redefined for hardware SPI.
|
|
|
/** SPI Master Out Slave In pin */ |
|
|
/** SPI Master Out Slave In pin */ |
|
|
uint8_t const SPI_MOSI_PIN = MOSI_PIN; |
|
|
#define SPI_MOSI_PIN MOSI_PIN |
|
|
/** SPI Master In Slave Out pin */ |
|
|
/** SPI Master In Slave Out pin */ |
|
|
uint8_t const SPI_MISO_PIN = MISO_PIN; |
|
|
#define SPI_MISO_PIN MISO_PIN |
|
|
/** SPI Clock pin */ |
|
|
/** SPI Clock pin */ |
|
|
uint8_t const SPI_SCK_PIN = SCK_PIN; |
|
|
#define SPI_SCK_PIN SCK_PIN |
|
|
|
|
|
|
|
|
#else // SOFTWARE_SPI
|
|
|
#else // SOFTWARE_SPI
|
|
|
|
|
|
|
|
|
/** SPI chip select pin */ |
|
|
/** SPI chip select pin */ |
|
|
uint8_t const SD_CHIP_SELECT_PIN = SOFT_SPI_CS_PIN; |
|
|
#define SD_CHIP_SELECT_PIN SOFT_SPI_CS_PIN |
|
|
/** SPI Master Out Slave In pin */ |
|
|
/** SPI Master Out Slave In pin */ |
|
|
uint8_t const SPI_MOSI_PIN = SOFT_SPI_MOSI_PIN; |
|
|
#define SPI_MOSI_PIN SOFT_SPI_MOSI_PIN |
|
|
/** SPI Master In Slave Out pin */ |
|
|
/** SPI Master In Slave Out pin */ |
|
|
uint8_t const SPI_MISO_PIN = SOFT_SPI_MISO_PIN; |
|
|
#define SPI_MISO_PIN SOFT_SPI_MISO_PIN |
|
|
/** SPI Clock pin */ |
|
|
/** SPI Clock pin */ |
|
|
uint8_t const SPI_SCK_PIN = SOFT_SPI_SCK_PIN; |
|
|
#define SPI_SCK_PIN SOFT_SPI_SCK_PIN |
|
|
#endif // SOFTWARE_SPI
|
|
|
#endif // SOFTWARE_SPI
|
|
|
//------------------------------------------------------------------------------
|
|
|
//------------------------------------------------------------------------------
|
|
|
/**
|
|
|
/**
|
|
|