-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
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.
STM32LowPower/src/STM32LowPower.cpp
Line 193 in 35a49c4
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:
Line 54 in 35a49c4
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
Labels
enhancementNew feature or requestNew feature or request