diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-05-12 14:24:53 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-05-12 14:24:53 +0300 |
commit | afce5eb1226da3335ce0462e259e673c261a486f (patch) | |
tree | b425755f078a316bf7f1d9683788760c7b4fcb7e /src/Duet3_V06 | |
parent | 608ae621a54637595d8db2efca85ab0eb7a55ec0 (diff) |
Fixes to IAP upload from SBC for Duet 2
Also moved SBC SPI definitions into Pins_Duet3_V06.h from CoreNG
Diffstat (limited to 'src/Duet3_V06')
-rw-r--r-- | src/Duet3_V06/Pins_Duet3_V06.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Duet3_V06/Pins_Duet3_V06.h b/src/Duet3_V06/Pins_Duet3_V06.h index 526827b3..12dffad1 100644 --- a/src/Duet3_V06/Pins_Duet3_V06.h +++ b/src/Duet3_V06/Pins_Duet3_V06.h @@ -259,6 +259,16 @@ constexpr unsigned int NumNamedPins = ARRAY_SIZE(PinTable); bool LookupPinName(const char *pn, LogicalPin& lpin, bool& hardwareInverted) noexcept; // Duet pin numbers for the Linux interface +#define SBC_SPI SPI1 +#define SBC_SPI_INTERFACE_ID ID_SPI1 +#define SBC_SPI_IRQn SPI1_IRQn +#define SBC_SPI_HANDLER SPI1_Handler + +constexpr Pin APIN_SBC_SPI_MOSI = APIN_SPI1_MOSI; +constexpr Pin APIN_SBC_SPI_MISO = APIN_SPI1_MISO; +constexpr Pin APIN_SBC_SPI_SCK = APIN_SPI1_SCK; +constexpr Pin APIN_SBC_SPI_SS0 = APIN_SPI1_SS0; + constexpr Pin LinuxTfrReadyPin = PortEPin(2); Spi * const LinuxSpi = SPI1; |