Implement clock and uart configuration macros for the stm32f4#572
Merged
dgarske merged 7 commits intowolfSSL:masterfrom Jun 23, 2025
Merged
Implement clock and uart configuration macros for the stm32f4#572dgarske merged 7 commits intowolfSSL:masterfrom
dgarske merged 7 commits intowolfSSL:masterfrom
Conversation
dgarske
requested changes
May 20, 2025
This introduces the following configuration options to allow for easier support for boards using the stm32f4 MCU CLOCK_SPEED: This defines the clock speed in Hz STM32_PLLM: This defines the PLLM parameter in the pll clock setup STM32_PLLN: This defines the PLLN parameter in the pll clock setup STM32_PLLP: This defines the PLLP parameter in the pll clock setup STM32_PLLQ: This defines the PLLQ parameter in the pll clock setup
Modifies the stm32f4 hal to use the new config options to configure the PLL clock. This also modifies the stm32f4 uart driver to allow the user to specify which uart they want to use via the config option.
This replaces the base stm32f4 config with more board specific examples for the stm32f407 discovery kit and stm32f411 blackpill board.
Allows the pll clock to be configured using the config macros instead of being hard coded.
511197d to
055eb07
Compare
- Add the new CLOCK_SPEED and STM32_PLLx variables to the CMakeLists file - Rename references of 'stm32f4.config' to 'stm32f407-discovery.config' documentation and github workflow files.
055eb07 to
1b37378
Compare
dgarske
approved these changes
Jun 23, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Working on making the stm32f4 platform more configurable to allow easier porting to other boards. Right now this is just specific to the stm32f4 platform but can be easily implemented on all supported stm32 platforms