소스 검색

Fix Archim1 SD card (#14184)

Ryan 6 년 전
부모
커밋
9d9030a39c
1개의 변경된 파일8개의 추가작업 그리고 5개의 파일을 삭제
  1. 8
    5
      Marlin/src/HAL/HAL_DUE/spi_pins.h

+ 8
- 5
Marlin/src/HAL/HAL_DUE/spi_pins.h 파일 보기

26
  *
26
  *
27
  * Available chip select pins for HW SPI are 4 10 52 77
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
     #define SPI_PIN         87
31
     #define SPI_PIN         87
32
     #define SPI_CHAN         1
32
     #define SPI_CHAN         1
33
-  #elif (SDSS == 10)
33
+  #elif SDSS == 10
34
     #define SPI_PIN         77
34
     #define SPI_PIN         77
35
     #define SPI_CHAN         0
35
     #define SPI_CHAN         0
36
-  #elif (SDSS == 52)
36
+  #elif SDSS == 52
37
     #define SPI_PIN         86
37
     #define SPI_PIN         86
38
     #define SPI_CHAN         2
38
     #define SPI_CHAN         2
39
-  #else
39
+  #elif SDSS == 77
40
     #define SPI_PIN         77
40
     #define SPI_PIN         77
41
     #define SPI_CHAN         0
41
     #define SPI_CHAN         0
42
+  #else
43
+    #define SPI_PIN         87
44
+    #define SPI_CHAN         1  
42
   #endif
45
   #endif
43
   #define SCK_PIN           76
46
   #define SCK_PIN           76
44
   #define MISO_PIN          74
47
   #define MISO_PIN          74

Loading…
취소
저장