diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 23:40:49 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 23:40:49 +0000 |
commit | 9d343de5f9f3620f8d915a2e6dadf874ef2d02cb (patch) | |
tree | 32df337929fe5f5fe90900250e09ac02d06599c3 /os/hal/platforms/STM32/RTCv1/rtc_lld.h | |
parent | 91fd67be1f1c806a0e4414dd8e03d72d34d37007 (diff) | |
download | ChibiOS-9d343de5f9f3620f8d915a2e6dadf874ef2d02cb.tar.gz ChibiOS-9d343de5f9f3620f8d915a2e6dadf874ef2d02cb.tar.bz2 ChibiOS-9d343de5f9f3620f8d915a2e6dadf874ef2d02cb.zip |
RTC. Driver broken.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3598 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/RTCv1/rtc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/RTCv1/rtc_lld.h | 24 |
1 files changed, 21 insertions, 3 deletions
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;
@@ -91,6 +97,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.
*/
struct RTCTime {
@@ -105,7 +123,7 @@ struct RTCTime { };
/**
- * @brief Structure representing an RTC alarm specification.
+ * @brief Structure representing an RTC alarm time stamp.
*/
struct RTCAlarm {
/**
|