diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-15 14:47:18 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-15 14:47:18 +0000 |
commit | fe2fb8757056efa555ed77277de1cc207bb01baa (patch) | |
tree | d7990973a9a92eac0f98e50690f2af3d98f1ad1c /demos | |
parent | ad5ce47a747f8a41341fa869607588584a284631 (diff) | |
download | ChibiOS-fe2fb8757056efa555ed77277de1cc207bb01baa.tar.gz ChibiOS-fe2fb8757056efa555ed77277de1cc207bb01baa.tar.bz2 ChibiOS-fe2fb8757056efa555ed77277de1cc207bb01baa.zip |
SPI files for L4+, to be continued.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12264 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h index 1b9964b9d..783641ead 100644 --- a/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h +++ b/demos/STM32/RT-STM32L4R5ZI-NUCLEO144/cfg/mcuconf.h @@ -215,6 +215,22 @@ /*
* SPI driver system settings.
*/
+#define STM32_SPI_USE_SPI1 FALSE
+#define STM32_SPI_USE_SPI2 FALSE
+#define STM32_SPI_USE_SPI3 FALSE
+#define STM32_SPI_SPI1_RX_DMA_CHANNEL 10
+#define STM32_SPI_SPI1_TX_DMA_CHANNEL 11
+#define STM32_SPI_SPI2_RX_DMA_CHANNEL 12
+#define STM32_SPI_SPI2_TX_DMA_CHANNEL 13
+#define STM32_SPI_SPI3_RX_DMA_CHANNEL 10
+#define STM32_SPI_SPI3_TX_DMA_CHANNEL 11
+#define STM32_SPI_SPI1_DMA_PRIORITY 1
+#define STM32_SPI_SPI2_DMA_PRIORITY 1
+#define STM32_SPI_SPI3_DMA_PRIORITY 1
+#define STM32_SPI_SPI1_IRQ_PRIORITY 10
+#define STM32_SPI_SPI2_IRQ_PRIORITY 10
+#define STM32_SPI_SPI3_IRQ_PRIORITY 10
+#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
/*
* ST driver system settings.
|