general USART init function
common functions