hujun260 commented on code in PR #15267:
URL: https://github.com/apache/nuttx/pull/15267#discussion_r1891003123
##########
arch/risc-v/src/common/espressif/esp_rtc.c:
##########
@@ -474,10 +472,21 @@ static int esp_rtc_setalarm(struct rtc_lowerhalf_s *lower,
esp_hr_timer_start(cbinfo->alarm_hdl, cbinfo->deadline_us, false);
- spin_unlock_irqrestore(NULL, flags);
-
return OK;
}
+
+static int esp_rtc_setalarm(struct rtc_lowerhalf_s *lower,
+ const struct lower_setalarm_s *alarminfo)
+{
+ irqstate_t flags;
+ int ret;
+
+ flags = spin_lock_irqsave(&g_rtc_lowerhalf.lock);
Review Comment:
done
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]