aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/boards/QMK_BLOK/configs/config.h17
-rw-r--r--platforms/chibios/boards/QMK_PM2040/configs/config.h16
-rw-r--r--platforms/chibios/boards/STEMCELL/configs/config.h15
-rw-r--r--platforms/chibios/boards/STEMCELL/configs/mcuconf.h2
4 files changed, 49 insertions, 1 deletions
diff --git a/platforms/chibios/boards/QMK_BLOK/configs/config.h b/platforms/chibios/boards/QMK_BLOK/configs/config.h
index 834dc497d3..26fe7cddc7 100644
--- a/platforms/chibios/boards/QMK_BLOK/configs/config.h
+++ b/platforms/chibios/boards/QMK_BLOK/configs/config.h
@@ -18,6 +18,23 @@
#endif
/**======================
+ ** SPI Driver
+ *========================**/
+
+#ifndef SPI_DRIVER
+# define SPI_DRIVER SPID0
+#endif
+#ifndef SPI_SCK_PIN
+# define SPI_SCK_PIN B1
+#endif
+#ifndef SPI_MISO_PIN
+# define SPI_MISO_PIN B3
+#endif
+#ifndef SPI_MOSI_PIN
+# define SPI_MOSI_PIN B2
+#endif
+
+/**======================
** UART Driver
*========================**/
diff --git a/platforms/chibios/boards/QMK_PM2040/configs/config.h b/platforms/chibios/boards/QMK_PM2040/configs/config.h
index f8b46b7fe4..5ba030a556 100644
--- a/platforms/chibios/boards/QMK_PM2040/configs/config.h
+++ b/platforms/chibios/boards/QMK_PM2040/configs/config.h
@@ -18,6 +18,22 @@
#endif
/**======================
+ ** SPI Driver
+ *========================**/
+#ifndef SPI_DRIVER
+# define SPI_DRIVER SPID0
+#endif
+#ifndef SPI_SCK_PIN
+# define SPI_SCK_PIN B1
+#endif
+#ifndef SPI_MISO_PIN
+# define SPI_MISO_PIN B3
+#endif
+#ifndef SPI_MOSI_PIN
+# define SPI_MOSI_PIN B2
+#endif
+
+/**======================
** UART Driver
*========================**/
diff --git a/platforms/chibios/boards/STEMCELL/configs/config.h b/platforms/chibios/boards/STEMCELL/configs/config.h
index 82f6c63636..ab10432e4e 100644
--- a/platforms/chibios/boards/STEMCELL/configs/config.h
+++ b/platforms/chibios/boards/STEMCELL/configs/config.h
@@ -27,3 +27,18 @@
# define SERIAL_USART_DRIVER SD2
#endif
+/**======================
+ ** SPI Driver
+ *========================**/
+#ifndef SPI_DRIVER
+# define SPI_DRIVER SPID1
+#endif
+#ifndef SPI_SCK_PIN
+# define SPI_SCK_PIN B1
+#endif
+#ifndef SPI_MISO_PIN
+# define SPI_MISO_PIN B3
+#endif
+#ifndef SPI_MOSI_PIN
+# define SPI_MOSI_PIN B2
+#endif
diff --git a/platforms/chibios/boards/STEMCELL/configs/mcuconf.h b/platforms/chibios/boards/STEMCELL/configs/mcuconf.h
index db239854aa..d4b870f8e4 100644
--- a/platforms/chibios/boards/STEMCELL/configs/mcuconf.h
+++ b/platforms/chibios/boards/STEMCELL/configs/mcuconf.h
@@ -196,7 +196,7 @@
/*
* SPI driver system settings.
*/
-#define STM32_SPI_USE_SPI1 FALSE
+#define STM32_SPI_USE_SPI1 TRUE
#define STM32_SPI_USE_SPI2 FALSE
#define STM32_SPI_USE_SPI3 FALSE
#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0)