-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: counter: stm32: Add support for HSE as RTC clock source #46605
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
Conversation
Add Kconfig options COUNTER_RTC_STM32_CLOCK_HSE and COUNTER_RTC_STM32_HSE_DIV to allow configuring HSE as the RTC clock source. Signed-off-by: Markus Fuchs <[email protected]>
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.
I see. As we're still running on Zephyr 2.7, I cannot provide a proper patch for that at the moment then. |
Ok, no problem, this is something that we'll address when possible. |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
There is a slight difference, the RTC clock selection is a 2-bit value of the BDCR RCC register (not CCIPR). |
| config COUNTER_RTC_STM32_HSE_DIV | ||
| int "HSE prescaler" | ||
| depends on COUNTER_RTC_STM32_CLOCK_HSE | ||
| default 0 |
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.
0 is not always the default, some stm32 devices like stm32F4 have a prescaler from 2 to 31 on the HSE clock, some others like the stm32wb or stm32L4/L5 have a fixed divider by 32 on the HSE clock
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
Superseded by #50104. Closing |
Add Kconfig options COUNTER_RTC_STM32_CLOCK_HSE and COUNTER_RTC_STM32_HSE_DIV
to allow configuring HSE as the RTC clock source.
Signed-off-by: Markus Fuchs [email protected]