This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
void IntUART1Handler(void)
{
uint32_t ui32Status;
// Get the interrrupt status.
ui32Status = ROM_UARTIntStatus(UART1_BASE, true);
// Clear the asserted interrupts.
ROM_UARTIntClear(UART1_BASE, ui32Status);
// Loop while there are characters in the receive FIFO.
while(ROM_UARTCharsAvail(UART1_BASE))
{
// Read the next character from the UART and write it back to the UART.
UcBuffer = ROM_UARTCharGetNonBlocking(UART1_BASE);
ROM_UARTCharPutNonBlocking(UART1_BASE ,UcBuffer+1);
//Add User Code...
}
}
你用这个初始化看看。