Skip to content

gpio_set_irq_enabled() will not enable GPIO interrupt handling #1594

Open
@yoavct

Description

@yoavct

Hi,

Trying to enable interrupts for GPIO using the following sequence will not work:
gpio_set_irq_callback()
gpio_set_irq_enabled()

But using the gpio_set_irq_enabled_with_callback() does work.

The latter includes the two above that set the callback and enable IRQs, but also adds a call to irq_set_enabled(IO_IRQ_BANK0, enabled) without which interrupts will not work.

Unless the intention of the API is to force users to use gpio_set_irq_enabled_with_callback(), it seems that irq_set_enabled() should be moved to _gpio_set_irq_enabled().

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions