mirror of https://github.com/ARMmbed/mbed-os.git
Initialize State variable
parent
c571d8d6f8
commit
992722df2a
|
@ -64,6 +64,7 @@ void rtc_init(void)
|
||||||
HAL_PWR_EnableBkUpAccess();
|
HAL_PWR_EnableBkUpAccess();
|
||||||
|
|
||||||
RtcHandle.Instance = RTC;
|
RtcHandle.Instance = RTC;
|
||||||
|
RtcHandle.State = HAL_RTC_STATE_RESET;
|
||||||
|
|
||||||
#if !RTC_LSI
|
#if !RTC_LSI
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE;
|
||||||
|
|
Loading…
Reference in New Issue