How to use USART RTO timeout?
I have a STM32L4xx series microcontroller. My goal is to use RTO in USART to issue a timeout, from the time a read was attempted (not only from the last stop bit). This is needed as its possible for nothing to be received. How do I acheive this using RTO?
I've setup USART to interrupt on a timeout using:
CR2.RTOEN
CR1.RTOIE
And configured the timeout using:
RTOR.RTO
It works great, really nice feature. The RTO timeouts are always measured from the last stopbit/character received. However, I need to support a timeout even if zero characters were received. Does anybody know of a method to reset the RTO counter etc?
