Skip to content

Commit a4db938

Browse files
committed
STM32F1 - Rename RTC_LSI
1 parent 9053d3b commit a4db938

File tree

1 file changed

+2
-2
lines changed
  • hal/targets/hal/TARGET_STM/TARGET_STM32F1

1 file changed

+2
-2
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F1/rtc_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void rtc_init(void)
4646

4747
RtcHandle.Instance = RTC;
4848

49-
#if !DEVICE_RTC_LSI
49+
#if !RTC_LSI
5050
// Enable LSE Oscillator
5151
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
5252
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured!
@@ -94,7 +94,7 @@ void rtc_init(void)
9494

9595
void rtc_free(void)
9696
{
97-
#if DEVICE_RTC_LSI
97+
#if RTC_LSI
9898
// Enable Power clock
9999
__PWR_CLK_ENABLE();
100100

0 commit comments

Comments
 (0)