Fix Archim1 SD card (#14184)
This commit is contained in:
parent
123e58d9c3
commit
9d9030a39c
|
@ -26,19 +26,22 @@
|
||||||
*
|
*
|
||||||
* Available chip select pins for HW SPI are 4 10 52 77
|
* Available chip select pins for HW SPI are 4 10 52 77
|
||||||
*/
|
*/
|
||||||
#if (SDSS == 4) || (SDSS == 10) || (SDSS == 52) || (SDSS == 77)
|
#if SDSS == 4 || SDSS == 10 || SDSS == 52 || SDSS == 77 || SDSS == 87
|
||||||
#if (SDSS == 4)
|
#if SDSS == 4
|
||||||
#define SPI_PIN 87
|
#define SPI_PIN 87
|
||||||
#define SPI_CHAN 1
|
#define SPI_CHAN 1
|
||||||
#elif (SDSS == 10)
|
#elif SDSS == 10
|
||||||
#define SPI_PIN 77
|
#define SPI_PIN 77
|
||||||
#define SPI_CHAN 0
|
#define SPI_CHAN 0
|
||||||
#elif (SDSS == 52)
|
#elif SDSS == 52
|
||||||
#define SPI_PIN 86
|
#define SPI_PIN 86
|
||||||
#define SPI_CHAN 2
|
#define SPI_CHAN 2
|
||||||
#else
|
#elif SDSS == 77
|
||||||
#define SPI_PIN 77
|
#define SPI_PIN 77
|
||||||
#define SPI_CHAN 0
|
#define SPI_CHAN 0
|
||||||
|
#else
|
||||||
|
#define SPI_PIN 87
|
||||||
|
#define SPI_CHAN 1
|
||||||
#endif
|
#endif
|
||||||
#define SCK_PIN 76
|
#define SCK_PIN 76
|
||||||
#define MISO_PIN 74
|
#define MISO_PIN 74
|
||||||
|
|
Loading…
Reference in a new issue