2016-05-29 11:26 PM
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_timeout2016-05-30 01:45 AM
The timeout parameter is now a parameter of the HAL_UART_Receive() function.
2016-05-30 01:57 AM
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?2016-05-30 02:00 AM
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