Skip to content

Commit 4cefdd3

Browse files
committed
fix: enable peripheral bus clock when SRD domain is in DRUN
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent e2c157a commit 4cefdd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/STM32RTC.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,9 @@ void STM32RTC::setY2kEpoch(uint32_t ts)
915915
void STM32RTC::configForLowPower(Source_Clock source)
916916
{
917917
#if defined(HAL_PWR_MODULE_ENABLED)
918+
#ifdef __HAL_RCC_RTCAPB_CLKAM_ENABLE
919+
__HAL_RCC_RTCAPB_CLKAM_ENABLE();
920+
#endif
918921
if (!_configured) {
919922
_clockSource = source;
920923
// Enable RTC

0 commit comments

Comments
 (0)