Skip to content

Can I redefine or extend the defined by HAL interrupt handler? #856

@ntqbit

Description

@ntqbit

Hello!
Thank you for this great project and for your work!

I am using async I2C in my project, so I add the async feature for the esp-hal dependency.
It seems like enabling the async feature aside from the I2C_EXT0 interrupt that is required for async I2C to work, also defines GPIO interrupt that is used to detect GPIO events like rising edges.

However, I want to detect rising edge on a pin and I would like to implement the GPIO handler myself rather than using a task and pin.wait_for_rising_edge async method.
Can I somehow redefine or extend the already defined by the crate GPIO interrupt handler? Or can I prevent the crate from defining the GPIO interrupt (maybe disabling the wait_for_rising_edge functionality) while having the async feature enabled (for async I2C to work) ?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions