UART receive, a long time to wait
Hi, DIalog,
I'm using a UART to communicate with peripheral device.
First the MCU sends a command via UART, and then waits for feedback from peripheral.
The feedback length is not fixed and the coming time is unknown (varies from 0.1 second to a few seconds).
The system watchdog is enalbled, that means I can't wait UART feedback for a long time.
How to organize the tasks, ISR, Queue?
Is there a sample code for this application?
Thanks