Hi,
Can someone please help me with osal_msg_allocate,
I am trying to send the data from HAL_ISR_FUNCTION (which I written in the main app) which is in the Keyfobdemo.c
I have read the documentation what i understood was allocate memory and use the buffer pointer to send the data or the Event_Msg to send different task using osal_msg_send
Below here is my code snippet, I am trying to do this
unit16 *timeStamp_1_ptr, timeStamp_1;
timeStamp_1_ptr = &timeStamp_1;
timeStamp_1_ptr = (timeStamp_1 *)osal_msg_allocate(sizeof(timeStamp_1));
timeStamp_1 = osal_GetSystemTime();
am i doing it right ? If not please guide me through
The questions which I have are :
1. What shoudl be the pointer to the buffer (osal_msg_allocate) declared as?
2. Whatever the data I get how do i put it to the buffer ?
The Error which I am getting is :
Error[Pe029]: expected an expression C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Stridalyzer\Source\keyfobdemo.c 1133
Error[Pe065]: expected a ";" C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Stridalyzer\Source\keyfobdemo.c 1133
Error[Pe029]: expected an expression C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Stridalyzer\Source\keyfobdemo.c 1137
Error[Pe065]: expected a ";" C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\Stridalyzer\Source\keyfobdemo.c 1137
Please guide me through ASAP.
Regards,
Rakesh