STM: Change embassy main to use TIM3 instead of TIM2

This commit is contained in:
Thales Fragoso 2021-07-04 15:51:10 -03:00
parent 8615ffb523
commit f5e6b37b52

View file

@ -12,8 +12,8 @@ pub fn generate(embassy_prefix: &ModulePrefix, config: syn::Expr) -> TokenStream
let p = #embassy_stm32_path::init(#config); let p = #embassy_stm32_path::init(#config);
let mut c = Clock::new( let mut c = Clock::new(
unsafe { <peripherals::TIM2 as embassy::util::Steal>::steal() }, unsafe { <peripherals::TIM3 as embassy::util::Steal>::steal() },
interrupt::take!(TIM2), interrupt::take!(TIM3),
); );
let clock = unsafe { make_static(&mut c) }; let clock = unsafe { make_static(&mut c) };