diff options
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/rtc.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/os/hal/include/rtc.h b/os/hal/include/rtc.h index 1264c5bd8..ddb495205 100644 --- a/os/hal/include/rtc.h +++ b/os/hal/include/rtc.h @@ -85,15 +85,18 @@ extern "C" { void rtcInit(void);
void rtcSetTime(RTCDriver *rtcp, const RTCTime *timespec);
void rtcGetTime(RTCDriver *rtcp, RTCTime *timespec);
+
#if RTC_ALARMS > 0
void rtcSetAlarm(RTCDriver *rtcp,
rtcalarm_t alarm,
const RTCAlarm *alarmspec);
void rtcGetAlarm(RTCDriver *rtcp, rtcalarm_t alarm, RTCAlarm *alarmspec);
-#endif
+#endif /* RTC_ALARMS > 0 */
+
#if RTC_SUPPORTS_CALLBACKS
- void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback);
-#endif
+ void rtcSetCallback(RTCDriver *rtcp, RTCCallbackConfig *cb_cfg);
+#endif /* RTC_SUPPORTS_CALLBACKS */
+
#ifdef __cplusplus
}
#endif
|