rp: rename gpio::Pin::io to gpio::Pin::gpio
we'll need access to the pin io bank registers for an upcoming fix, and having both `io` and `io_bank` or similar can get confusing quickly. rename `io` to `gpio` to avoid this, and also match the type while there.
This commit is contained in:
@ -79,10 +79,10 @@ impl<'d, T: Channel> Pwm<'d, T> {
|
||||
Self::configure(p, &config);
|
||||
|
||||
if let Some(pin) = &a {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(4));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
|
||||
}
|
||||
if let Some(pin) = &b {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(4));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(4));
|
||||
}
|
||||
Self {
|
||||
inner,
|
||||
@ -243,10 +243,10 @@ impl<'d, T: Channel> Drop for Pwm<'d, T> {
|
||||
fn drop(&mut self) {
|
||||
self.inner.regs().csr().write_clear(|w| w.set_en(false));
|
||||
if let Some(pin) = &self.pin_a {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(31));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(31));
|
||||
}
|
||||
if let Some(pin) = &self.pin_b {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(31));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(31));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user