2018-11-13 09:58 PM
I use stm32cubemx. And in stm32fxxx_hal_uart.c. There is a function "HAL_UART_DMAStop". This function will stop both TXDMA and RXDMA.
But I have a request. I often use "HAL_UART_DMAStop"+"HAL_UART_Receive_DMA" to flush dma buffer. But HAL_UART_DMAStop will stop tx dma too. I have to write a function HAL_UART_Receive_DMA_RX myself to stop RX DMA only. This is not convenient.
Can ST offer interface HAL_UART_DMAStop_RX and HAL_UART_DMAStop_TX. This will be grate.