Ie, remove unwrap() requirement when setting pins in both internal and external code. Note how other peripheral modules like SPIM and TWIM add the embedded-hal impls as add-ons, vice primary API.
Yeah, we can probably add inherent methods for controlling the pins. Note that there's also a pending redesign of the whole GPIO module in https://github.com/nrf-rs/nrf-hal/pull/301.
Ie, remove
unwrap()
requirement when setting pins in both internal and external code. Note how other peripheral modules like SPIM and TWIM add the embedded-hal impls as add-ons, vice primary API.I'll submit a PR if you agree.