-
Notifications
You must be signed in to change notification settings - Fork 3k
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
add RTC using HSE to target STM32F1 #15034
Conversation
@LukasKarel, thank you for your changes. |
targets/TARGET_STM/mbed_overrides.c
Outdated
@@ -292,7 +292,11 @@ void mbed_sdk_init() | |||
#if (MBED_CONF_TARGET_RTC_CLOCK_SOURCE == USE_RTC_CLK_HSE) | |||
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; | |||
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RTC; | |||
#if (!TARGET_STM32F1) |
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.
What about:
#if defined(RCC_RTCCLKSOURCE_HSE_DIVX)
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.
What about:
#if defined(RCC_RTCCLKSOURCE_HSE_DIVX)
This should work as well. I will change it asap.
bde271b
to
92991d8
Compare
Please rebase to the latest master to get github workflow update to fix basic checks |
92991d8
to
e4f0281
Compare
@0xc0170 done |
Ci started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
The clock tree of the STM32F1 allows to use RTC with HSE but this was not possible to configure with the mbed configuration system. This is now added accordingly.
Impact of changes
Migration actions required
Documentation
None.
Pull request type
Test results
Reviewers