/* Deinitializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(UART_TypeDef *UARTx)
/* Deinitializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(UART_TypeDef *UARTx)
{
  assert_param(IS_UART_ALL_PERIPH(UARTx));
  switch (*(uint32_t*)&UARTx)
  {
  case UART1_BASE:
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_UART1, ENABLE);
    RCC_APB2PeriphResetCmd(RCC_APB2Periph_UART1, DISABLE);
    break;
  default:
    break;
  }
}