aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F4xx/rtc_lld.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-09 13:58:19 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-09 13:58:19 +0000
commite7e63d88dbe7eb57e8d13236e4da772d7fa2a912 (patch)
tree86ec800b96e2b0ad84e35f795bc5d6d638c12605 /os/hal/platforms/STM32F4xx/rtc_lld.h
parentda68de0d34eaeeb4f0638c64b661c38c7f06b871 (diff)
parent28cb4b4849c6e124baed09bdb4753d7b87a47483 (diff)
downloadChibiOS-e7e63d88dbe7eb57e8d13236e4da772d7fa2a912.tar.gz
ChibiOS-e7e63d88dbe7eb57e8d13236e4da772d7fa2a912.tar.bz2
ChibiOS-e7e63d88dbe7eb57e8d13236e4da772d7fa2a912.zip
RTC. Code compiles but not tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3588 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F4xx/rtc_lld.h')
-rw-r--r--os/hal/platforms/STM32F4xx/rtc_lld.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32F4xx/rtc_lld.h b/os/hal/platforms/STM32F4xx/rtc_lld.h
index e3ce0e365..65eed6781 100644
--- a/os/hal/platforms/STM32F4xx/rtc_lld.h
+++ b/os/hal/platforms/STM32F4xx/rtc_lld.h
@@ -95,15 +95,17 @@ typedef void (*rtccb_t)(RTCDriver *rtcp, rtcevent_t event);
*/
struct RTCTime {
/**
- * @brief Seconds since UNIX epoch.
+ * @brief RTC date register in BCD format.
*/
- uint32_t tv_sec;
+ uint32_t tv_date;
/**
- * @brief Fractional part.
+ * @brief RTC time register in BCD format.
*/
- uint32_t tv_msec;
+ uint32_t tv_time;
};
+
+
/**
* @brief Structure representing an RTC alarm specification.
*/