Other Parts Discussed in Thread: SYSCONFIG, Z-STACK
Hello Everyone
Greetings of the day..!!
Project Used: zr_sw_ota_client (CCS version)
Stack Version: 5.20.00.52
SoC: CC2652P
I have configured the UART receiver in call-back mode when I run the code call-back function is not executing.
If anyone facing the same issue or knows the solution please help me with this.
here is my UART configuration:
#define UART_DATA_EVENT 0x0100
static UART_Handle uartHandle;
static UART_Params uartParams;
UART_init();
UART_Params_init(&uartParams);
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readCallback = &customUartCb;
uartParams.readEcho=UART_ECHO_OFF;
uartParams.baudRate = 115200;
uartHandle = UART_open(PPL_CNT_UART, &uartParams);
if (uartHandle == NULL)
{
printf("Uart handle is null\n");
}
Call back definition:
void customUartCb(UART_Handle uartHandle, void *buff, size_t size)
{
appServiceTaskEvents |= UART_DATA_EVENT;
printf("uart call back is triggred\n");
Semaphore_post(appSemHandle);
}