This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 63f081cbf2a76b1e00d087ce5416c8c29dfde068
Author: wangchengdong <[email protected]>
AuthorDate: Thu Nov 13 19:02:34 2025 +0800

    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 <[email protected]>
---
 arch/arm/src/lc823450/lc823450_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/lc823450/lc823450_timer.c 
b/arch/arm/src/lc823450/lc823450_timer.c
index badfa915958..7b636975584 100644
--- a/arch/arm/src/lc823450/lc823450_timer.c
+++ b/arch/arm/src/lc823450/lc823450_timer.c
@@ -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 */
 

Reply via email to