We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcf6c1e + a26040e commit 7e25fddCopy full SHA for 7e25fdd
nrf-hal-common/src/spi.rs
@@ -172,13 +172,13 @@ where
172
#[cfg(not(feature = "51"))]
173
fn set_pins(spi: &mut T, pins: Pins) {
174
if let Some(ref pin) = pins.sck {
175
- spi.psel.sck.write(|w| unsafe { w.bits(pin.pin().into()) });
+ spi.psel.sck.write(|w| unsafe { w.bits(pin.psel_bits()) });
176
}
177
if let Some(ref pin) = pins.mosi {
178
- spi.psel.mosi.write(|w| unsafe { w.bits(pin.pin().into()) });
+ spi.psel.mosi.write(|w| unsafe { w.bits(pin.psel_bits()) });
179
180
if let Some(ref pin) = pins.miso {
181
- spi.psel.miso.write(|w| unsafe { w.bits(pin.pin().into()) });
+ spi.psel.miso.write(|w| unsafe { w.bits(pin.psel_bits()) });
182
183
184
0 commit comments