saramonteiro commented on a change in pull request #3794:
URL: https://github.com/apache/incubator-nuttx/pull/3794#discussion_r642420514
##########
File path: arch/risc-v/src/esp32c3/esp32c3_rtc.c
##########
@@ -1263,6 +1330,50 @@ static void IRAM_ATTR
esp32c3_rtc_clk_cpu_freq_to_pll_mhz(
ets_update_cpu_frequency(cpu_freq_mhz);
}
+#ifdef CONFIG_RTC_DRIVER
+
+/****************************************************************************
+ * Name: esp32c3_rt_cb_handler
+ *
+ * Description:
+ * RT-Timer service routine
+ *
+ * Input Parameters:
+ * arg - Information about the RT-Timer configuration.
+ *
+ * Returned Value:
+ * None
+ *
+ ****************************************************************************/
+
+static void IRAM_ATTR esp32c3_rt_cb_handler(FAR void *arg)
+{
+ FAR struct alm_cbinfo_s *cbinfo = (struct alm_cbinfo_s *)arg;
+ alm_callback_t cb;
+ FAR void *cb_arg;
+ int alminfo_id;
+
+ DEBUGASSERT(cbinfo != NULL);
+ alminfo_id = cbinfo->index;
+ DEBUGASSERT((RTC_ALARM0 <= alminfo_id) &&
+ (alminfo_id < RTC_ALARM_LAST));
+
+ if (cbinfo->ac_cb != NULL)
+ {
+ /* Alarm callback */
+
+ cb = cbinfo->ac_cb;
+ cb_arg = (FAR void *)cbinfo->ac_arg;
+
Review comment:
```suggestion
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]