diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 17:41:06 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 17:41:06 +0000 |
commit | 3a0e138e7e3284b075b2b3f76a025933be93a2c5 (patch) | |
tree | ecd086ff22d6698075130aef47f99789f4ef0a88 /os | |
parent | c17fbc9313e4dfdfa29824d6fc0b4844df811dad (diff) | |
download | ChibiOS-3a0e138e7e3284b075b2b3f76a025933be93a2c5.tar.gz ChibiOS-3a0e138e7e3284b075b2b3f76a025933be93a2c5.tar.bz2 ChibiOS-3a0e138e7e3284b075b2b3f76a025933be93a2c5.zip |
RTC. Pointless lock removed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3593 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/RTCv1/rtc_lld.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.c b/os/hal/platforms/STM32/RTCv1/rtc_lld.c index bdbeb40e2..4bd9620e1 100644 --- a/os/hal/platforms/STM32/RTCv1/rtc_lld.c +++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.c @@ -226,10 +226,8 @@ void rtc_lld_get_time(RTCDriver *rtcp, RTCTime *timespec) { uint32_t time_frac;
READ_REGISTERS:
- chSysLock();
timespec->tv_sec = ((uint32_t)(RTC->CNTH) << 16) + RTC->CNTL;
time_frac = (((uint32_t)RTC->DIVH) << 16) + (uint32_t)RTC->DIVL;
- chSysUnlock();
/* If second counter updated between reading of integer and fractional parts
* we must reread both values. */
|