Skip to content

Conversation

@erwango
Copy link
Member

@erwango erwango commented Oct 1, 2021

Timer STM32 LPTIM currently supports 2 clocks sources: LSE & LSI.
LSE (external) is defined as default but its availability depends
on board support package and then may not be available.

This ends up in situations where users have LSE implicitly selected
while no crystal is available on board, leading to non functional
LPTIM.

To avoid this situation, makes LSI clock, which is always available
(since internal to the SoC), the default LPTIM source clock.
Then, default case will be functional. Users will then be able to
select LSE if needed.

Signed-off-by: Erwan Gouriou [email protected]

Timer STM32 LPTIM currently supports 2 clocks sources: LSE & LSI.
LSE (external) is defined as default but its availability depends
on board support package and then may not be available.

This ends up in situations where users have LSE implicitly selected
while no crystal is available on board, leading to non functional
LPTIM.

To avoid this situation, makes LSI clock, which is always available
(since internal to the SoC), the default LPTIM source clock.
Then, default case will be functional. Users will then be able to
select LSE if needed.

Signed-off-by: Erwan Gouriou <[email protected]>
@erwango erwango requested review from ABOSTM and FRASTM as code owners October 1, 2021 12:56
@erwango erwango added this to the v3.0.0 milestone Oct 1, 2021
@github-actions github-actions bot added area: Timer Timer platform: STM32 ST Micro STM32 labels Oct 1, 2021
@erwango erwango requested a review from cfriedt October 4, 2021 07:46
@cfriedt cfriedt merged commit 6b0199a into zephyrproject-rtos:main Oct 4, 2021
@erwango erwango deleted the dev_lptim_lsi_lse branch January 19, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Timer Timer platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants