/* Initialize the UART peripheral */ void Chip_UART_Init(LPC_USART_T *pUART) { /* Clear the interrupt */ IP_UART_ClearStatus(pUART, CTS_DELTA | DELTA_RXBRK); /* Enable the UART */ IP_UART_Init(pUART); }
/* Initializes the UARTx peripheral */ void Chip_UART_Init(LPC_USART_Type *UARTx) { UART_ID_Type UARTPort = Chip_UART_Get_UARTNum(UARTx); /* Enable UART clocking. UART base clock(s) must already be enabled */ Chip_Clock_EnableOpts(Chip_UART_DetermineClk(UARTx), true, true, 1); IP_UART_Init(UARTx, UARTPort); }
/* Initializes the pUART peripheral */ void Chip_UART_Init(LPC_USART_T *pUART) { IP_UART_ID_T UARTPort = Chip_UART_Get_UARTNum(pUART); /* Enable UART clocking. UART base clock(s) must already be enabled */ Chip_Clock_EnablePeriphClock(Chip_UART_DetermineClk(pUART)); IP_UART_Init(pUART, UARTPort); }