Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit 3f5c058

Browse files
arjanmelsfmckeogh
authored andcommitted
Added default disable of rtc pull up/down
1 parent edc48a0 commit 3f5c058

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/gpio/mod.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,16 @@ macro_rules! impl_analog {
860860

861861
#[inline(always)]
862862
fn disable_analog(&self) {
863-
unsafe{ &*RTCIO::ptr() }.$pin_reg.modify(|_,w| w.$mux_sel().clear_bit());
863+
let rtcio = unsafe{ &*RTCIO::ptr() };
864+
865+
rtcio.$pin_reg.modify(|_,w| w.$mux_sel().clear_bit());
866+
867+
$(
868+
rtcio.$pin_reg.modify(|_,w| {
869+
w.$rue().clear_bit().$rde().clear_bit()
870+
});
871+
)?
872+
864873
}
865874
}
866875

0 commit comments

Comments
 (0)