cancel
Showing results for 
Search instead for 
Did you mean: 

I want ST offer a interface HAL_UART_DMAStop_RX

nicekwell
Associate II

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.

0 REPLIES 0