|
|
@ -90,23 +90,6 @@ uint8_t const SD_CARD_TYPE_SD1 = 1, // Standard capacity V1 |
|
|
|
//
|
|
|
|
#define SD_CHIP_SELECT_PIN SS_PIN |
|
|
|
|
|
|
|
#if 0 |
|
|
|
#if DISABLED(SOFTWARE_SPI) |
|
|
|
// hardware pin defs
|
|
|
|
#define SD_CHIP_SELECT_PIN SS_PIN // 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
|
|
|
|
#else // SOFTWARE_SPI
|
|
|
|
#define SD_CHIP_SELECT_PIN SOFT_SPI_CS_PIN // SPI chip select pin
|
|
|
|
#define SPI_MOSI_PIN SOFT_SPI_MOSI_PIN // SPI Master Out Slave In pin
|
|
|
|
#define SPI_MISO_PIN SOFT_SPI_MISO_PIN // SPI Master In Slave Out pin
|
|
|
|
#define SPI_SCK_PIN SOFT_SPI_SCK_PIN // SPI Clock pin
|
|
|
|
#endif // SOFTWARE_SPI
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
/**
|
|
|
|
* \class Sd2Card |
|
|
|
* \brief Raw access to SD and SDHC flash memory cards. |
|
|
|