From c53c9a289fe493e88869456485c299ac5d6a730f Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 16 May 2020 01:09:38 +0200 Subject: [PATCH] pins: fix ref_pins --- src/pins.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pins.rs b/src/pins.rs index ae3d6b9..de4b965 100644 --- a/src/pins.rs +++ b/src/pins.rs @@ -35,7 +35,7 @@ impl ChannelPins for Channel0 { type DacSync = PE4>; type Shdn = PE10>; type RefAdc = Adc; - type RefPin = PA0; + type RefPin = PA4; } impl ChannelPins for Channel1 { @@ -43,7 +43,7 @@ impl ChannelPins for Channel1 { type DacSync = PF6>; type Shdn = PE15>; type RefAdc = Adc; - type RefPin = PA3; + type RefPin = PA5; } /// SPI peripheral used for communication with the ADC @@ -108,7 +108,7 @@ impl Pins { let _ = shdn0.set_low(); let mut ref0_adc = Adc::adc1(adc1, true, Default::default()); ref0_adc.enable(); - let ref0_pin = gpioa.pa0.into_analog(); + let ref0_pin = gpioa.pa4.into_analog(); let channel0 = ChannelPinSet { dac_spi: dac0_spi, dac_sync: dac0_sync, @@ -125,7 +125,7 @@ impl Pins { let _ = shdn1.set_low(); let mut ref1_adc = Adc::adc2(adc2, true, Default::default()); ref1_adc.enable(); - let ref1_pin = gpioa.pa3.into_analog(); + let ref1_pin = gpioa.pa5.into_analog(); let channel1 = ChannelPinSet { dac_spi: dac1_spi, dac_sync: dac1_sync,