diff --git a/embassy-nrf/src/spis.rs b/embassy-nrf/src/spis.rs index 3f77c61d..e005f7b9 100644 --- a/embassy-nrf/src/spis.rs +++ b/embassy-nrf/src/spis.rs @@ -78,7 +78,7 @@ impl<'d, T: Instance> Spis<'d, T> { irq: impl Peripheral
+ 'd, cs: impl Peripheral
+ 'd, sck: impl Peripheral
+ 'd, - mosi: impl Peripheral
+ 'd, + miso: impl Peripheral
+ 'd, config: Config, ) -> Self { into_ref!(cs, sck, mosi); @@ -87,8 +87,8 @@ impl<'d, T: Instance> Spis<'d, T> { irq, cs.map_into(), sck.map_into(), + Some(miso.map_into()), None, - Some(mosi.map_into()), config, ) } @@ -98,7 +98,7 @@ impl<'d, T: Instance> Spis<'d, T> { irq: impl Peripheral
+ 'd, cs: impl Peripheral
+ 'd, sck: impl Peripheral
+ 'd, - miso: impl Peripheral
+ 'd, + mosi: impl Peripheral
+ 'd,
config: Config,
) -> Self {
into_ref!(cs, sck, miso);
@@ -107,8 +107,8 @@ impl<'d, T: Instance> Spis<'d, T> {
irq,
cs.map_into(),
sck.map_into(),
- Some(miso.map_into()),
None,
+ Some(mosi.map_into()),
config,
)
}
@@ -355,7 +355,7 @@ impl<'d, T: Instance> Spis<'d, T> {
}
}
- /// Reads data from the SPI bus without sending anything. Blocks until the buffer has been filled.
+ /// Reads data from the SPI bus without sending anything. Blocks until `cs` is deasserted.
/// Returns number of bytes read.
pub fn blocking_read(&mut self, data: &mut [u8]) -> Result