Parcourir la source

Fix Archim1 SD card (#14184)

Ryan il y a 5 ans
Parent
révision
9d9030a39c
1 fichiers modifiés avec 8 ajouts et 5 suppressions
  1. 8
    5
      Marlin/src/HAL/HAL_DUE/spi_pins.h

+ 8
- 5
Marlin/src/HAL/HAL_DUE/spi_pins.h Voir le fichier

@@ -26,19 +26,22 @@
26 26
  *
27 27
  * Available chip select pins for HW SPI are 4 10 52 77
28 28
  */
29
-#if (SDSS == 4) || (SDSS == 10) || (SDSS == 52) || (SDSS == 77)
30
-  #if (SDSS == 4)
29
+#if SDSS == 4 || SDSS == 10 || SDSS == 52 || SDSS == 77 || SDSS == 87
30
+  #if SDSS == 4
31 31
     #define SPI_PIN         87
32 32
     #define SPI_CHAN         1
33
-  #elif (SDSS == 10)
33
+  #elif SDSS == 10
34 34
     #define SPI_PIN         77
35 35
     #define SPI_CHAN         0
36
-  #elif (SDSS == 52)
36
+  #elif SDSS == 52
37 37
     #define SPI_PIN         86
38 38
     #define SPI_CHAN         2
39
-  #else
39
+  #elif SDSS == 77
40 40
     #define SPI_PIN         77
41 41
     #define SPI_CHAN         0
42
+  #else
43
+    #define SPI_PIN         87
44
+    #define SPI_CHAN         1  
42 45
   #endif
43 46
   #define SCK_PIN           76
44 47
   #define MISO_PIN          74

Chargement…
Annuler
Enregistrer