/* USART Get 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. */
uint32_t usart_get_databits(uint32_t usart)
/* USART Get 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. */
uint32_t usart_get_databits(uint32_t usart)
{
	const uint32_t reg32 = USART_CR1(usart) & USART_CR1_M;
	if (reg32)
		return 9;
	else
		return 8;
}