commit
f7da37002c
@ -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
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
|
@ -104,13 +104,13 @@
|
|||||||
#define USE_SOFTWARE_SPI 0
|
#define USE_SOFTWARE_SPI 0
|
||||||
// define software SPI pins so Mega can use unmodified 168/328 shields
|
// define software SPI pins so Mega can use unmodified 168/328 shields
|
||||||
/** Software SPI chip select pin for the SD */
|
/** Software SPI chip select pin for the SD */
|
||||||
uint8_t const SOFT_SPI_CS_PIN = 10;
|
#define SOFT_SPI_CS_PIN 10
|
||||||
/** Software SPI Master Out Slave In pin */
|
/** Software SPI Master Out Slave In pin */
|
||||||
uint8_t const SOFT_SPI_MOSI_PIN = 11;
|
#define SOFT_SPI_MOSI_PIN 11
|
||||||
/** Software SPI Master In Slave Out pin */
|
/** Software SPI Master In Slave Out pin */
|
||||||
uint8_t const SOFT_SPI_MISO_PIN = 12;
|
#define SOFT_SPI_MISO_PIN 12
|
||||||
/** Software SPI Clock pin */
|
/** Software SPI Clock pin */
|
||||||
uint8_t const SOFT_SPI_SCK_PIN = 13;
|
#define SOFT_SPI_SCK_PIN 13
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* The __cxa_pure_virtual function is an error handler that is invoked when
|
* The __cxa_pure_virtual function is an error handler that is invoked when
|
||||||
|
Loading…
Reference in New Issue
Block a user