cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the uart_receiver_timeout value in HAL?

shaodong821
Associate
Posted on May 30, 2016 at 08:26

For setting the uart_receiver_timeout value?I can use USART_ReceiverTimeOutCmd() and USART_SetReceiverTimeOut() 

in STM32F0xx_StdPeriph_Lib

?but which function I can use in STM32F0xx_HAL_Driver ? can you find it, 

thank you.

#hal-uart_receiver_timeout
3 REPLIES 3
carmine
Associate II
Posted on May 30, 2016 at 10:45

The timeout parameter is now a parameter of the HAL_UART_Receive() function.

shaodong821
Associate
Posted on May 30, 2016 at 10:57

You may not understand my problem.

In other words, my question is how to use the HAL library function to set the USART_RTOR register?

slimen
Senior
Posted on May 30, 2016 at 11:00

Hi,

 UART_Receiver_TimeOut :

- UART_RECEIVER_TIMEOUT_DISABLE       /*!< UART receiver timeout disable */

- UART_RECEIVER_TIMEOUT_ENABLE        /*!< UART receiver timeout enable  */

You can refer to the examples under  STM32Cube_FW_F0_V1.5.0\Projects\STM32F072B-Discovery\Examples\UART\ ,  it may be helpful for you.

Regards