rp-rs / rp-hal

A Rust Embedded-HAL for the rp series microcontrollers
https://crates.io/crates/rp2040-hal
Apache License 2.0
1.46k stars 237 forks source link

Implement InputPin and OutputPin for Pin<I, DynFunction, P> #859

Open jannic opened 1 month ago

jannic commented 1 month ago

Operations on this are fallible: They return Err(DynPinError::IncompatibleFunction) if the pin is not configured to an incompatible function.

jannic commented 1 month ago

What other traits could sensibly be implemented for DynFunction?