summaryrefslogtreecommitdiff
path: root/bsp/gd32450z-eval
diff options
context:
space:
mode:
author7YZ7 <[email protected]>2023-04-18 10:26:23 +0800
committerGitHub <[email protected]>2023-04-17 22:26:23 -0400
commit501b22aabede2d4e179bfc47f3b75522e5933da4 (patch)
tree2a4c160aabc412aaded6b83ec22238bf37cab30c /bsp/gd32450z-eval
parent3f44132ade0d45e7851f46d6bb1241d10eccfff5 (diff)
[HUST CSE] Fix many abnormal symbols in annotations and format code
Diffstat (limited to 'bsp/gd32450z-eval')
-rw-r--r--bsp/gd32450z-eval/Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsp/gd32450z-eval/Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c b/bsp/gd32450z-eval/Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c
index 12ee6c3207..323da9f788 100644
--- a/bsp/gd32450z-eval/Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c
+++ b/bsp/gd32450z-eval/Libraries/GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c
@@ -68,7 +68,7 @@ ErrStatus rtc_deinit(void)
error_status = rtc_init_mode_enter();
if(ERROR != error_status){
- /* reset RTC_CTL register, but RTC_CTL[2��0] */
+ /* reset RTC_CTL register, but RTC_CTL[2:0] */
RTC_CTL &= (RTC_REGISTER_RESET | RTC_CTL_WTCS);
/* before reset RTC_TIME and RTC_DATE, BPSHAD bit in RTC_CTL should be reset as the condition.
in order to read calendar from shadow register, not the real registers being reset */
@@ -76,7 +76,7 @@ ErrStatus rtc_deinit(void)
RTC_DATE = RTC_DATE_RESET;
RTC_PSC = RTC_PSC_RESET;
- /* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
+ /* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do{
flag_status = RTC_STAT & RTC_STAT_WTWF;
@@ -1096,7 +1096,7 @@ ErrStatus rtc_wakeup_clock_set(uint8_t wakeup_clock)
/* disable the write protection */
RTC_WPK = RTC_UNLOCK_KEY1;
RTC_WPK = RTC_UNLOCK_KEY2;
- /* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2��0] */
+ /* only when RTC_CTL_WTEN=0 and RTC_STAT_WTWF=1 can write RTC_CTL[2:0] */
/* wait until the WTWF flag to be set */
do{
flag_status = RTC_STAT & RTC_STAT_WTWF;