Skip to content

GPIO_LEVEL interrupts broken on ESP32 #4

Open
@Harvie

Description

@Harvie

Hello, i am working on esp32 and tried to use this:

mgos_gpio_set_int_handler(MY_INTERRUPT_PIN, MGOS_GPIO_INT_LEVEL_LO, my_cb, NULL);

but callback is never called. when i use this, the callback is called properly:

mgos_gpio_set_int_handler(MY_INTERRUPT_PIN, MGOS_GPIO_INT_EDGE_NEG, my_cb, NULL);

Is there reason for this? I think that negative edge should trigger LEVEL_LO as well.. Am i right?

Problem with edge trigger is that when i miss the edge while interrupts are disabled, it will not get triggered afterwards while pin is still low. So i need to trigger on low-level instead, but it's broken :-/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions