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:
@ -100,16 +100,16 @@ impl<'d, T: Instance, M: Mode> Spi<'d, T, M> {
|
||||
p.cr1().write(|w| w.set_sse(true));
|
||||
|
||||
if let Some(pin) = &clk {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(1));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(1));
|
||||
}
|
||||
if let Some(pin) = &mosi {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(1));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(1));
|
||||
}
|
||||
if let Some(pin) = &miso {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(1));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(1));
|
||||
}
|
||||
if let Some(pin) = &cs {
|
||||
pin.io().ctrl().write(|w| w.set_funcsel(1));
|
||||
pin.gpio().ctrl().write(|w| w.set_funcsel(1));
|
||||
}
|
||||
Self {
|
||||
inner,
|
||||
|
Reference in New Issue
Block a user