git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7954 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2015-05-07 12:28:53 +00:00
parent 6087f6342b
commit bd1bedbbf7
2 changed files with 2 additions and 1 deletions

View File

@ -392,7 +392,7 @@ void rtc_lld_get_time(RTCDriver *rtcp, RTCDateTime *timespec) {
/* If the RTC is capable of sub-second counting then the value is /* If the RTC is capable of sub-second counting then the value is
normalized in milliseconds and added to the time.*/ normalized in milliseconds and added to the time.*/
#if STM32_RTC_HAS_SUBSECONDS #if STM32_RTC_HAS_SUBSECONDS
subs = (((ssr << 16) / STM32_RTC_PRESS_VALUE) * 1000) >> 16; subs = (((STM32_RTC_PRESS_VALUE - 1U) - ssr) * 1000U) / STM32_RTC_PRESS_VALUE;
#else #else
subs = 0; subs = 0;
#endif /* STM32_RTC_HAS_SUBSECONDS */ #endif /* STM32_RTC_HAS_SUBSECONDS */

View File

@ -75,6 +75,7 @@
*** 3.0.0p4 *** *** 3.0.0p4 ***
- HAL: New DAC driver implementation for STM32F4xx. - HAL: New DAC driver implementation for STM32F4xx.
- HAL: Fixed STM32 RTC SSR Register Counts Down (bug #591).
- HAL: Fixed STM32 RTC PRER Register not being set in init (bug #590). - HAL: Fixed STM32 RTC PRER Register not being set in init (bug #590).
- HAL: Fixed STM32F334 does not have an EXT18 interrupt (bug #588). - HAL: Fixed STM32F334 does not have an EXT18 interrupt (bug #588).
- HAL: Fixed STM32L1xx USB is missing disconnect/connect macros (bug #587). - HAL: Fixed STM32L1xx USB is missing disconnect/connect macros (bug #587).