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

Changeset cf72943 in mainline


Ignore:
Timestamp:
2012-04-14T16:45:13Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
a8a0d43
Parents:
1170ea3
Message:

rtc: fix RTC_MASK_UPDATE and add some comments

Location:
uspace/drv/time/cmos-rtc
Files:
2 edited

Legend:

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

    r1170ea3 rcf72943  
    3838
    3939#define RTC_STATUS_B    0x0B
    40 #define RTC_MASK_24H    0x02
    41 #define RTC_MASK_BCD    0x04
     40#define RTC_MASK_24H    0x02 /* 24h mode */
     41#define RTC_MASK_BCD    0x04 /* BCD mode */
    4242
    4343#define RTC_STATUS_D    0x0D
    44 #define RTC_BATTERY_OK  0x80
     44#define RTC_BATTERY_OK  0x80 /* Battery status */
    4545
    46 #define RTC_UPDATE      0x0A
    47 #define RTC_MASK_UPDATE 0x08
     46#define RTC_STATUS_A    0x0A
     47#define RTC_MASK_UPDATE 0x80 /* Update in progress */
    4848
    4949#endif
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r1170ea3 rcf72943  
    275275rtc_update_in_progress(rtc_t *rtc)
    276276{
    277         return rtc_register_read(rtc, RTC_UPDATE) & RTC_MASK_UPDATE;
     277        return rtc_register_read(rtc, RTC_STATUS_A) & RTC_MASK_UPDATE;
    278278}
    279279
Note: See TracChangeset for help on using the changeset viewer.