STM32F4 usart interrupt - necessary?
I'm struggling with adding usart interrupts to my code. My rotary encoder uses interrupts and the touch screen keypad is polled. I'm not transferring a huge amount of data, just records of about 20 characters at the most. Today instead of interrupts I am test read 4 characters and if they are there, I fill the remaining buffer with the message and process it.
So given that I can read and process the data quickly enough to not hang up the encoder or the soft keypad, should I even bother with usart interrupts given the usart interrupt code is so basic anyway?
It would be nice if there was an interrupt driven function that captured the entire message (they are terminated by a character) and then set a flag so the mainline could process the message. Or an something I could pole from the mainline to see if data is available (can't believe there isn't a soft test of this) ? I guess I could do both with the interrupt code but I am struggling with the value as I would still want to process the message in the mainline.
Thanks
Jerry