Other Parts Discussed in Thread: TIDEP-0091, SYSBIOS
Hello,
How can I make the semaphore timeout work?
I've tested it with the code below, but it keeps waiting for the semaphore with semaphore_pend.
Semaphore timeout not working.
Semaphore creation:
Semaphore_Params_init(&semParams);
semParams.mode = Semaphore_Mode_BINARY;
gMmwMCB.endSpiSlaveTransaction_semHandle = Semaphore_create(0, &semParams, NULL);
Waiting for semaphore:
Semaphore_pend(gMmwMCB.endSpiSlaveTransaction_semHandle, 100); //100ms timeout
Best Regards,
Horoyuki Taguchi