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/src | |
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/src')
-rw-r--r-- | os/hal/src/rtc.c | 42 |
1 files changed, 36 insertions, 6 deletions
diff --git a/os/hal/src/rtc.c b/os/hal/src/rtc.c index dda5a9c95..f7ce21529 100644 --- a/os/hal/src/rtc.c +++ b/os/hal/src/rtc.c @@ -134,25 +134,55 @@ void rtcGetAlarm(RTCDriver *rtcp, }
#endif /* RTC_ALARMS > 0 */
+
+
+
+
+
+
+/**
+ * @brief Sets periodic wakeup period.
+ */
+void rtcSetPeriodicWakeup(RTCDriver *rtcp, RTCWakeup *wakeupspec) {
+ chDbgCheck((rtcp != NULL) && (wakeupspec != NULL), "rtcSetPeriodicWakeup");
+ rtc_lld_set_periodic_wakeup(rtcp, wakeupspec);
+}
+/**
+ * @brief Gets periodic wakeup period.
+ */
+void rtcGetPeriodicWakeup(RTCDriver *rtcp, RTCWakeup *wakeupspec) {
+ chDbgCheck((rtcp != NULL) && (wakeupspec != NULL), "rtcGetPeriodicWakeup");
+ rtc_lld_get_periodic_wakeup(rtcp, wakeupspec);
+}
+
+
+
+
+
+
+
#if RTC_SUPPORTS_CALLBACKS || defined(__DOXYGEN__)
/**
* @brief Enables or disables RTC callbacks.
- * @details This function enables or disables callbacks, use a @p NULL pointer
- * in order to disable a callback.
+ * @details TODO:
*
* @param[in] rtcp pointer to RTC driver structure
- * @param[in] callback callback function pointer or @p NULL
+ * @param[in] cb_cfg callback configuration struct
*
* @api
*/
-void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback) {
+void rtcSetCallback(RTCDriver *rtcp, RTCCallbackConfig *cb_cfg) {
- chDbgCheck((rtcp != NULL), "rtcSetCallback");
+ chDbgCheck(((rtcp != NULL) && (cb_cfg != NULL)), "rtcSetCallback");
- rtc_lld_set_callback(rtcp, callback);
+ rtc_lld_set_callback(rtcp, cb_cfg);
}
#endif /* RTC_SUPPORTS_CALLBACKS */
+
+
+
+
#endif /* HAL_USE_RTC */
/** @} */
|