Hi Everyone,
I am working with empty example from simplelink sdk v3.20. I am using Semaphores and interrupts in my program. I configure a pin to detect a neg edge and post a semaphore a sub-routine. The Semaphore_pend is put in a called function from mainThread as following,
#define TICKS_PER_SECOND (uint32_t)(1000000/Clock_tickPeriod) #define SEMAPHORE_WAIT_IN_SEC (uint32_t)(5*TICKS_PER_SECOND) Semaphore_pend(semHandle,SEMAPHORE_WAIT_IN_SEC);
However I see that the task is not unblocked within five seconds. To verify this, I put UART_write statements above and below the 'Semaphore_pend' and I do not see the print after the statement.
I also verified that all the handles are not NULL (UART,InterruptHandle,Semaphore etc.,)
Can someone suggest why this might be happening?
Thanks in advance,
-Chandrasekhar DVS