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/platforms/STM32/RTCv1/rtc_lld.h | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'os/hal/platforms/STM32/RTCv1/rtc_lld.h') diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.h b/os/hal/platforms/STM32/RTCv1/rtc_lld.h index e3ce0e365..6e682db61 100644 --- a/os/hal/platforms/STM32/RTCv1/rtc_lld.h +++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.h @@ -20,7 +20,7 @@ /** * @file STM32/RTCv1/rtc_lld.h - * @brief STM32 RTC subsystem low level driver header. + * @brief STM32F1xx RTC subsystem low level driver header. * * @addtogroup RTC * @{ @@ -67,12 +67,18 @@ /*===========================================================================*/ /** - * @brief Type of a structure representing an RTC alarm stamp. + * @brief Type of a structure representing an RTC alarm time stamp. */ typedef struct RTCAlarm RTCAlarm; +/** + * @brief Type of a structure representing an RTC callbacks config. + */ +typedef struct RTCCallbackConfig RTCCallbackConfig; + /** * @brief Type of an RTC alarm. + * @details Meaningful on platforms with more than 1 alarm comparator. */ typedef uint32_t rtcalarm_t; @@ -90,6 +96,18 @@ typedef enum { */ typedef void (*rtccb_t)(RTCDriver *rtcp, rtcevent_t event); +/** + * @brief Structure representing an RTC callbacks config. + */ +struct RTCCallbackConfig{ +#if RTC_SUPPORTS_CALLBACKS + /** + * @brief Generic RTC callback pointer. + */ + rtccb_t rtc_cb; +#endif /* RTC_SUPPORTS_CALLBACKS */ +}; + /** * @brief Structure representing an RTC time stamp. */ @@ -105,7 +123,7 @@ struct RTCTime { }; /** - * @brief Structure representing an RTC alarm specification. + * @brief Structure representing an RTC alarm time stamp. */ struct RTCAlarm { /** -- cgit v1.2.3