libopencm3/libopencm3 — pull request #283 by flixr (2014-03-04 12:37:26+00:00)
Title: [f3] add USART_SR_x defines for common status flags

enables the use of usart_get_flag(USARTx, USART_SR_x) on F3 just like on F124.

Not sure this is the nicest way to do it, but at least it makes it much easier to write uart code that works on all the STM families...