aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/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/stm32f4/src/bin/button_exti.rs
parentec5d44333ab6c0711424699efb2e782baf0124c7 (diff)
stm32: No need to enable GPIO clocks manually
Diffstat (limited to 'examples/stm32f4/src/bin/button_exti.rs')
-rw-r--r--examples/stm32f4/src/bin/button_exti.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/stm32f4/src/bin/button_exti.rs b/examples/stm32f4/src/bin/button_exti.rs
index 63c273b1a..bccd3870d 100644
--- a/examples/stm32f4/src/bin/button_exti.rs
+++ b/examples/stm32f4/src/bin/button_exti.rs
@@ -48,15 +48,6 @@ fn main() -> ! {
48 w.set_dbg_stop(true); 48 w.set_dbg_stop(true);
49 }); 49 });
50 50
51 pac::RCC.ahb1enr().modify(|w| {
52 w.set_gpioaen(true);
53 w.set_gpioben(true);
54 w.set_gpiocen(true);
55 w.set_gpioden(true);
56 w.set_gpioeen(true);
57 w.set_gpiofen(true);
58 });
59
60 // EXTI clock 51 // EXTI clock
61 pac::RCC.apb2enr().modify(|w| { 52 pac::RCC.apb2enr().modify(|w| {
62 w.set_syscfgen(true); 53 w.set_syscfgen(true);