Skip to content

Commit 895eb59

Browse files
fix comment RTC
1 parent 16ca860 commit 895eb59

File tree

1 file changed

+1
-1
lines changed
  • hardware/src/stm32f4xx

1 file changed

+1
-1
lines changed

hardware/src/stm32f4xx/rtc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void rtc_init(rtc_date_t *date, rtc_time_t *time) {
3030
return;
3131
}
3232
RCC_RTCCLKConfig(RCC_RTCCLKSource_HSE_Div8);
33-
//(1 Mhz / 125) = 7999 ticks per second
33+
//(1 Mhz / 125) = 8000 ticks per second
3434
def.RTC_AsynchPrediv = 124;
3535
def.RTC_SynchPrediv = 7999;
3636
RCC_RTCCLKCmd(ENABLE);

0 commit comments

Comments
 (0)