I use semaphore_params and call Semaphore_construct() create semaphore
Semaphore_Params semParams;
Semaphore_Params_init(&semParams);
semParams.mode = Semaphore_Mode_BINARY;
Semaphore_construct(&semScTaskAlert, 0, &semParams);
I also need a queue to use. So I construct queue by using
uartMsgQueue = Util_constructQueue(&uartMsg);
Now I want to enqueue, by calling:
Util_enqueueMsg(uartMsgQueue, semScTaskAlert , (uint8*)pMsg);
But semScTaskAlert is Semaphore_Struct type not Semaphore_Handle type, how can I get correct Semaphore_Handle for this case?