stm32-rs / stm32h7xx-hal

Peripheral access API for STM32H7 series microcontrollers
BSD Zero Clause License
209 stars 99 forks source link

Problems with timer clocks #478

Open MStarha opened 5 months ago

MStarha commented 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:

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?