Update rp2040-hal/src/gpio.rs

Co-authored-by: tdittr <tdittr@users.noreply.github.com>
This commit is contained in:
Jennifer Wilcox 2021-04-25 12:17:05 -05:00 committed by GitHub
parent eaea9ae1ed
commit c4ae152fda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,7 @@ macro_rules! gpio {
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());
// TODO: Implement Resets in the HAL
while resets.reset_done.read().$gpiox().bit_is_clear() {
cortex_m::asm::delay(10);
}