tosc-rs / mnemos

An Operating System for Building Small Computers
https://mnemos.dev
Apache License 2.0
253 stars 18 forks source link

feat(kernel): add a generic GPIO pin abstraction #239

Open hawkw opened 1 year ago

hawkw commented 1 year ago

@jamesmunns WDYT of this?

hawkw commented 1 year ago

belatedly, i realized that https://docs.rs/embedded-hal-async/0.2.0-alpha.2/embedded_hal_async/digital/trait.Wait.html also exists for waiting on pin IRQs, so...we might be better off just using that? i think my API design is slightly nicer but this is compatible with otherembedded-hal-async crates