aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-10-14 12:31:41 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-10-14 12:31:41 +0000
commitdbf616f8b33d53419b03d95197c5ceec0c3f0351 (patch)
tree0a0afb5db7681f7eac89026fc0770ddb80a6e62f /os/hal/templates
parent8ec0f1a75387fadd2b0179a02b9f7f81e37b2fe1 (diff)
downloadChibiOS-dbf616f8b33d53419b03d95197c5ceec0c3f0351.tar.gz
ChibiOS-dbf616f8b33d53419b03d95197c5ceec0c3f0351.tar.bz2
ChibiOS-dbf616f8b33d53419b03d95197c5ceec0c3f0351.zip
Changes to the RTC driver to use the persistent storage interface,
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12366 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/hal_rtc_lld.h38
1 files changed, 2 insertions, 36 deletions
diff --git a/os/hal/templates/hal_rtc_lld.h b/os/hal/templates/hal_rtc_lld.h
index 0c1131173..40ca8b1ef 100644
--- a/os/hal/templates/hal_rtc_lld.h
+++ b/os/hal/templates/hal_rtc_lld.h
@@ -80,17 +80,6 @@
/* Driver data structures and types. */
/*===========================================================================*/
-/**
- * @brief FileStream specific methods.
- */
-#define _rtc_driver_methods \
- _file_stream_methods
-
-/**
- * @brief Type of an RTC alarm number.
- */
-typedef uint32_t rtcalarm_t;
-
#if (RTC_SUPPORTS_CALLBACKS == TRUE) || defined(__DOXYGEN__)
/**
* @brief Type of an RTC event.
@@ -113,30 +102,11 @@ typedef struct {
uint32_t dummy;
} RTCAlarm;
-#if (RTC_HAS_STORAGE == TRUE) || defined(__DOXYGEN__)
/**
- * @extends FileStream
- *
- * @brief @p RTCDriver virtual methods table.
+ * @brief Implementation-specific @p RTCDriver fields.
*/
-struct RTCDriverVMT {
- _rtc_driver_methods
-};
-#endif
-
-/**
- * @brief Structure representing an RTC driver.
- */
-struct RTCDriver {
-#if (RTC_HAS_STORAGE == TRUE) || defined(__DOXYGEN__)
- /**
- * @brief Virtual Methods Table.
- */
- const struct RTCDriverVMT *vmt;
-#endif
- /* End of the mandatory fields.*/
+#define _rtc_lld_driver_fields \
uint32_t dummy;
-};
/*===========================================================================*/
/* Driver macros. */
@@ -150,10 +120,6 @@ struct RTCDriver {
extern RTCDriver RTCD1;
#endif
-#if (RTC_HAS_STORAGE == TRUE) && !defined(__DOXYGEN__)
-extern struct RTCDriverVMT _rtc_lld_vmt;
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif