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

hw/mcu/stm32: Add option to set HSE_VALUE from syscfg #3285

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Jul 5, 2024

This adds STM32_CLOCK_HSE_VALUE that can be used to
specify HSE frequency in mynewt style.
It could be always set w macro HSE_VALUE but this makes
it easier to manipulate this value in similar way
as most other parameters.

Signed-off-by: Jerzy Kasenberg jerzy.kasenberg@codecoup.pl

This adds STM32_CLOCK_HSE_VALUE that can be used to
specify HSE frequency in mynewt style.
It could be always set w macro HSE_VALUE but this makes
it easier to manipulate this value in similar way
as most other parameters.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
This modifies stm32xxx_hal_conf.h to use STM32_CLOCK_HSE_VALUE
from syscfg if specified.

This is done because evaluation boards often allow to modify
how HSE is connected with solder bridges.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
@kasjer kasjer added STM STM32 related BSP labels Jul 5, 2024
@kasjer kasjer merged commit 393dc5a into apache:master Jul 30, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSP STM STM32 related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants