From 6e0eb33ea8ee85bbf11778796d5717b90076a3ac Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Thu, 2 Dec 2021 18:07:05 +0100 Subject: [PATCH] Downcast timer to GP16 for time drivers. --- embassy-stm32/src/time_driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/time_driver.rs b/embassy-stm32/src/time_driver.rs index 4e1eb7aa..d20929e1 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) } }