/* De-initializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(LPC_UART_TypeDef *UARTx)
/* De-initializes the UARTx peripheral registers to their default reset values.  */
void UART_DeInit(LPC_UART_TypeDef *UARTx)
{
    UART_TxCmd(UARTx, DISABLE);
    if (UARTx == LPC_UART0)
    {
        CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCUART0, DISABLE);
    }
    if (((LPC_UART1_TypeDef *)UARTx) == LPC_UART1)
    {
        CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCUART1, DISABLE);
    }
    if (UARTx == LPC_UART2)
    {
        CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCUART2, DISABLE);
    }
    if (UARTx == LPC_UART3)
    {
        CLKPWR_ConfigPPWR (CLKPWR_PCONP_PCUART3, DISABLE);
    }
}