From f5e6b37b52fbb99406cc9ade8315ce9291cdb921 Mon Sep 17 00:00:00 2001 From: Thales Fragoso Date: Sun, 4 Jul 2021 15:51:10 -0300 Subject: [PATCH] STM: Change embassy main to use TIM3 instead of TIM2 --- embassy-macros/src/chip/stm32.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-macros/src/chip/stm32.rs b/embassy-macros/src/chip/stm32.rs index 9cd0111c..32a0a017 100644 --- a/embassy-macros/src/chip/stm32.rs +++ b/embassy-macros/src/chip/stm32.rs @@ -12,8 +12,8 @@ pub fn generate(embassy_prefix: &ModulePrefix, config: syn::Expr) -> TokenStream let p = #embassy_stm32_path::init(#config); let mut c = Clock::new( - unsafe { ::steal() }, - interrupt::take!(TIM2), + unsafe { ::steal() }, + interrupt::take!(TIM3), ); let clock = unsafe { make_static(&mut c) };