/* Deinitializes the uart peripheral registers to their default reset values.  */
void UART_DeInit(UART_TypeDef *uart)
/* Deinitializes the uart peripheral registers to their default reset values.  */
void UART_DeInit(UART_TypeDef *uart)
{
    if(UART2 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART2);
    }
    if(UART1 == uart) {
        exRCC_APB2PeriphReset(RCC_APB2ENR_UART1);
    }
    if(UART3 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART3);
    }
    if(UART4 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART4);
    }
    if(UART5 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART5);
    }
    if(UART6 == uart) {
        exRCC_APB2PeriphReset(RCC_APB2ENR_UART6);
    }
    if(UART7 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART7);
    }
    if(UART8 == uart) {
        exRCC_APB1PeriphReset(RCC_APB1ENR_UART8);
    }
}