Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with timer clocks #478

Open
MStarha opened this issue Jan 8, 2024 · 0 comments
Open

Problems with timer clocks #478

MStarha opened this issue Jan 8, 2024 · 0 comments

Comments

@MStarha
Copy link

MStarha commented Jan 8, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant