diff options
author | Uladzimir Pylinski <barthess@yandex.ru> | 2015-03-27 13:18:08 +0000 |
---|---|---|
committer | Uladzimir Pylinski <barthess@yandex.ru> | 2015-03-27 13:18:08 +0000 |
commit | 9e9734dac9cd98dbef3adb4e1d879e86868bf076 (patch) | |
tree | cc4e0546c49165b18a861719225e958549b9a45f /os/hal/include/rtc.h | |
parent | 1d8b2028ac669b9409737c7a8797f281cd41a978 (diff) | |
download | ChibiOS-9e9734dac9cd98dbef3adb4e1d879e86868bf076.tar.gz ChibiOS-9e9734dac9cd98dbef3adb4e1d879e86868bf076.tar.bz2 ChibiOS-9e9734dac9cd98dbef3adb4e1d879e86868bf076.zip |
RTC. Improved function rtcConvertDateTimeToStructTm(). Now it can return milliseconds by optional pointer argument.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7819 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/rtc.h')
-rw-r--r-- | os/hal/include/rtc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/include/rtc.h b/os/hal/include/rtc.h index 97ff07b49..d282c2adf 100644 --- a/os/hal/include/rtc.h +++ b/os/hal/include/rtc.h @@ -128,7 +128,8 @@ extern "C" { void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback);
#endif
void rtcConvertDateTimeToStructTm(const RTCDateTime *timespec,
- struct tm *timp);
+ struct tm *timp,
+ uint32_t *tv_msec);
void rtcConvertStructTmToDateTime(const struct tm *timp,
uint32_t tv_msec,
RTCDateTime *timespec);
|