/* Iinitializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(UART_Type *UARTx)
/* Iinitializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(UART_Type *UARTx)
{ 
  __IO uint32_t dummy_data = 0UL;
  assert_parameters(IS_UART_ALL_INSTANCE(UARTx));
  dummy_data = UARTx->DATA;
  dummy_data += 1;
  UARTx->INTSTS = UART_INTSTS_RCMsk;
  UARTx->STATE = UART_STATE_RCMsk;
  UARTx->BAUDDIV = UART_BAUDDIV_RSTValue;
  UARTx->CTRL2 = UART_CTRL2_RSTValue;
  UARTx->CTRL = UART_CTRL_RSTValue;
}