Interruption reset timer

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Interruption reset timer

Hello!

I'm trying to program a code which resets the button wake up interruption after a certain time. I'm using the following wake up code which I found in one of the demos:

wkupct_enable_irq(WKUPCT_PIN_SELECT(GPIO_BUTTON_PORT, GPIO_BUTTON_PIN), // select pin (GPIO_BUTTON_PORT, GPIO_BUTTON_PIN)
WKUPCT_PIN_POLARITY(GPIO_BUTTON_PORT, GPIO_BUTTON_PIN, WKUPCT_PIN_POLARITY_HIGH), // polarity high
3, / / 3事件
40); // debouncing time

I found out it keeps the count of events for a lot of time and I need the counter to reset after some seconds the first event occurred. After analyzing the code function and using some breakpoints I couldn't see where the counter is saved. I was hoping you could help me out.

Thank you!

Device:
LT_Dialog(未验证)
Hi vrabo,

Hi vrabo,
Could you try callingSetWord16(WKUP_RESET_CNTR_REG, 0)at the point you'd like to reset the counter?

Thank you.

vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Thank you very much

Thank you very much