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

arch/stm32h7: add defines for USART clock selection #12845

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

julianoes
Copy link
Contributor

Summary

This adds the necessary defines to set the USARTs' kernel clock source selection.

This is required for a configuration where the bootloader (running before NuttX) changes the USARTs' clock selection, so they need to be restored on board init.

This is according to the reference manual RM0399 page 448.

Impact

This should not have an impact unless the defines are actually set in the board config.

Testing

Tested downstream in PX4 using CubePilot CubeOrange+ with ArduPilot bootloader (which sets the clock).

Sponsored by CubePilot.

FYI @davids5

This adds the necessary defines to set the USARTs' kernel clock source
selection.

This is required for a configuration where the bootloader (running
before NuttX) changes the USARTs' clock selection, so they need to be
restored on board init.

This is according to the reference manual RM0399 page 448.
@xiaoxiang781216 xiaoxiang781216 merged commit 75c65c7 into apache:master Aug 6, 2024
28 checks passed
@julianoes julianoes deleted the pr-uart-clock branch August 6, 2024 20:12
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.

2 participants