aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/exti.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-09-15 18:41:33 -0500
committerxoviat <[email protected]>2023-09-15 18:41:33 -0500
commit6da75ea285482bd950b04ae00dde25303f160705 (patch)
tree724ba3dced83647a94aee34f73ddb11bca90b6ae /embassy-stm32/src/exti.rs
parent5a158b94bde3a5fee096be213d2afede06d9f019 (diff)
stm32: rtc/low-power cleanup
Diffstat (limited to 'embassy-stm32/src/exti.rs')
-rw-r--r--embassy-stm32/src/exti.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/exti.rs b/embassy-stm32/src/exti.rs
index 925cf39be..bd4bab1f8 100644
--- a/embassy-stm32/src/exti.rs
+++ b/embassy-stm32/src/exti.rs
@@ -39,6 +39,9 @@ fn exticr_regs() -> pac::afio::Afio {
39} 39}
40 40
41pub unsafe fn on_irq() { 41pub unsafe fn on_irq() {
42 #[cfg(feature = "low-power")]
43 crate::low_power::on_wakeup_irq();
44
42 #[cfg(not(any(exti_c0, exti_g0, exti_l5, exti_u5, exti_h5, exti_h50)))] 45 #[cfg(not(any(exti_c0, exti_g0, exti_l5, exti_u5, exti_h5, exti_h50)))]
43 let bits = EXTI.pr(0).read().0; 46 let bits = EXTI.pr(0).read().0;
44 #[cfg(any(exti_c0, exti_g0, exti_l5, exti_u5, exti_h5, exti_h50))] 47 #[cfg(any(exti_c0, exti_g0, exti_l5, exti_u5, exti_h5, exti_h50))]