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

Allow configuring cpu frequency through board_build.f_cpu #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mh-dm
Copy link
Contributor

@mh-dm mh-dm commented Jun 7, 2024

Allow configuring cpu frequency through the platformio board_build.f_cpu. Fixes the potential bug where someone might try using board_build.f_cpu resulting in an F_CPU that differs from the one actually configured (through LPC_SC->PLL0CFG). F_CPU is used in system/lpc176x/time.h for the delay* functions and is also widely used in projects like Marlin.

Currently only allows 120mhz (LPC1769), 100mhz and 96mhz.

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 this pull request may close these issues.

1 participant