Need help configuring nrfx qdec irq in Zephyr project

Hello,

Currently I am implementing the nrfx qdec driver in our Zephyr project using the nRF52840 DK. We choose the nrfx driver as this provides events. I am using the nRF Connect vs code extension, toolchain v2.7.0 and Zephyr 3.5.0.

The setup and initialization of the driver is quite straight forward and works. But as soon as I turn the rotary encoder a spurious IRQ is thrown. It has something to do with the IRQ_CONNECT macro. The example provided in nrfx_qdec.h doesn't seems to work:

 * IRQ_DIRECT_CONNECT(NRFX_IRQ_NUMBER_GET(NRF_QDEC_INST_GET(\<instance_index\>)), \<priority\>,
 *                    NRFX_QDEC_INST_HANDLER_GET(\<instance_index\>), 0);

Looking for examples didn't result in a solution.

Any help is appreciated.

Parents Reply Children
No Data
Related