Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f6af126 in mainline


Ignore:
Timestamp:
2012-04-15T19:44:36Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
2703b824
Parents:
80d3f846
Message:

rtc: force the rtc to operate in 24h mode (it should be active by default).

File:
1 edited

Legend:

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

    r80d3f846 rf6af126  
    386386        reg_b = rtc_register_read(rtc, RTC_STATUS_B);
    387387
     388        /* Force 24h mode of operation */
     389        rtc_register_write(rtc, RTC_STATUS_B, reg_b | RTC_MASK_24H);
     390
    388391        /* Check if the rtc is working in bcd mode */
    389392        bcd_mode = !(reg_b & RTC_MASK_BCD);
Note: See TracChangeset for help on using the changeset viewer.