From c326623818f907e1d542d1cc336f9f8292e159f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 23 Jun 2020 14:13:55 +0200 Subject: [PATCH 1/3] dacs: clr_n high, ldac_n low --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 5b8492c..f92c862 100644 --- a/src/main.rs +++ b/src/main.rs @@ -325,6 +325,10 @@ const APP: () = { spi }; + let _dac_clr_n = gpioe.pe12.into_push_pull_output().set_high(); + let _dac0_ldac_n = gpioe.pe11.into_push_pull_output().set_low(); + let _dac1_ldac_n = gpioe.pe15.into_push_pull_output().set_low(); + let dac0_spi = { let spi_miso = gpioe .pe5 From 5c4dec0870eeb277a78d85809e84fa338537afd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 23 Jun 2020 14:16:33 +0200 Subject: [PATCH 2/3] dac clr/ldac: unwrap --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f92c862..678769f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -325,9 +325,9 @@ const APP: () = { spi }; - let _dac_clr_n = gpioe.pe12.into_push_pull_output().set_high(); - let _dac0_ldac_n = gpioe.pe11.into_push_pull_output().set_low(); - let _dac1_ldac_n = gpioe.pe15.into_push_pull_output().set_low(); + let _dac_clr_n = gpioe.pe12.into_push_pull_output().set_high().unwrap(); + let _dac0_ldac_n = gpioe.pe11.into_push_pull_output().set_low().unwrap(); + let _dac1_ldac_n = gpioe.pe15.into_push_pull_output().set_low().unwrap(); let dac0_spi = { let spi_miso = gpioe From d6de4b702857909efd6917307d8d21933eb3a8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 23 Jun 2020 14:55:59 +0200 Subject: [PATCH 3/3] fmt --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 678769f..01cd1f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -326,8 +326,10 @@ const APP: () = { }; let _dac_clr_n = gpioe.pe12.into_push_pull_output().set_high().unwrap(); - let _dac0_ldac_n = gpioe.pe11.into_push_pull_output().set_low().unwrap(); - let _dac1_ldac_n = gpioe.pe15.into_push_pull_output().set_low().unwrap(); + let _dac0_ldac_n = + gpioe.pe11.into_push_pull_output().set_low().unwrap(); + let _dac1_ldac_n = + gpioe.pe15.into_push_pull_output().set_low().unwrap(); let dac0_spi = { let spi_miso = gpioe