RTC. Pointless lock removed.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3593 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
barthess 2011-12-11 17:41:06 +00:00
parent c17fbc9313
commit 3a0e138e7e
1 changed files with 0 additions and 2 deletions

View File

@ -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. */