summaryrefslogtreecommitdiff
path: root/platforms/chibios/GENERIC_STM32_F072XB
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-12-21 15:02:38 +1100
committerGitHub <noreply@github.com>2020-12-21 15:02:38 +1100
commit296a6cf4ea32d2aabc8fa1b09f9552fc541ab13b (patch)
treed20eaa8409338e9ac1749a9a5141f7c4ca914cb2 /platforms/chibios/GENERIC_STM32_F072XB
parentc8cd2caeaca0546a598715cbb87d0d6cdd6dcdeb (diff)
ChibiOS conf migrations... take 3 (#11261)
* Add SPI1 DMA stream definitions. * ChibiOS conf upgrade for acheron/lasgweloth acheron/lasgweloth - 3bedb0fe1f1b542b4d90daeaeab8905cd9ee992c * ChibiOS conf upgrade for box75 box75 - ff91bacf5cec0b42df02967eb0ecbf4bd1b56928 * ChibiOS conf upgrade for geekboards/macropad_v2 geekboards/macropad_v2 - 1c205720d47f7e636173064b1aef1637860a9134 * ChibiOS conf upgrade for iron180 iron180 - 867929d78361a50e34671e4e167cafd927d8982b * ChibiOS conf upgrade for technika technika - cb9295b90980eb8dfdc63d6031533edbb344c045
Diffstat (limited to 'platforms/chibios/GENERIC_STM32_F072XB')
-rw-r--r--platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h b/platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h
index d6b6aae4f1..32b2777a81 100644
--- a/platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h
+++ b/platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h
@@ -146,6 +146,8 @@
#define STM32_SPI_SPI2_DMA_PRIORITY 1
#define STM32_SPI_SPI1_IRQ_PRIORITY 2
#define STM32_SPI_SPI2_IRQ_PRIORITY 2
+#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
+#define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
#define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
#define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")