This commit is contained in:
qiyongshuang
2024-11-11 14:32:11 +08:00
parent c4c38f507e
commit 961943f623
452 changed files with 9316 additions and 862 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
* File Name : main.c
* Author : WCH
* Version : V1.0.0
* Date : 2024/02/22
* Date : 2024/07/18
* Description : Main program body.
*********************************************************************************
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
@@ -185,6 +185,7 @@ u8 RTC_Init(void)
u8 temp = 0;
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE);
PWR_BackupAccessCmd(ENABLE);
RTC_ClearITPendingBit(RTC_IT_SEC);
/* Is it the first configuration */
@@ -358,7 +359,6 @@ u8 RTC_Get(void)
temp -= 366;
else
{
temp1++;
break;
}
}