Browse Source

Use OUT_WRITE in SPI pin init

Scott Lahteine 6 years ago
parent
commit
9a56a88200

+ 1
- 2
Marlin/src/HAL/HAL_ESP32/HAL_spi_ESP32.cpp View File

62
     #error "SS_PIN not defined!"
62
     #error "SS_PIN not defined!"
63
   #endif
63
   #endif
64
 
64
 
65
-  WRITE(SS_PIN, HIGH);
66
-  SET_OUTPUT(SS_PIN);
65
+  OUT_WRITE(SS_PIN, HIGH);
67
 }
66
 }
68
 
67
 
69
 void spiInit(uint8_t spiRate) {
68
 void spiInit(uint8_t spiRate) {

+ 2
- 4
Marlin/src/HAL/HAL_LPC1768/main.cpp View File

78
   //_DBG("\n\nDebug running\n");
78
   //_DBG("\n\nDebug running\n");
79
   // Initialise the SD card chip select pins as soon as possible
79
   // Initialise the SD card chip select pins as soon as possible
80
   #if PIN_EXISTS(SS)
80
   #if PIN_EXISTS(SS)
81
-    WRITE(SS_PIN, HIGH);
82
-    SET_OUTPUT(SS_PIN);
81
+    OUT_WRITE(SS_PIN, HIGH);
83
   #endif
82
   #endif
84
 
83
 
85
   #if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1
84
   #if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1
86
-    WRITE(ONBOARD_SD_CS, HIGH);
87
-    SET_OUTPUT(ONBOARD_SD_CS);
85
+    OUT_WRITE(ONBOARD_SD_CS, HIGH);
88
   #endif
86
   #endif
89
 
87
 
90
   USB_Init();                               // USB Initialization
88
   USB_Init();                               // USB Initialization

+ 1
- 2
Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp View File

69
     #error "SS_PIN not defined!"
69
     #error "SS_PIN not defined!"
70
   #endif
70
   #endif
71
 
71
 
72
-  SET_OUTPUT(SS_PIN);
73
-  WRITE(SS_PIN, HIGH);
72
+  OUT_WRITE(SS_PIN, HIGH);
74
 }
73
 }
75
 
74
 
76
 /** Configure SPI for specified SPI speed */
75
 /** Configure SPI for specified SPI speed */

+ 1
- 2
Marlin/src/HAL/HAL_STM32F7/HAL_spi_STM32F7.cpp View File

81
     #error SS_PIN not defined!
81
     #error SS_PIN not defined!
82
   #endif
82
   #endif
83
 
83
 
84
-  SET_OUTPUT(SS_PIN);
85
-  WRITE(SS_PIN, HIGH);
84
+  OUT_WRITE(SS_PIN, HIGH);
86
 }
85
 }
87
 
86
 
88
 /** Configure SPI for specified SPI speed */
87
 /** Configure SPI for specified SPI speed */

Loading…
Cancel
Save