From 3a0e138e7e3284b075b2b3f76a025933be93a2c5 Mon Sep 17 00:00:00 2001 From: barthess Date: Sun, 11 Dec 2011 17:41:06 +0000 Subject: [PATCH] RTC. Pointless lock removed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3593 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/RTCv1/rtc_lld.c | 2 -- 1 file changed, 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. */