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:
authorManuel Coenen <manuel@duet3d.com>2021-01-20 14:06:57 +0300
committerManuel Coenen <manuel@duet3d.com>2021-01-20 14:06:57 +0300
commit2b8228948d03faafc18626d5d7b2f00b72b8e85d (patch)
tree1dcf27d219df775cb1c43d6950221e43e6f9585c /src/Hardware/SAME70/Devices.cpp
parente0f70c42bc156339d3018b1c6eff03a532266c5a (diff)
Initialize AnalogIn and AnalogOut
Diffstat (limited to 'src/Hardware/SAME70/Devices.cpp')
-rw-r--r--src/Hardware/SAME70/Devices.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Hardware/SAME70/Devices.cpp b/src/Hardware/SAME70/Devices.cpp
index 871d8606..5c18e516 100644
--- a/src/Hardware/SAME70/Devices.cpp
+++ b/src/Hardware/SAME70/Devices.cpp
@@ -6,6 +6,8 @@
*/
#include "Devices.h"
+#include <AnalogIn.h>
+#include <AnalogOut.h>
AsyncSerial Serial(UART2, UART2_IRQn, ID_UART2, 512, 512, [](AsyncSerial*) noexcept { }, [](AsyncSerial*) noexcept { });
USARTClass Serial1(USART2, USART2_IRQn, ID_USART2, 512, 512, [](AsyncSerial*) noexcept { }, [](AsyncSerial*) noexcept { });
@@ -58,6 +60,9 @@ void DeviceInit() noexcept
{
SerialInit();
SdhcInit();
+
+ LegacyAnalogIn::AnalogInInit();
+ AnalogOut::Init();
}
void StopAnalogTask() noexcept