Skip to content

Commit

Permalink
Merge pull request embassy-rs#3371 from CBJamo/rp23_pwm_b_pin
Browse files Browse the repository at this point in the history
rp23: Disable pad isolation on PWM A pins.
  • Loading branch information
Dirbaio authored Sep 24, 2024
2 parents 0ede847 + b743dce commit af6fbb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions embassy-rp/src/pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ 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| {
w.set_iso(false);
});
}
if let Some(pin) = &b {
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
Expand Down

0 comments on commit af6fbb0

Please sign in to comment.