Only B pins can be inputs.

This commit is contained in:
Caleb Jamison 2024-09-24 18:55:05 -04:00
parent a498bf11af
commit b743dce8e4

View File

@ -106,11 +106,9 @@ impl<'d> Pwm<'d> {
if let Some(pin) = &a {
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
#[cfg(feature = "_rp235x")]
pin.pad_ctrl().modify(|w| {
#[cfg(feature = "_rp235x")]
w.set_iso(false);
w.set_pue(b_pull == Pull::Up);
w.set_pde(b_pull == Pull::Down);
});
}
if let Some(pin) = &b {