From e9a4589a76cc919f0d760bdc65b51d3c216d54e0 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sat, 14 May 2022 01:49:00 +0200 Subject: [PATCH] Fix SPI4 DMA assignment --- src/main/drivers/dma_reqmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/drivers/dma_reqmap.c b/src/main/drivers/dma_reqmap.c index dc936befc2..c885451c63 100644 --- a/src/main/drivers/dma_reqmap.c +++ b/src/main/drivers/dma_reqmap.c @@ -390,8 +390,8 @@ static const dmaPeripheralMapping_t dmaPeripheralMapping[] = { { DMA_PERIPH_SPI_MISO, SPIDEV_3, { DMA(1, 0, 0), DMA(1, 2, 0) } }, #if defined(STM32F411xE) || defined(STM32F745xx) || defined(STM32F746xx) || defined(STM32F765xx) || defined(STM32F722xx) - { DMA_PERIPH_SPI_MOSI, SPIDEV_4, { DMA(2, 1, 4) } }, - { DMA_PERIPH_SPI_MISO, SPIDEV_4, { DMA(2, 0, 4) } }, + { DMA_PERIPH_SPI_MOSI, SPIDEV_4, { DMA(2, 1, 4), DMA(2, 4, 5) } }, + { DMA_PERIPH_SPI_MISO, SPIDEV_4, { DMA(2, 0, 4), DMA(2, 3, 5) } }, #ifdef USE_EXTENDED_SPI_DEVICE { DMA_PERIPH_SPI_MOSI, SPIDEV_5, { DMA(2, 6, 7) } },