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
path: root/src
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-03-07 18:20:51 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-03-07 18:20:51 +0300
commit1c97494d7488fbf27b52752d4cdc14b21167c922 (patch)
tree102df2bccbc3ce90f247057bd9a2416671ac2757 /src
parente0dcaa04f0a5d720b003fe6a06b9c451e5cb65c2 (diff)
Added Mini4 LCD pins
Diffstat (limited to 'src')
-rw-r--r--src/Config/Pins_Duet3Mini4.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Config/Pins_Duet3Mini4.h b/src/Config/Pins_Duet3Mini4.h
index 4fa702f1..815449cd 100644
--- a/src/Config/Pins_Duet3Mini4.h
+++ b/src/Config/Pins_Duet3Mini4.h
@@ -203,7 +203,22 @@ constexpr IRQn_Type SdhcIRQn = SDHC0_IRQn;
constexpr uint32_t ExpectedSdCardSpeed = 15000000;
// LCD interface
-// TBC
+constexpr unsigned int LcdSercomNumber = 0;
+constexpr Pin LcdSpiMosiPin = PortAPin(4);
+constexpr Pin LcdSpiMisoPin = PortAPin(7);
+constexpr Pin LcdSpiSclkPin = PortAPin(5);
+constexpr Pin LcdSpiCsPin = PortAPin(6);
+constexpr Pin LcdFlashCsPin = PortCPin(2);
+constexpr Pin LcdFlashWpPin = PortAPin(3);
+constexpr GpioPinFunction LcdSpiPinFunction = GpioPinFunction::C;
+
+// Touch screen interface (when not shared with SharedSpi)
+constexpr unsigned int RtpSercomNumber = 6;
+constexpr Pin RtpSpiMosiPin = PortCPin(16);
+constexpr Pin RtpSpiMisoPin = PortCPin(19);
+constexpr Pin RtpSpiSclkPin = PortCPin(17);
+constexpr Pin RtpSpiCsPin = PortCPin(18);
+constexpr GpioPinFunction RtpSpiPinFunction = GpioPinFunction::C;
// Shared SPI definitions
constexpr uint8_t SharedSpiSercomNumber = 7;