Skip to content
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/qn908x: Fix triggering GPIO IRQ. #15568

Merged
merged 1 commit into from Dec 6, 2020
Merged

Conversation

iosabi
Copy link
Contributor

@iosabi iosabi commented Dec 5, 2020

Contribution description

The IRQ for each GPIO port needs to be enabled in the NVIC on top of
enabling the corresponding bit in the GPIO port.

This was not caught in tests before because I was testing with a larger
stack of commits (including UART and timers) which also had this fix.

Manually poking the GPIOs while using tests/periph_gpio now properly
fires the interrupts.

Testing procedure

make BOARD=qn9080dk -C tests/periph_gpio all flash

Manual verification in the terminal poking the GPIOs after a "init_int" command.

Issues/PRs references

This is part of #13852.

@benpicco benpicco added Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Dec 6, 2020
cpu/qn908x/periph/gpio.c Outdated Show resolved Hide resolved
The IRQ for each GPIO port needs to be enabled in the NVIC on top of
enabling the corresponding bit in the GPIO port.

This was not caught in tests before because I was testing with a larger
stack of commits (including UART and timers) which also had this fix.

Manually poking the GPIOs while using tests/periph_gpio now properly
fires the interrupts.
@benpicco benpicco merged commit 0fcecde into RIOT-OS:master Dec 6, 2020
@iosabi iosabi deleted the qn908x_gpio_int branch January 31, 2021 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants