diff options
author | Manuel Coenen <manuel@duet3d.com> | 2021-01-26 13:25:25 +0300 |
---|---|---|
committer | Manuel Coenen <manuel@duet3d.com> | 2021-01-26 13:25:25 +0300 |
commit | 806d32c60b784d29b908e07d9c97d3d81714ff79 (patch) | |
tree | 72cb9c727d596ecd783df62fe4e39791389aa8a0 /src/Hardware | |
parent | 58c6a3ec7a0ccf9ae5d3847f766961a0bc49bc0b (diff) |
Enable pullups for all non-clock HSMCI pins
Diffstat (limited to 'src/Hardware')
-rw-r--r-- | src/Hardware/SAM4E/Devices.cpp | 4 | ||||
-rw-r--r-- | src/Hardware/SAME70/Devices.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Hardware/SAM4E/Devices.cpp b/src/Hardware/SAM4E/Devices.cpp index 11d01398..ca3ec53a 100644 --- a/src/Hardware/SAM4E/Devices.cpp +++ b/src/Hardware/SAM4E/Devices.cpp @@ -38,9 +38,11 @@ void SerialInit() noexcept void SdhcInit() noexcept { - for (Pin p : HsmciPins) + SetPinFunction(HsmciClockPin, HsmciPinsFunction); + for (Pin p : HsmciOtherPins) { SetPinFunction(p, HsmciPinsFunction); + SetPullup(p, true); } } diff --git a/src/Hardware/SAME70/Devices.cpp b/src/Hardware/SAME70/Devices.cpp index 32e1f777..1b26e627 100644 --- a/src/Hardware/SAME70/Devices.cpp +++ b/src/Hardware/SAME70/Devices.cpp @@ -42,6 +42,7 @@ void SdhcInit() noexcept for (Pin p : HsmciOtherPins) { SetPinFunction(p, HsmciOtherPinsFunction); + SetPullup(p, true); } } |