From 8e3c571a48a30e8c1bd07dca4786a53d7c9994f5 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期一, 19 十月 2020 10:49:54 +0800 Subject: [PATCH] 修改基站临近接收BUG --- 源码/核心板/Src/OnChipDevices/RTC.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/OnChipDevices/RTC.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/OnChipDevices/RTC.c" index d1ac0de..65ebfd8 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/OnChipDevices/RTC.c" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/OnChipDevices/RTC.c" @@ -11,7 +11,7 @@ RTC_ITConfig(RTC_FLAG_ALR,ENABLE); } -void RTC_Configuration(void) +void RTC_Configuration(uint16_t interval) { EXTI_InitTypeDef EXTI_InitStructure; @@ -51,7 +51,7 @@ RTC_ITConfig(RTC_IT_ALR,ENABLE); //?? RTC ??? RTC_WaitForLastTask(); /* Set RTC prescaler: set RTC period to 1sec */ - RTC_SetPrescaler(2000); /* RTC period = RTCCLK/RTC_PR = (32.768 KHz)/(32767+1) */ + RTC_SetPrescaler(interval); /* RTC period = RTCCLK/RTC_PR = (32.768 KHz)/(32767+1) */ /* Wait until last write operation on RTC registers has finished */ RTC_WaitForLastTask(); -- Gitblit v1.9.3