From 7fefb4c61261aacfd4794cb2140843b98571e929 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 8 Jun 2020 18:53:07 +0200 Subject: [PATCH] Simplifying GPIO API --- stabilizer/src/main.rs | 14 +++++++------- stm32h7xx-hal | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stabilizer/src/main.rs b/stabilizer/src/main.rs index 5aef04b..4a7b69e 100644 --- a/stabilizer/src/main.rs +++ b/stabilizer/src/main.rs @@ -159,13 +159,13 @@ const APP: () = { clocks.rb.d2ccip1r.modify(|_, w| w.spi123sel().pll2_p().spi45sel().pll2_q()); - let gpioa = dp.GPIOA.split(&mut clocks.ahb4); - let gpiob = dp.GPIOB.split(&mut clocks.ahb4); - let gpioc = dp.GPIOC.split(&mut clocks.ahb4); - let gpiod = dp.GPIOD.split(&mut clocks.ahb4); - let gpioe = dp.GPIOE.split(&mut clocks.ahb4); - let gpiof = dp.GPIOF.split(&mut clocks.ahb4); - let gpiog = dp.GPIOG.split(&mut clocks.ahb4); + let gpioa = dp.GPIOA.split(&mut clocks); + let gpiob = dp.GPIOB.split(&mut clocks); + let gpioc = dp.GPIOC.split(&mut clocks); + let gpiod = dp.GPIOD.split(&mut clocks); + let gpioe = dp.GPIOE.split(&mut clocks); + let gpiof = dp.GPIOF.split(&mut clocks); + let gpiog = dp.GPIOG.split(&mut clocks); let afe1 = { let a0_pin = gpiof.pf2.into_push_pull_output(); diff --git a/stm32h7xx-hal b/stm32h7xx-hal index 2236b57..d79cb00 160000 --- a/stm32h7xx-hal +++ b/stm32h7xx-hal @@ -1 +1 @@ -Subproject commit 2236b578b48aa195679dd65515f595f491f88513 +Subproject commit d79cb0015a6f0cbb819907efe3a817f7dce14bab