From 50dcee0c8a9010b0d7b50418e0250575e705af2f Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 6 Sep 2020 19:06:59 +0200 Subject: [PATCH] pins: reuse definitions --- src/pins.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pins.rs b/src/pins.rs index 54c2ce9..9caa9e2 100644 --- a/src/pins.rs +++ b/src/pins.rs @@ -206,7 +206,7 @@ impl Pins { fn setup_dac0( clocks: Clocks, spi4: SPI4, sclk: PE2, sync: PE4, sdin: PE6 - ) -> (Dac0Spi, PE4>) { + ) -> (Dac0Spi, ::DacSync) { let sclk = sclk.into_alternate_af5(); let sdin = sdin.into_alternate_af5(); let spi = Spi::spi4( @@ -224,7 +224,7 @@ impl Pins { fn setup_dac1( clocks: Clocks, spi5: SPI5, sclk: PF7, sync: PF6, sdin: PF9 - ) -> (Dac1Spi, PF6>) { + ) -> (Dac1Spi, ::DacSync) { let sclk = sclk.into_alternate_af5(); let sdin = sdin.into_alternate_af5(); let spi = Spi::spi5(