saramonteiro commented on a change in pull request #3794:
URL: https://github.com/apache/incubator-nuttx/pull/3794#discussion_r642419555
##########
File path: arch/risc-v/src/esp32c3/esp32c3_rtc.c
##########
@@ -349,6 +361,49 @@ struct esp32c3_rtc_sleep_config_s
uint32_t light_slp_reject : 1;
};
+#ifdef CONFIG_RTC_DRIVER
+
+#ifdef CONFIG_RTC_ALARM
+struct alm_cbinfo_s
+{
+ struct rt_timer_s *alarm_hdl; /* timer id point to here */
Review comment:
```suggestion
struct rt_timer_s *alarm_hdl; /* Timer id point to here */
```
##########
File path: arch/risc-v/src/esp32c3/esp32c3_rtc.c
##########
@@ -349,6 +361,49 @@ struct esp32c3_rtc_sleep_config_s
uint32_t light_slp_reject : 1;
};
+#ifdef CONFIG_RTC_DRIVER
+
+#ifdef CONFIG_RTC_ALARM
+struct alm_cbinfo_s
+{
+ struct rt_timer_s *alarm_hdl; /* timer id point to here */
+ volatile alm_callback_t ac_cb; /* Client callback function */
+ volatile FAR void *ac_arg; /* Argument to pass with the callback
function */
+ uint64_t deadline_us;
+ uint8_t index;
+};
+#endif
+
+struct esp32c3_rtc_backup_s
+{
+ uint64_t magic;
+ int64_t offset; /* offset time from RTC HW value */
Review comment:
```suggestion
int64_t offset; /* Offset time from RTC HW value */
```
--
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]