Skip to content

[document update request] RTC use NOT LSE BUT LSI clock source by default #99

Closed
@etakata

Description

@etakata

I guess that RTC used as Wakeup source will configure it to use NOT LSE clock source BUT LSI clock source, in the current implementation.

If we are using the HSE_CLOCK, this library forces to change the clock source to LSI_CLOCK.

clkSrc = (clkSrc == STM32RTC::HSE_CLOCK) ? STM32RTC::LSI_CLOCK : clkSrc;

The clock source is not changed anything if we are using the LSI_CLOCK or LSE_CLOCK.

So, I'd like to suggest to change from:

RTC used as Wakeup source will configure it to use LSE clock source even if another RTC clock source is selected.

to (for example):

RTC used as Wakeup source will configure it to use LSI clock source even if HSE clock source is selected.
The clock source is not changed anything if you are using the LSI or LSE clock source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions