diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs index 4e1eb7aaa..d20929e17 100644 --- a/embassy-stm32/src/time_driver.rs +++ b/embassy-stm32/src/time_driver.rs @@ -295,7 +295,7 @@ macro_rules! impl_timer { type Interrupt = crate::interrupt::$inst; fn regs() -> TimGp16 { - crate::pac::$inst + crate::pac::timer::TimGp16(crate::pac::$inst.0) } }