Browse Source

Use OUT_WRITE in SPI pin init

pull/1/head
Scott Lahteine 6 years ago
parent
commit
9a56a88200
  1. 3
      Marlin/src/HAL/HAL_ESP32/HAL_spi_ESP32.cpp
  2. 6
      Marlin/src/HAL/HAL_LPC1768/main.cpp
  3. 3
      Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp
  4. 3
      Marlin/src/HAL/HAL_STM32F7/HAL_spi_STM32F7.cpp

3
Marlin/src/HAL/HAL_ESP32/HAL_spi_ESP32.cpp

@ -62,8 +62,7 @@ void spiBegin() {
#error "SS_PIN not defined!" #error "SS_PIN not defined!"
#endif #endif
WRITE(SS_PIN, HIGH); OUT_WRITE(SS_PIN, HIGH);
SET_OUTPUT(SS_PIN);
} }
void spiInit(uint8_t spiRate) { void spiInit(uint8_t spiRate) {

6
Marlin/src/HAL/HAL_LPC1768/main.cpp

@ -78,13 +78,11 @@ void HAL_init() {
//_DBG("\n\nDebug running\n"); //_DBG("\n\nDebug running\n");
// Initialise the SD card chip select pins as soon as possible // Initialise the SD card chip select pins as soon as possible
#if PIN_EXISTS(SS) #if PIN_EXISTS(SS)
WRITE(SS_PIN, HIGH); OUT_WRITE(SS_PIN, HIGH);
SET_OUTPUT(SS_PIN);
#endif #endif
#if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1 #if defined(ONBOARD_SD_CS) && ONBOARD_SD_CS > -1
WRITE(ONBOARD_SD_CS, HIGH); OUT_WRITE(ONBOARD_SD_CS, HIGH);
SET_OUTPUT(ONBOARD_SD_CS);
#endif #endif
USB_Init(); // USB Initialization USB_Init(); // USB Initialization

3
Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp

@ -69,8 +69,7 @@ void spiBegin(void) {
#error "SS_PIN not defined!" #error "SS_PIN not defined!"
#endif #endif
SET_OUTPUT(SS_PIN); OUT_WRITE(SS_PIN, HIGH);
WRITE(SS_PIN, HIGH);
} }
/** Configure SPI for specified SPI speed */ /** Configure SPI for specified SPI speed */

3
Marlin/src/HAL/HAL_STM32F7/HAL_spi_STM32F7.cpp

@ -81,8 +81,7 @@ void spiBegin(void) {
#error SS_PIN not defined! #error SS_PIN not defined!
#endif #endif
SET_OUTPUT(SS_PIN); OUT_WRITE(SS_PIN, HIGH);
WRITE(SS_PIN, HIGH);
} }
/** Configure SPI for specified SPI speed */ /** Configure SPI for specified SPI speed */

Loading…
Cancel
Save