aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/RTCv1
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-15 20:49:24 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-15 20:49:24 +0000
commit9a98744b28ecfda0d78d5983e3a2d264c36bcec7 (patch)
treefe7dd0f7dad67a0d18c5693786f4c32594c8a962 /os/hal/platforms/STM32/RTCv1
parent124a432b0ed05568381f2bf6930a86a767f85ea6 (diff)
downloadChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.tar.gz
ChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.tar.bz2
ChibiOS-9a98744b28ecfda0d78d5983e3a2d264c36bcec7.zip
RTC. Testhal works on F4x, compiles (but not deeply tested) on F1x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3615 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/RTCv1')
-rw-r--r--os/hal/platforms/STM32/RTCv1/rtc_lld.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.h b/os/hal/platforms/STM32/RTCv1/rtc_lld.h
index b49031126..9237e4dc8 100644
--- a/os/hal/platforms/STM32/RTCv1/rtc_lld.h
+++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.h
@@ -77,6 +77,11 @@ typedef struct RTCAlarm RTCAlarm;
typedef struct RTCCallbackConfig RTCCallbackConfig;
/**
+ * @brief Type of a structure representing an RTC wakeup period.
+ */
+typedef struct RTCWakeup RTCWakeup;
+
+/**
* @brief Type of an RTC alarm.
* @details Meaningful on platforms with more than 1 alarm comparator.
*/
@@ -142,9 +147,37 @@ struct RTCDriver{
rtccb_t rtc_cb;
};
+/**
+ * @brief Structure representing an RTC periodic wakeup period.
+ * @note On this platform it is pointless.
+ */
+struct RTCWakeup {
+};
+
/*===========================================================================*/
/* Driver macros. */
/*===========================================================================*/
+/**
+ * @brief Gets time of periodic wakeup.
+ *
+ * @note On this platform function is pointless.
+ * There is no possibilities to change period on this platform.
+ * It always equal to 1 second.
+ *
+ * @notapi
+ */
+#define rtc_lld_set_periodic_wakeup(rtcp, wakeupspec){(void)wakeupspec;}
+
+/**
+ * @brief Gets time of periodic wakeup.
+ *
+ * @note On this platform function is pointless.
+ * There is no possibilities to change period on this platform.
+ * It always equal to 1 second.
+ *
+ * @notapi
+ */
+#define rtc_lld_get_periodic_wakeup(rtcp, wakeupspec){(void)wakeupspec;}
/*===========================================================================*/
/* External declarations. */