mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
clock: update clock_synchronize() to support with time
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -316,7 +316,7 @@ static void stm32_idlepm(void)
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_RTC
|
||||
clock_synchronize();
|
||||
clock_synchronize(NULL);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ int stm32_ds1307_init(void)
|
||||
|
||||
/* Synchronize the system time to the RTC time */
|
||||
|
||||
clock_synchronize();
|
||||
clock_synchronize(NULL);
|
||||
|
||||
/* Now we are initialized */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user