aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/RTCv1/rtc_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-07 07:06:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-07 07:06:49 +0000
commit618b341a054bb067c81fbf94343c28c021ae9665 (patch)
tree235bdc5839f97a27d0036deb682e52006e4530ad /os/hal/platforms/STM32/RTCv1/rtc_lld.h
parent9923c1663e9d5d7643833dde674ca912e82a1b26 (diff)
downloadChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.tar.gz
ChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.tar.bz2
ChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.zip
Removed unused stuff from RTCv1.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3753 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.h41
1 files changed, 4 insertions, 37 deletions
diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.h b/os/hal/platforms/STM32/RTCv1/rtc_lld.h
index a921babe0..1fb12d490 100644
--- a/os/hal/platforms/STM32/RTCv1/rtc_lld.h
+++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.h
@@ -81,11 +81,6 @@ 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.
*/
@@ -113,7 +108,7 @@ struct RTCCallbackConfig{
/**
* @brief Generic RTC callback pointer.
*/
- rtccb_t rtc_cb;
+ rtccb_t callback;
#endif /* RTC_SUPPORTS_CALLBACKS */
};
@@ -138,7 +133,7 @@ struct RTCAlarm {
/**
* @brief Seconds since UNIX epoch.
*/
- uint32_t tv_sec;
+ uint32_t tv_sec;
};
/**
@@ -148,40 +143,12 @@ struct RTCDriver{
/**
* @brief Callback pointer.
*/
- rtccb_t rtc_cb;
-};
-
-/**
- * @brief Structure representing an RTC periodic wakeup period.
- * @note On this platform it is pointless.
- */
-struct RTCWakeup {
+ rtccb_t callback;
};
/*===========================================================================*/
/* 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. */
@@ -203,7 +170,7 @@ extern "C" {
void rtc_lld_get_alarm(RTCDriver *rtcp,
rtcalarm_t alarm,
RTCAlarm *alarmspec);
- void rtc_lld_set_callback(RTCDriver *rtcp, rtccb_t cb_cfg);
+ void rtc_lld_set_callback(RTCDriver *rtcp, rtccb_t callback);
#ifdef __cplusplus
}
#endif