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

"pico/stdlib.h" no longer provides set_sys_clock_khz (moved to "hardware/clocks.h" in sdk v2.0.0) #1806

Closed
toymil opened this issue Aug 12, 2024 · 3 comments · Fixed by #1808
Milestone

Comments

@toymil
Copy link

toymil commented Aug 12, 2024

Pico C/C++ SDK (pdf version, 2024-08-09, c274ff8-clean) list set_sys_clock_khz as a function included by "pico/stdlib.h". However, calling it will result in warning: implicit declaration of function 'set_sys_clock_khz'.

After a little digging it seems like the function was in "pico/stdlib.h" on sdk v1.5.1, but moved to "hardware/clocks.h" in sdk v2.0.0, and is not pulled in by "pico/stdlib.h".

@lurch
Copy link
Contributor

lurch commented Aug 12, 2024

Yes, see https://github.com/raspberrypi/pico-sdk/releases/tag/2.0.0 🙂

lurch added a commit that referenced this issue Aug 12, 2024
@lurch lurch linked a pull request Aug 12, 2024 that will close this issue
@lurch
Copy link
Contributor

lurch commented Aug 12, 2024

Ahh, this was actually a Doxygen-error, good catch!
#1808 will fix it.

@kilograham
Copy link
Contributor

merged into develop

@kilograham kilograham added this to the 2.0.1 milestone Aug 12, 2024
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

Successfully merging a pull request may close this issue.

3 participants