Skip to content

How to implement interrupts #3

@mehmetalianil

Description

@mehmetalianil

The device driver can be ignorant on how the interrupt is handled. Interrupt functionality can be limited to the conditions of the irq.
@dirbao explained in chat:

tldr today you can either

leave it up to the user, ask them to call a fn on irq
This requires explicit user action.
use async WaitForHigh/WaitForLow
This requires to go for embassy hal
try to come up with a non-async IrqPin trait, but there's been heaps of discussion about this in e-h and it hasn't happened because it's nontrivial (impossible?)
dunno.

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