omnibus: enable DMA on SPI2 (SD Card)

Reduces CPU load by ~10%, and allows to comfortably run the rate loop at
2kHz.
This commit is contained in:
Beat Küng 2020-03-09 11:42:52 +01:00 committed by Lorenz Meier
parent eab88294f8
commit 977b80cee9
2 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,9 @@
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_2
#define DMACHAN_SPI2_RX DMAMAP_SPI2_RX
#define DMACHAN_SPI2_TX DMAMAP_SPI2_TX
/* LED definitions ******************************************************************/
/* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in any
* way. The following definitions are used to access individual LEDs.

View File

@ -167,6 +167,7 @@ CONFIG_STM32_SERIAL_DISABLE_REORDERING=y
CONFIG_STM32_SPI1=y
CONFIG_STM32_SPI1_DMA=y
CONFIG_STM32_SPI2=y
CONFIG_STM32_SPI2_DMA=y
CONFIG_STM32_SPI3=y
CONFIG_STM32_SPI_DMA=y
CONFIG_STM32_TIM1=y