/* USART Configure Line Control Register This register sets the data bits, stop bits, and parity.  */
void usart_configure_lcr(uint32_t usart, uint8_t data_bits, uint8_t stop_bits, uint8_t parity)
/* USART Configure Line Control Register This register sets the data bits, stop bits, and parity.  */
void usart_configure_lcr(uint32_t usart, uint8_t data_bits, uint8_t stop_bits, uint8_t parity)
{
	USART_LCR(usart) = USART_LCR_WLS(data_bits)
					| ((stop_bits==USART_STOPBITS_2) ? USART_LCR_SBS : 0)
					| USART_LCR_PSELPEN(parity);
}