Skip to content

Commit

Permalink
Fix SPI4 DMA assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed May 13, 2022
1 parent 1a6fa4d commit e9a4589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/drivers/dma_reqmap.c
Expand Up @@ -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) } },
Expand Down

0 comments on commit e9a4589

Please sign in to comment.