Skip to main content
shaodong821
Associate
May 30, 2016
Question

How to set the uart_receiver_timeout value in HAL?

  • May 30, 2016
  • 3 replies
  • 1087 views
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
This topic has been closed for replies.

3 replies

carmine
Associate III
May 30, 2016
Posted on May 30, 2016 at 10:45

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

shaodong821
Associate
May 30, 2016
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
Visitor II
May 30, 2016
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