summaryrefslogtreecommitdiff
path: root/platforms/chibios
diff options
context:
space:
mode:
authorJack Sangdahl <jack@pngu.org>2025-07-13 09:59:59 -0600
committerGitHub <noreply@github.com>2025-07-13 16:59:59 +0100
commitd67e94fb1b3f4e6d57b211983f8527571bdcb816 (patch)
treeaba3eef22a48a2ba6ee308b0021e469d8b23ddbc /platforms/chibios
parentf797d4f49d38d9538f6072048b1dfd2f981696f0 (diff)
Configure SPI for `STEMCELL` board (#25486)
Diffstat (limited to 'platforms/chibios')
-rw-r--r--platforms/chibios/boards/STEMCELL/configs/config.h15
-rw-r--r--platforms/chibios/boards/STEMCELL/configs/mcuconf.h2
2 files changed, 16 insertions, 1 deletions
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 @@
27# define SERIAL_USART_DRIVER SD2 27# define SERIAL_USART_DRIVER SD2
28#endif 28#endif
29 29
30/**======================
31 ** SPI Driver
32 *========================**/
33#ifndef SPI_DRIVER
34# define SPI_DRIVER SPID1
35#endif
36#ifndef SPI_SCK_PIN
37# define SPI_SCK_PIN B1
38#endif
39#ifndef SPI_MISO_PIN
40# define SPI_MISO_PIN B3
41#endif
42#ifndef SPI_MOSI_PIN
43# define SPI_MOSI_PIN B2
44#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 @@
196/* 196/*
197 * SPI driver system settings. 197 * SPI driver system settings.
198 */ 198 */
199#define STM32_SPI_USE_SPI1 FALSE 199#define STM32_SPI_USE_SPI1 TRUE
200#define STM32_SPI_USE_SPI2 FALSE 200#define STM32_SPI_USE_SPI2 FALSE
201#define STM32_SPI_USE_SPI3 FALSE 201#define STM32_SPI_USE_SPI3 FALSE
202#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0) 202#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0)