mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 14:22:33 +00:00
Disable pad isolation on PWM A pins.
Also fixes minor bug for 2040 where A pins didn't have their pull up/down enabled.
This commit is contained in:
parent
0ede8479dc
commit
a498bf11af
@ -106,6 +106,12 @@ 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")]
|
||||
w.set_iso(false);
|
||||
w.set_pue(b_pull == Pull::Up);
|
||||
w.set_pde(b_pull == Pull::Down);
|
||||
});
|
||||
}
|
||||
if let Some(pin) = &b {
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
|
||||
|
Loading…
Reference in New Issue
Block a user