Skip to content

Commit bf05317

Browse files
authored
Merge pull request #15231 from jeromecoutant/PR_L1
STM32L1: build error with STM32L151xB MCU
2 parents 0325269 + c594d6e commit bf05317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/rtc_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ void rtc_init(void)
148148
error("RTC initialization failed\n");
149149
}
150150

151-
#if !(TARGET_STM32F1) && !(TARGET_STM32F2)
151+
#if !(TARGET_STM32F1) && !(TARGET_STM32F2) && !(STM32L151xB)
152152
/* STM32F1 : there are no shadow registers */
153-
/* STM32F2 : shadow registers can not be bypassed */
153+
/* STM32F2/STM32L151xB : shadow registers can not be bypassed */
154154
if (HAL_RTCEx_EnableBypassShadow(&RtcHandle) != HAL_OK) {
155155
error("EnableBypassShadow error\n");
156156
}

0 commit comments

Comments
 (0)