UTIL_SEQ_WaitEvt and HW timer
Hi
I have a infinite loop that wait an event set in a gpio interrupt by
while(1)
{
UTIL_SEQ_WaitEvt()
...
}
It works.
Now, I want have a timer after this so, if the interrupt doen't fire for some second, I want to exec a callback function.
I added after UTILS_SEQ_WaitEvt
HW_TS_Start(idTmr,TMOUT);
The timer and callback function was created before the loop.
After the timer Start function , the interrupt works but the WaitEvent doesn't fire anymore.
Someone can help me?
Thanks