aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4/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/stm32l4/src/bin/button.rs
parentec5d44333ab6c0711424699efb2e782baf0124c7 (diff)
stm32: No need to enable GPIO clocks manually
Diffstat (limited to 'examples/stm32l4/src/bin/button.rs')
-rw-r--r--examples/stm32l4/src/bin/button.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/stm32l4/src/bin/button.rs b/examples/stm32l4/src/bin/button.rs
index c72463605..9d2fc2f21 100644
--- a/examples/stm32l4/src/bin/button.rs
+++ b/examples/stm32l4/src/bin/button.rs
@@ -28,15 +28,6 @@ fn main() -> ! {
28 pac::RCC.apb2enr().modify(|w| { 28 pac::RCC.apb2enr().modify(|w| {
29 w.set_syscfgen(true); 29 w.set_syscfgen(true);
30 }); 30 });
31
32 pac::RCC.ahb2enr().modify(|w| {
33 w.set_gpioaen(true);
34 w.set_gpioben(true);
35 w.set_gpiocen(true);
36 w.set_gpioden(true);
37 w.set_gpioeen(true);
38 w.set_gpiofen(true);
39 });
40 } 31 }
41 32
42 let p = embassy_stm32::init(Default::default()); 33 let p = embassy_stm32::init(Default::default());