zhyinch
2022-06-04 0f9a5a119401d9e08cefc4b9cb7f700988a69abe
源码/核心板/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(40000); /* 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();