Open MStarha opened 5 months ago
I want to get the configred clocks for timer TIM2 on my stm32h743vgt6. This let clk = ccdr.peripheral.TIM2::get_clk(&ccdr.clocks).unwrap().raw(); produces an error:
let clk = ccdr.peripheral.TIM2::get_clk(&ccdr.clocks).unwrap().raw();
error: expected `<` --> src/main.rs:176:41 | 176 | let clk = ccdr.peripheral.TIM2::get_clk(&ccdr.clocks).unwrap().raw(); | ^^^^^^^
I do have the use stm32h7xx_hal::timer::GetClk trait in scope. What is the problem?
stm32h7xx_hal::timer::GetClk
I want to get the configred clocks for timer TIM2 on my stm32h743vgt6. This
let clk = ccdr.peripheral.TIM2::get_clk(&ccdr.clocks).unwrap().raw();
produces an error:I do have the use
stm32h7xx_hal::timer::GetClk
trait in scope. What is the problem?