mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
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 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) };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user