diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c index e342745604..9311bc1008 100644 --- a/components/drivers/rtc/rtc.c +++ b/components/drivers/rtc/rtc.c @@ -85,6 +85,11 @@ time_t time(time_t *t) return time_now; } +RT_WEAK clock_t clock(void) +{ + return rt_tick_get(); +} + /** * Set system date(time not modify). *