Hi
Sorry for this silly question. I had configured UART in simple link observer file.
I am ble to transmit data but I can't enable receive interrupt.
I did the following things but reading your UART.h file
void uart_receive_interrupt(UART_Handle handle, void *buf, size_t count); // Function Prototype
// UART Setup
UART_init();
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_TEXT;
uartParams.readReturnMode = UART_RETURN_NEWLINE;
uartParams.readEcho = UART_ECHO_ON;
uartParams.baudRate = 115200;
uartParams.readCallback = uart_receive_interrupt;
uartParams.readMode = UART_MODE_CALLBACK;
GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
uart = UART_open(Board_UART0, &uartParams);
if (uart == NULL) {
/* UART_open() failed */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);
while (1);
}
void uart_receive_interrupt(UART_Handle handle, void *buf, size_t count) // function declaration.
{
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);
UART_write(uart,"test\r\n",6);
}
I had gone through your docs folder which contain the documents for UART and other drivers but it has some functions that are not defined in your UART.h file. I found it strange.
I need the suggestion of what setting I did wrong and what should be done.
I am using "REALTERM SOFTWARE" as serial terminal for getting and sending data over UART. (other parameters such as stop bit, parity check, baudrate are set as defined in UART initialization).