Seems usart.c/h for f10x is working correctly.