This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to enable a TASK for a zephyr GPIO pin?

How do we enable a PPI TASK for a GPIO output pin configured using zephyr GPIO driver API? ex: gpio_pin_configure_dt(&ex_pin, GPIO_OUTPUT);

If I just call nrfx_gpiote_out_task_enable(EX_PIN), I get the following runtime assertion error: 

I believe we need a way to inform the gpio driver to allocate a GPIOTE channel even though the pin is an output pin. Currently, the nrfx implementation for the zephyr GPIO API only allocate GPIOTE channels for input pins.

Can you please provide some guidance on how are supposed to do this? Thank you.