aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin/button.rs
diff options
context:
space:
mode:
authorTimo Kröger <[email protected]>2021-07-23 14:24:38 +0200
committerTimo Kröger <[email protected]>2021-07-23 17:54:13 +0200
commit5ac91933ff0e4643823c77b357d90e82007fc9fb (patch)
tree5f252cde081a002f09659059bf746bf2896a3d16 /examples/stm32f4/src/bin/button.rs
parentec5d44333ab6c0711424699efb2e782baf0124c7 (diff)
stm32: No need to enable GPIO clocks manually
Diffstat (limited to 'examples/stm32f4/src/bin/button.rs')
-rw-r--r--examples/stm32f4/src/bin/button.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/stm32f4/src/bin/button.rs b/examples/stm32f4/src/bin/button.rs
index 901fce418..395ec4847 100644
--- a/examples/stm32f4/src/bin/button.rs
+++ b/examples/stm32f4/src/bin/button.rs
@@ -24,15 +24,6 @@ fn main() -> ! {
24 w.set_dbg_standby(true); 24 w.set_dbg_standby(true);
25 w.set_dbg_stop(true); 25 w.set_dbg_stop(true);
26 }); 26 });
27
28 pac::RCC.ahb1enr().modify(|w| {
29 w.set_gpioaen(true);
30 w.set_gpioben(true);
31 w.set_gpiocen(true);
32 w.set_gpioden(true);
33 w.set_gpioeen(true);
34 w.set_gpiofen(true);
35 });
36 } 27 }
37 28
38 let p = embassy_stm32::init(Default::default()); 29 let p = embassy_stm32::init(Default::default());