-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu/sam0_common: GPIO always default to MAIN clock for EXTI, make configurable #14320
Conversation
8025eca
to
ea209b4
Compare
Currently only samd21 used the 32 kHz clock for EXTI which makes it miss fast events. All newer members of the family use the MAIN clock. While touching this, also make the clock source configurable to this can be overwritten, e.g. in the board config if desired.
ea209b4
to
c0203ad
Compare
It seems that using the 32Khz clock was introduced in #6160, seems like it was done to have the |
Yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, GPIO irq stil work on samr21-xpro
.
2020-06-23 22:47:46,204 # main(): This is RIOT! (Version: 2020.07-devel-1284-gc0203a-pr-14320)
2020-06-23 22:47:46,210 # This application allows you to test the CPU power management.
2020-06-23 22:47:46,215 # The available power modes are 0 - 2. Lower-numbered power modes
2020-06-23 22:47:46,221 # save more power, but may require an event/interrupt to wake up
2020-06-23 22:47:46,224 # the CPU. Reset the CPU if needed.
2020-06-23 22:47:46,226 # mode 0 blockers: 1
2020-06-23 22:47:46,228 # mode 1 blockers: 0
2020-06-23 22:47:46,229 # mode 2 blockers: 0
2020-06-23 22:47:46,231 # Lowest allowed mode: 1
2020-06-23 22:47:46,234 # using BTN0 as wake-up source
> 2020-06-23 22:47:46,495 # BTN0 pressed.
2020-06-23 22:47:46,496 # BTN0 pressed.
2020-06-23 22:47:46,638 # BTN0 pressed.
2020-06-23 22:47:46,639 # BTN0 pressed.
2020-06-23 22:47:47,270 # BTN0 pressed.
2020-06-23 22:47:47,271 # BTN0 pressed.
2020-06-23 22:47:47,388 # BTN0 pressed.
2020-06-23 22:47:47,505 # BTN0 pressed.
2020-06-23 22:47:47,616 # BTN0 pressed.
2020-06-23 22:47:48,387 # BTN0 pressed.
2020-06-23 22:47:48,388 # BTN0 pressed.
2020-06-23 22:47:49,560 # BTN0 pressed.
2020-06-23 22:47:49,561 # BTN0 pressed.
2020-06-23 22:4750,241 # BTN0 pressed.
Contribution description
Currently only samd21 used the 32 kHz clock for EXTI which makes it miss fast events.
All newer members of the family use the MAIN clock.
While touching this, also make the clock source configurable to this can be overwritten, e.g. in the board config if desired.
Testing procedure
GPIO interrupts should still work.
Issues/PRs references