stm32f1: rtc: use external crystal

master
S.J.R. van Schaik 7 years ago
parent 6fb626d601
commit 43e3476a6d
  1. 2
      source/platform/stm32f1/rtc.c

@ -35,7 +35,7 @@ static int rtc_set_time(struct tm *time)
int rtc_init(struct tm *time) int rtc_init(struct tm *time)
{ {
rtc_auto_awake(RCC_LSI, 0x7fff); rtc_auto_awake(RCC_LSE, 0x7fff);
rtc_set_time(time); rtc_set_time(time);
return 0; return 0;

Loading…
Cancel
Save