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

How to read cpu frequency? #25

Open
gulweb opened this issue Sep 14, 2022 · 0 comments
Open

How to read cpu frequency? #25

gulweb opened this issue Sep 14, 2022 · 0 comments

Comments

@gulweb
Copy link

gulweb commented Sep 14, 2022

F_CPU is a literal, defined in boards.txt. It could probably be calculated from the menu if there was an external clock entry
since all the dividers are setup correctly, making running @ 240 Mhz OK.

I cannot find any reference to SystemCoreClock, which should be a variable set when clock is configured or reconfigured.

Right now my board always reports a speed of 80 Mhz, and other variables controlled by F_CPU scale on that.
A manual edit of boards.txt of course fixes it.

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