Skip to main content
AColl.7
Associate
January 24, 2024
Solved

UTIL_SEQ_WaitEvt and HW timer

  • January 24, 2024
  • 2 replies
  • 1380 views

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

Best answer by AColl.7

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

Regards

Sandro

2 replies

STTwo-32
Technical Moderator
January 26, 2024

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
AColl.7AuthorBest answer
Associate
February 2, 2024

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

Regards

Sandro