Fix Archim1 SD card (#14184)

This commit is contained in:
Ryan 2019-05-30 17:58:38 -07:00 committed by Scott Lahteine
parent 123e58d9c3
commit 9d9030a39c

View File

@ -26,19 +26,22 @@
*
* Available chip select pins for HW SPI are 4 10 52 77
*/
#if (SDSS == 4) || (SDSS == 10) || (SDSS == 52) || (SDSS == 77)
#if (SDSS == 4)
#if SDSS == 4 || SDSS == 10 || SDSS == 52 || SDSS == 77 || SDSS == 87
#if SDSS == 4
#define SPI_PIN 87
#define SPI_CHAN 1
#elif (SDSS == 10)
#elif SDSS == 10
#define SPI_PIN 77
#define SPI_CHAN 0
#elif (SDSS == 52)
#elif SDSS == 52
#define SPI_PIN 86
#define SPI_CHAN 2
#else
#elif SDSS == 77
#define SPI_PIN 77
#define SPI_CHAN 0
#else
#define SPI_PIN 87
#define SPI_CHAN 1
#endif
#define SCK_PIN 76
#define MISO_PIN 74