/* Enable/disable USART/UART receiver and/or transmitter. 
Notice that this function does not do any configuration. Enabling should normally be done after initialization is done (if not enabled as part of init). */
void USART_Enable(USART_TypeDef *usart, USART_Enable_TypeDef enable)
/* Enable/disable USART/UART receiver and/or transmitter. 
Notice that this function does not do any configuration. Enabling should normally be done after initialization is done (if not enabled as part of init). */
void USART_Enable(USART_TypeDef *usart, USART_Enable_TypeDef enable)
{
  uint32_t tmp;
  EFM_ASSERT(USART_REF_VALID(usart)||(UART_REF_VALID(usart)));
  tmp        = ~((uint32_t)(enable));
  tmp       &= _USART_CMD_RXEN_MASK | _USART_CMD_TXEN_MASK;
  usart->CMD = tmp << 1;
  usart->CMD = (uint32_t)(enable);
}