Skip to content

help with IRQ_CONNECT(nrf52840) #34125

Answered by henrikbrixandersen
teijokk asked this question in Q&A
Discussion options

You must be logged in to vote

No, IRQ_CONNECT() is just for generating interrupt vectors (see https://docs.zephyrproject.org/latest/reference/kernel/other/interrupts.html#implementation for details). A SoC GPIO driver would use IRQ_CONNECT() for "attaching" a function to an IRQ vector.

GPIO interrupt callbacks can be attached using the GPIO API: https://docs.zephyrproject.org/latest/reference/peripherals/gpio.html
An example of using this API can be found in the button sample: https://github.com/zephyrproject-rtos/zephyr/blob/master/samples/basic/button/src/main.c

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants