Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-05-29 15:47:58 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-05-29 15:47:58 +0300
commit600122a46408daf81efdb8e1ac2e3c6d60ab97aa (patch)
treeae07950a93320f88060272b589a3a50a3b76595c
parent57fcfb4e277b2f99e243438878176f027f2a4153 (diff)
Set high drive strength on shared SPI SCLK sand MOSI pins
-rw-r--r--src/Hardware/SharedSpi/SharedSpiDevice.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Hardware/SharedSpi/SharedSpiDevice.cpp b/src/Hardware/SharedSpi/SharedSpiDevice.cpp
index 1c785707..6b64b058 100644
--- a/src/Hardware/SharedSpi/SharedSpiDevice.cpp
+++ b/src/Hardware/SharedSpi/SharedSpiDevice.cpp
@@ -349,6 +349,8 @@ void SharedSpiDevice::Init() noexcept
SetPinFunction(SharedSpiMosiPin, SharedSpiPinFunction);
SetPinFunction(SharedSpiMisoPin, SharedSpiPinFunction);
SetPinFunction(SharedSpiSclkPin, SharedSpiPinFunction);
+ SetHighDriveStrength(SharedSpiMosiPin);
+ SetHighDriveStrength(SharedSpiSclkPin); // some devices (e.g. TFT LCD font chip) need fast rise and fall times
mainSharedSpiDevice = new SharedSpiDevice(SharedSpiSercomNumber);
#elif USART_SPI
SetPinFunction(APIN_USART_SSPI_SCK, USARTSPISckPeriphMode);