Browse Source

Keep SPI active on LPC176x (#19932)

vanilla_fb_2.0.x
Victor Oliveira 4 years ago
committed by GitHub
parent
commit
838220e4b3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Marlin/src/HAL/LPC1768/HAL_SPI.cpp

5
Marlin/src/HAL/LPC1768/HAL_SPI.cpp

@ -263,8 +263,9 @@ uint16_t SPIClass::transfer16(const uint16_t data) {
} }
void SPIClass::end() { void SPIClass::end() {
// SSP_Cmd(_currentSetting->spi_d, DISABLE); // stop device or SSP_DeInit? // Neither is needed for Marlin
SSP_DeInit(_currentSetting->spi_d); //SSP_Cmd(_currentSetting->spi_d, DISABLE);
//SSP_DeInit(_currentSetting->spi_d);
} }
void SPIClass::send(uint8_t data) { void SPIClass::send(uint8_t data) {

Loading…
Cancel
Save