/* USART Set Word Length. 
The word length is set to 8 or 9 bits. Note that the last bit will be a parity bit if parity is enabled, in which case the data length will be 7 or 8 bits respectively. */
void usart_set_databits(uint32_t usart, uint32_t bits)
/* USART Set Word Length. 
The word length is set to 8 or 9 bits. Note that the last bit will be a parity bit if parity is enabled, in which case the data length will be 7 or 8 bits respectively. */
void usart_set_databits(uint32_t usart, uint32_t bits)
{
	if (bits == 8) {
		USART_CR1(usart) &= ~USART_CR1_M;
	} else {
		USART_CR1(usart) |= USART_CR1_M;
	}
}