From 7262c54f81caf7c547b0a5eb4a33018fa750bdfe Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 5 May 2021 10:38:57 -0400 Subject: [PATCH] Move exti to use the const addr. --- embassy-stm32/src/exti.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/exti.rs b/embassy-stm32/src/exti.rs index c952dccb..9b2370f3 100644 --- a/embassy-stm32/src/exti.rs +++ b/embassy-stm32/src/exti.rs @@ -17,7 +17,7 @@ use crate::peripherals; // TODO hardcoding peripheral addrs until we figure out how these are handled in the metapac const SYSCFG: pac::syscfg_f4::Syscfg = pac::syscfg_f4::Syscfg(0x40013800 as *mut _); -const EXTI: pac::exti::Exti = pac::exti::Exti(0x40013c00 as *mut _); +const EXTI: pac::exti::Exti = pac::exti::Exti(crate::chip::EXTI_BASE as *mut _); const EXTI_COUNT: usize = 16; const NEW_AW: AtomicWaker = AtomicWaker::new();