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:
Hi vrabo,
Could you try calling
SetWord16(WKUP_RESET_CNTR_REG, 0)
at the point you'd like to reset the counter?Thank you.
Thank you very much