stm32f1: rtc: use external crystal
This commit is contained in:
parent
6fb626d601
commit
43e3476a6d
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ static int rtc_set_time(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);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue