hujun260 commented on code in PR #15324: URL: https://github.com/apache/nuttx/pull/15324#discussion_r1901463744
########## arch/arm/src/sam34/sam_rtc.c: ########## @@ -759,11 +764,14 @@ int up_rtc_gettime(struct timespec *tp) { /* This is a hack to emulate a high resolution rtc using the rtt */ + irqstate_t flags; uint32_t rtc_cal; uint32_t rtc_tim; uint32_t rtt_val; struct tm t; + flags = spin_lock_irqsave(&g_rtc_lock); Review Comment: rtc_dumpregs may print log -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org