Merge pull request #275 from thalesfragoso/main-tim3
STM: Change embassy main to use TIM3 instead of TIM2
This commit is contained in:
commit
d80e0b9e01
@ -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) };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user