Skip to content

Commit 2229039

Browse files
committed
[RTC] Fix issue with non STM32L1 ULPH
HAL_RTCEx_EnableBypassShadow is only available for STM32L1 ULPH Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 96fb0d8 commit 2229039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/stm32/rtc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void RTC_init(hourFormat_t format, sourceClock_t source)
358358
/*at 0:0:0*/
359359
RTC_SetTime(0,0,0,0,AM);
360360

361-
#if !defined(STM32F1xx) && !defined(STM32F2xx)
361+
#if !defined(STM32F1xx) && !defined(STM32F2xx) && !defined(STM32L1xx) || defined(STM32L1_ULPH)
362362
/* Enable Direct Read of the calendar registers (not through Shadow) */
363363
HAL_RTCEx_EnableBypassShadow(&RtcHandle);
364364
#endif /* !STM32F1xx && !STM32F2xx */

0 commit comments

Comments
 (0)