From 74560fa32a8f0ea0924a81e85360e79c94ddbf3d Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 19 七月 2019 16:38:08 +0800
Subject: [PATCH] 样机发货程序

---
 源码/核心板/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 39aa7da..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(10000); /* 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