diff options
| author | SummerGift <[email protected]> | 2018-12-25 16:23:26 +0800 |
|---|---|---|
| committer | SummerGift <[email protected]> | 2018-12-25 16:23:52 +0800 |
| commit | 003931db16d52cc4b162131b6c45da859517d24f (patch) | |
| tree | af0b856f810e0296f154399deb072cd996935ee4 /bsp/stm32/libraries | |
| parent | bac2c0802c64c98c51eb81e41daebc94367bc820 (diff) | |
[bsp][stm32] fix f4 spi3 bug
Diffstat (limited to 'bsp/stm32/libraries')
| -rw-r--r-- | bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h b/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h index 8a1ff11059..abeecd7154 100644 --- a/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h +++ b/bsp/stm32/libraries/HAL_Drivers/config/f4/spi_config.h @@ -61,13 +61,13 @@ .dma_rx.Instance = DMA1_Stream0, \ .dma_rx.channel = DMA_CHANNEL_0, \ .dma_rx.dma_irq = DMA1_Stream0_IRQn, \ - .dma_tx.Instance = DMA1_Stream2, \ + .dma_tx.Instance = DMA1_Stream5, \ .dma_tx.channel = DMA_CHANNEL_0, \ - .dma_tx.dma_irq = DMA1_Stream2_IRQn, \ + .dma_tx.dma_irq = DMA1_Stream5_IRQn, \ } #define SPI3_DMA_RX_IRQHandler DMA1_Stream0_IRQHandler -#define SPI3_DMA_TX_IRQHandler DMA1_Stream2_IRQHandler +#define SPI3_DMA_TX_IRQHandler DMA1_Stream5_IRQHandler #endif #ifdef BSP_USING_SPI4 |
