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-21 17:55:21 +0300
committerManuel Coenen <manuel@duet3d.com>2021-01-21 17:55:21 +0300
commit5ec01da718095400c6fd77e04f4c0a1ab0103e5c (patch)
tree1d87a606dd187ed0cec1d4deda7c06fe20de02c3 /src/Hardware
parentfb4cfed1dfa7d44bde3275784952d1ce6b0a5dfd (diff)
Fix Serial1 pin assignments
Add more pin usage comments Move pin definitions from Devices.cpp to Pins_Duet3_V06.h
Diffstat (limited to 'src/Hardware')
-rw-r--r--src/Hardware/SAME70/Devices.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/Hardware/SAME70/Devices.cpp b/src/Hardware/SAME70/Devices.cpp
index 5c18e516..1b72a786 100644
--- a/src/Hardware/SAME70/Devices.cpp
+++ b/src/Hardware/SAME70/Devices.cpp
@@ -6,6 +6,7 @@
*/
#include "Devices.h"
+#include <RepRapFirmware.h>
#include <AnalogIn.h>
#include <AnalogOut.h>
@@ -13,18 +14,6 @@ AsyncSerial Serial(UART2, UART2_IRQn, ID_UART2, 512, 512, [](AsyncSerial*) noe
USARTClass Serial1(USART2, USART2_IRQn, ID_USART2, 512, 512, [](AsyncSerial*) noexcept { }, [](AsyncSerial*) noexcept { });
SerialCDC SerialUSB;
-constexpr Pin APIN_Serial0_RXD = PortDPin(25);
-constexpr Pin APIN_Serial0_TXD = PortDPin(26);
-constexpr auto Serial0PinFunction = GpioPinFunction::C;
-constexpr Pin APIN_Serial1_RXD = PortDPin(18);
-constexpr Pin APIN_Serial1_TXD = PortDPin(19);
-constexpr auto Serial1PinFunction = GpioPinFunction::C;
-
-constexpr Pin HcmciMclkPin = PortAPin(25);
-constexpr auto HsmciMclkPinFunction = GpioPinFunction::D;
-constexpr Pin HsmciOtherPins[] = { PortAPin(26), PortAPin(27), PortAPin(28), PortAPin(30), PortAPin(31) };
-constexpr auto HsmciOtherPinsFunction = GpioPinFunction::C;
-
void UART2_Handler(void) noexcept
{
Serial.IrqHandler();
@@ -48,7 +37,7 @@ void SerialInit() noexcept
void SdhcInit() noexcept
{
- SetPinFunction(HcmciMclkPin, HsmciMclkPinFunction);
+ SetPinFunction(HsmciMclkPin, HsmciMclkPinFunction);
for (Pin p : HsmciOtherPins)
{
SetPinFunction(p, HsmciOtherPinsFunction);