STM32: Fix RX DMA setup for UART5. From Jussi Kivilinna.

This commit is contained in:
Gregory Nutt 2015-03-13 07:06:46 -06:00
parent 8f59fc8f64
commit b8476c7ee8
2 changed files with 5 additions and 4 deletions

View File

@ -338,13 +338,13 @@
# define DMACHAN_TIM4_UP STM32_DMA1_CHAN7
# define DMACHAN_SPI3_RX STM32_DMA2_CHAN1
# define DMACHAN_USART5_TX STM32_DMA2_CHAN1
# define DMACHAN_UART5_TX STM32_DMA2_CHAN1
# define DMACHAN_TIM5_CH4 STM32_DMA2_CHAN1
# define DMACHAN_TIM5_TRIG STM32_DMA2_CHAN1
# define DMACHAN_TIM5_COM STM32_DMA2_CHAN1
# define DMACHAN_SPI3_TX STM32_DMA2_CHAN2
# define DMACHAN_USART5_RX STM32_DMA2_CHAN2
# define DMACHAN_UART5_RX STM32_DMA2_CHAN2
# define DMACHAN_TIM5_CH3 STM32_DMA2_CHAN2
# define DMACHAN_TIM5_UP STM32_DMA2_CHAN2

View File

@ -159,9 +159,9 @@
# endif
# endif
# if defined(CONFIG_UART4_RXDMA)
# if defined(CONFIG_UART4_RXDMA) || defined(CONFIG_UART5_RXDMA)
# ifndef CONFIG_STM32_DMA2
# error STM32 UART4 receive DMA requires CONFIG_STM32_DMA2
# error STM32 UART4/5 receive DMA requires CONFIG_STM32_DMA2
# endif
# endif
@ -171,6 +171,7 @@
# define DMAMAP_USART2_RX DMACHAN_USART2_RX
# define DMAMAP_USART3_RX DMACHAN_USART3_RX
# define DMAMAP_UART4_RX DMACHAN_UART4_RX
# define DMAMAP_UART5_RX DMACHAN_UART5_RX
# endif