mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
arm/lc823450: Use clock_systime_ticks() to access system ticks
Use clock_get_sched_tclock_systime_ticks() to access system ticks
in order to fix the build error and improve code safety.
Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
1b58a449c5
commit
63f081cbf2
1 changed files with 1 additions and 1 deletions
|
|
@ -705,7 +705,7 @@ int up_rtc_gettime(struct timespec *tp)
|
|||
|
||||
/* Get the elapsed time */
|
||||
|
||||
elapsed = NSEC_PER_TICK * (uint64_t)g_system_ticks;
|
||||
elapsed = NSEC_PER_TICK * (uint64_t)clock_systime_ticks();
|
||||
|
||||
/* Add the timer fraction in nanoseconds */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue