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>2021-03-22 17:04:30 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-03-22 17:04:30 +0300
commit1bb0921de6868bbba28e49bdf4c75485cf20108d (patch)
treeab44fb71142e07692c339432dddf5031248f0e17 /src/Hardware/SAM4E
parent7b10730a5fee550e1d7b248631e900b88cd5b792 (diff)
Replaced SetPullup calls by EnablePullup and DisablePullup
Also added ATX_POWER_INVERTED
Diffstat (limited to 'src/Hardware/SAM4E')
-rw-r--r--src/Hardware/SAM4E/Devices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Hardware/SAM4E/Devices.cpp b/src/Hardware/SAM4E/Devices.cpp
index ca3ec53a..c5a5fcae 100644
--- a/src/Hardware/SAM4E/Devices.cpp
+++ b/src/Hardware/SAM4E/Devices.cpp
@@ -29,11 +29,11 @@ void SerialInit() noexcept
{
SetPinFunction(APIN_Serial0_RXD, Serial0PeriphMode);
SetPinFunction(APIN_Serial0_TXD, Serial0PeriphMode);
- SetPullup(APIN_Serial0_RXD, true);
+ EnablePullup(APIN_Serial0_RXD);
SetPinFunction(APIN_Serial1_RXD, Serial1PeriphMode);
SetPinFunction(APIN_Serial1_TXD, Serial1PeriphMode);
- SetPullup(APIN_Serial1_RXD, true);
+ EnablePullup(APIN_Serial1_RXD);
}
void SdhcInit() noexcept
@@ -42,7 +42,7 @@ void SdhcInit() noexcept
for (Pin p : HsmciOtherPins)
{
SetPinFunction(p, HsmciPinsFunction);
- SetPullup(p, true);
+ EnablePullup(p);
}
}