|
@@ -136,25 +136,25 @@ uint8_t const SD_CARD_TYPE_SDHC = 3;
|
136
|
136
|
#if DISABLED(SOFTWARE_SPI)
|
137
|
137
|
// hardware pin defs
|
138
|
138
|
/** The default chip select pin for the SD card is SS. */
|
139
|
|
- uint8_t const SD_CHIP_SELECT_PIN = SS_PIN;
|
|
139
|
+ #define SD_CHIP_SELECT_PIN SS_PIN
|
140
|
140
|
// The following three pins must not be redefined for hardware SPI.
|
141
|
141
|
/** SPI Master Out Slave In pin */
|
142
|
|
- uint8_t const SPI_MOSI_PIN = MOSI_PIN;
|
|
142
|
+ #define SPI_MOSI_PIN MOSI_PIN
|
143
|
143
|
/** SPI Master In Slave Out pin */
|
144
|
|
- uint8_t const SPI_MISO_PIN = MISO_PIN;
|
|
144
|
+ #define SPI_MISO_PIN MISO_PIN
|
145
|
145
|
/** SPI Clock pin */
|
146
|
|
- uint8_t const SPI_SCK_PIN = SCK_PIN;
|
|
146
|
+ #define SPI_SCK_PIN SCK_PIN
|
147
|
147
|
|
148
|
148
|
#else // SOFTWARE_SPI
|
149
|
149
|
|
150
|
150
|
/** SPI chip select pin */
|
151
|
|
- uint8_t const SD_CHIP_SELECT_PIN = SOFT_SPI_CS_PIN;
|
|
151
|
+ #define SD_CHIP_SELECT_PIN SOFT_SPI_CS_PIN
|
152
|
152
|
/** SPI Master Out Slave In pin */
|
153
|
|
- uint8_t const SPI_MOSI_PIN = SOFT_SPI_MOSI_PIN;
|
|
153
|
+ #define SPI_MOSI_PIN SOFT_SPI_MOSI_PIN
|
154
|
154
|
/** SPI Master In Slave Out pin */
|
155
|
|
- uint8_t const SPI_MISO_PIN = SOFT_SPI_MISO_PIN;
|
|
155
|
+ #define SPI_MISO_PIN SOFT_SPI_MISO_PIN
|
156
|
156
|
/** SPI Clock pin */
|
157
|
|
- uint8_t const SPI_SCK_PIN = SOFT_SPI_SCK_PIN;
|
|
157
|
+ #define SPI_SCK_PIN SOFT_SPI_SCK_PIN
|
158
|
158
|
#endif // SOFTWARE_SPI
|
159
|
159
|
//------------------------------------------------------------------------------
|
160
|
160
|
/**
|