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:
Diffstat (limited to 'src/Config/Pins_Duet3_MB6HC.h')
-rw-r--r--src/Config/Pins_Duet3_MB6HC.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Config/Pins_Duet3_MB6HC.h b/src/Config/Pins_Duet3_MB6HC.h
index 2af57679..1517acdd 100644
--- a/src/Config/Pins_Duet3_MB6HC.h
+++ b/src/Config/Pins_Duet3_MB6HC.h
@@ -396,7 +396,12 @@ constexpr Pin SbcTfrReadyPin = PortEPin(2);
#define ESP_SPI SPI1
#define ESP_SPI_INTERFACE_ID ID_SPI1
#define ESP_SPI_IRQn SPI1_IRQn
+
+#if HAS_SBC_INTERFACE
#define ESP_SPI_HANDLER SPI1_WiFi_Handler // SBC interface redirects the interrupt to here
+#else
+#define ESP_SPI_HANDLER SPI1_Handler // SBC interface redirects the interrupt to here
+#endif
constexpr Pin APIN_ESP_SPI_MOSI = PortCPin(27);
constexpr Pin APIN_ESP_SPI_MISO = PortCPin(26);