mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Update rp2040-hal/src/gpio.rs
Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
parent
eaea9ae1ed
commit
c4ae152fda
|
@ -81,6 +81,7 @@ macro_rules! gpio {
|
||||||
|
|
||||||
fn split(self, pads: pac::$PADSX, sio: pac::SIO, resets: &mut pac::RESETS) -> Parts {
|
fn split(self, pads: pac::$PADSX, sio: pac::SIO, resets: &mut pac::RESETS) -> Parts {
|
||||||
resets.reset.modify(|_, w| w.$gpiox().clear_bit().$padsx().clear_bit());
|
resets.reset.modify(|_, w| w.$gpiox().clear_bit().$padsx().clear_bit());
|
||||||
|
// TODO: Implement Resets in the HAL
|
||||||
while resets.reset_done.read().$gpiox().bit_is_clear() {
|
while resets.reset_done.read().$gpiox().bit_is_clear() {
|
||||||
cortex_m::asm::delay(10);
|
cortex_m::asm::delay(10);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue