cancel
Showing results for 
Search instead for 
Did you mean: 

UTIL_SEQ_WaitEvt and HW timer

AColl.7
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
AColl.7
Associate II

I didn't have the wakeup configurated. It was disabled. Putting it on Internal wake up it's works. My mistake

Regards

Sandro

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

Hello @AColl.7 

Can you please provide more details about your configurations, the original code, the changes that you have made...

Best Regards.

STTwo-32

 

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

AColl.7
Associate II

I didn't have the wakeup configurated. It was disabled. Putting it on Internal wake up it's works. My mistake

Regards

Sandro