We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a5ea94 commit 56a6543Copy full SHA for 56a6543
bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
@@ -44,16 +44,10 @@ static time_t get_rtc_timestamp(void)
44
45
static rt_err_t set_rtc_time_stamp(time_t time_stamp)
46
{
47
- RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
48
RTC_TimeTypeDef RTC_TimeStruct = {0};
49
RTC_DateTypeDef RTC_DateStruct = {0};
50
struct tm *p_tm;
51
52
- HAL_PWR_EnableBkUpAccess();
53
- PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RTC;
54
- PeriphClkInitStruct.RTCClockSelection = RCC_RTCCLKSOURCE_LSE;
55
- HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
56
-
57
p_tm = localtime(&time_stamp);
58
if (p_tm->tm_year < 100)
59
0 commit comments