mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Only B pins can be inputs.
This commit is contained in:
parent
a498bf11af
commit
b743dce8e4
@ -106,11 +106,9 @@ impl<'d> Pwm<'d> {
|
||||
|
||||
if let Some(pin) = &a {
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
|
||||
pin.pad_ctrl().modify(|w| {
|
||||
#[cfg(feature = "_rp235x")]
|
||||
pin.pad_ctrl().modify(|w| {
|
||||
w.set_iso(false);
|
||||
w.set_pue(b_pull == Pull::Up);
|
||||
w.set_pde(b_pull == Pull::Down);
|
||||
});
|
||||
}
|
||||
if let Some(pin) = &b {
|
||||
|
Loading…
Reference in New Issue
Block a user