Changeset f87ea202 in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c


Ignore:
Timestamp:
2012-04-04T19:48:57Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8a4e79
Parents:
f1abd6e
Message:

rtc: it is sufficient to just read the second to understand if the reading is stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    rf1abd6e rf87ea202  
    278278
    279279                /* Now check if it is stable */
    280         } while( t->tm_sec  != rtc_register_read(rtc, RTC_SEC) ||
    281                  t->tm_min  != rtc_register_read(rtc, RTC_MIN) ||
    282                  t->tm_mday != rtc_register_read(rtc, RTC_DAY) ||
    283                  t->tm_mon  != rtc_register_read(rtc, RTC_MON) ||
    284                  t->tm_year != rtc_register_read(rtc, RTC_YEAR));
     280        } while(t->tm_sec  != rtc_register_read(rtc, RTC_SEC));
    285281
    286282        /* Check if the RTC is working in BCD mode */
Note: See TracChangeset for help on using the changeset viewer.