Browse Source

Fix Archim1 SD card (#14184)

pull/1/head
Ryan 6 years ago
committed by Scott Lahteine
parent
commit
9d9030a39c
  1. 13
      Marlin/src/HAL/HAL_DUE/spi_pins.h

13
Marlin/src/HAL/HAL_DUE/spi_pins.h

@ -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…
Cancel
Save