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.
请问你是用外界的串口么?我用的的UART1,无线蓝牙串口,发不回数据
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...
}
}
你用这个初始化看看。
通过TTL和电脑通信没有问题,不过80MHz的时候会乱码