Fix pin refs

This commit is contained in:
Henrik Alsér 2022-11-22 02:13:03 +01:00
parent e6b9722a31
commit da9f82f507

View File

@ -80,7 +80,7 @@ impl<'d, T: Instance> Spis<'d, T> {
miso: impl Peripheral<P = impl GpioPin> + 'd, miso: impl Peripheral<P = impl GpioPin> + 'd,
config: Config, config: Config,
) -> Self { ) -> Self {
into_ref!(cs, sck, mosi); into_ref!(cs, sck, miso);
Self::new_inner( Self::new_inner(
spis, spis,
irq, irq,
@ -100,7 +100,7 @@ impl<'d, T: Instance> Spis<'d, T> {
mosi: impl Peripheral<P = impl GpioPin> + 'd, mosi: impl Peripheral<P = impl GpioPin> + 'd,
config: Config, config: Config,
) -> Self { ) -> Self {
into_ref!(cs, sck, miso); into_ref!(cs, sck, mosi);
Self::new_inner( Self::new_inner(
spis, spis,
irq, irq,