Similar thing here... IMHO just adding some defines for USART_SR for the F3 would make the code more readable instead of all the ifdefs....