From 9d343de5f9f3620f8d915a2e6dadf874ef2d02cb Mon Sep 17 00:00:00 2001 From: barthess Date: Sun, 11 Dec 2011 23:40:49 +0000 Subject: RTC. Driver broken. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3598 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/rtc.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'os/hal/include') 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 -- cgit v1.2.3