Merge pull request #275 from thalesfragoso/main-tim3

STM: Change embassy main to use TIM3 instead of TIM2
This commit is contained in:
Dario Nieuwenhuis 2021-07-05 01:42:43 +02:00 committed by GitHub
commit d80e0b9e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 { <peripherals::TIM2 as embassy::util::Steal>::steal() },
interrupt::take!(TIM2),
unsafe { <peripherals::TIM3 as embassy::util::Steal>::steal() },
interrupt::take!(TIM3),
);
let clock = unsafe { make_static(&mut c) };