Part Number: LAUNCHXL-CC1352P
Tool/software: TI C/C++ Compiler
I am trying to print and read data from UART in simple peripheral project. I have added the UART driver and UART_read and UART_write functions.
I am using 1 characteristic to read data and another to write data in UART. Now, the issue is: In order to read data continuously, UART_read needs to be in an infinite loop, but this affects the UART_write functionality as now it first expects UART_read to take place and then prints data.
To read from UART :
UART_read(uart,&charValue2,sizeof(charValue2));
SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR2, sizeof(uint8_t),
&charValue2);
Is there any other way to implements this ?