/* De-initializes the UARTx peripheral */
void Chip_UART_DeInit(LPC_USART_Type *UARTx)
{
	UART_ID_Type UARTPort = Chip_UART_Get_UARTNum(UARTx);

	IP_UART_DeInit(UARTx, UARTPort);

	/* Disable UART clocking */
	Chip_Clock_Disable(Chip_UART_DetermineClk(UARTx));
}
예제 #2
0
/* De-initializes the pUART peripheral */
void Chip_UART_DeInit(LPC_USART_T *pUART)
{
	IP_UART_ID_T UARTPort = Chip_UART_Get_UARTNum(pUART);

	IP_UART_DeInit(pUART, UARTPort);

	/* Disable UART clocking */
	Chip_Clock_DisablePeriphClock(Chip_UART_DetermineClk(pUART));
}