-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/{gd32v,stm32}/periph/adc: make ADC clock setable #19630
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enoch247
requested review from
aabadie,
fjmolinas,
DipSwitch and
vincent-d
as code owners
May 19, 2023 17:35
github-actions
bot
added
Area: boards
Area: Board ports
Area: cpu
Area: CPU/MCU ports
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
labels
May 19, 2023
Enoch247
commented
May 19, 2023
maribu
reviewed
May 22, 2023
maribu
reviewed
May 22, 2023
maribu
changed the title
Increase adc speed
cpu/{gd32v,stm32}/periph/adc: make ADC clock setable
May 22, 2023
Sorry for the high latency. Feel free to squash. |
benpicco
added
the
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
label
Jul 11, 2023
This patch allows boards to select a max ADC clock speed. This could be handy if the board wants to clock the ADC differently according to the board's front end analog circuitry or MCU model's ADC capabilities.
This patch ensures that the ADC's max clock speed is not exceded.
This patch increases the board's ADC clock speed to the MCU's maximum speed.
Enoch247
force-pushed
the
increase-adc-speed
branch
from
May 11, 2024 02:07
aacbac3
to
4ed36bf
Compare
Sorry for the long delay. Trying to close out these old PRs. |
maribu
approved these changes
May 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thx :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: boards
Area: Board ports
Area: cpu
Area: CPU/MCU ports
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
This patch allows boards to declare their max ADC clock speed. As an example, the nucleo-f767zi declares it's ADC clock speed to be 36MHz (the max speed of the board's MCU).
Testing procedure
The change is minor and fairly safe. I verified that the macro works by declaring it to "foo" in
periph_conf.h
to trigger a compiler error. Beyond that, it is up to board maintainers to use the macro wisely.Issues/PRs references
This PR is based off #19629 and should be merged after.