[DeviceDriver] Add clock() to rtc.c .

This commit is contained in:
armink 2018-02-16 13:01:03 +08:00
parent ce6b0a6efb
commit 47f389732d
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ time_t time(time_t *t)
return time_now; return time_now;
} }
RT_WEAK clock_t clock(void)
{
return rt_tick_get();
}
/** /**
* Set system date(time not modify). * Set system date(time not modify).
* *