Hi,
I'm trying to get a character by uart by interrupt. But I always get the value 0xff. the interrupt is this:
UARTIntHandler(void)
{
uint32_t ui32Status;
char data = 0;
ui32Status = ROM_UARTIntStatus(UART2_BASE, true);
ROM_UARTIntClear(UART2_BASE, ui32Status);
while(ROM_UARTCharsAvail(UART2_BASE))
{
data = UARTCharGetNonBlocking( UART2_BASE );
UARTCharPut(UART0_BASE, data);
}
}
Any amount you type in uart 2 RX always sends to "data" the value 0xff in uart0. Why?
regards