hujun260 commented on code in PR #15324: URL: https://github.com/apache/nuttx/pull/15324#discussion_r1901464038
########## arch/arm/src/sam34/sam_rtc.c: ########## @@ -654,7 +657,8 @@ int sam_rtc_setalarm(const struct timespec *tp, alarmcb_t callback) /* Is there already something waiting on the ALARM? */ - flags = enter_critical_section(); + flags = spin_lock_irqsave(&g_rtc_lock); + sched_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