Skip to content

Commit

Permalink
Merge pull request #15231 from jeromecoutant/PR_L1
Browse files Browse the repository at this point in the history
STM32L1: build error with STM32L151xB MCU
  • Loading branch information
0xc0170 authored Feb 16, 2022
2 parents 0325269 + c594d6e commit bf05317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions targets/TARGET_STM/rtc_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ void rtc_init(void)
error("RTC initialization failed\n");
}

#if !(TARGET_STM32F1) && !(TARGET_STM32F2)
#if !(TARGET_STM32F1) && !(TARGET_STM32F2) && !(STM32L151xB)
/* STM32F1 : there are no shadow registers */
/* STM32F2 : shadow registers can not be bypassed */
/* STM32F2/STM32L151xB : shadow registers can not be bypassed */
if (HAL_RTCEx_EnableBypassShadow(&RtcHandle) != HAL_OK) {
error("EnableBypassShadow error\n");
}
Expand Down

0 comments on commit bf05317

Please sign in to comment.