aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4/src/bin/button_exti.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_exti.rs
parentec5d44333ab6c0711424699efb2e782baf0124c7 (diff)
stm32: No need to enable GPIO clocks manually
Diffstat (limited to 'examples/stm32l4/src/bin/button_exti.rs')
-rw-r--r--examples/stm32l4/src/bin/button_exti.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/stm32l4/src/bin/button_exti.rs b/examples/stm32l4/src/bin/button_exti.rs
index 6a06e4370..83537d92e 100644
--- a/examples/stm32l4/src/bin/button_exti.rs
+++ b/examples/stm32l4/src/bin/button_exti.rs
@@ -59,15 +59,6 @@ fn main() -> ! {
59 pac::RCC.apb2enr().modify(|w| { 59 pac::RCC.apb2enr().modify(|w| {
60 w.set_syscfgen(true); 60 w.set_syscfgen(true);
61 }); 61 });
62
63 pac::RCC.ahb2enr().modify(|w| {
64 w.set_gpioaen(true);
65 w.set_gpioben(true);
66 w.set_gpiocen(true);
67 w.set_gpioden(true);
68 w.set_gpioeen(true);
69 w.set_gpiofen(true);
70 });
71 } 62 }
72 63
73 unsafe { embassy::time::set_clock(&ZeroClock) }; 64 unsafe { embassy::time::set_clock(&ZeroClock) };