Skip to content

Implement clock and uart configuration macros for the stm32f4#572

Merged
dgarske merged 7 commits intowolfSSL:masterfrom
AlexLanzano:stm32f411-support
Jun 23, 2025
Merged

Implement clock and uart configuration macros for the stm32f4#572
dgarske merged 7 commits intowolfSSL:masterfrom
AlexLanzano:stm32f411-support

Conversation

@AlexLanzano
Copy link
Member

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

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.
- 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.
@AlexLanzano AlexLanzano marked this pull request as ready for review June 22, 2025 16:16
@AlexLanzano AlexLanzano requested a review from dgarske June 22, 2025 16:16
@dgarske dgarske merged commit 865c681 into wolfSSL:master Jun 23, 2025
261 checks passed
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.

4 participants