diff options
Diffstat (limited to 'os/hal/platforms/STM32F4xx/rtc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32F4xx/rtc_lld.h | 10 |
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.
*/
|