#include <FreeNOS/System.h>
#include <Macros.h>
#include <Types.h>
#include <Device.h>
Go to the source code of this file.
|
| #define | RTC_PORT(x) (0x70 + (x)) |
| | The base I/O port of the CMOS.
|
| |
| #define | RTC_SECONDS 0 |
| | Offset in the CMOS for the current number of seconds.
|
| |
| #define | RTC_MINUTES 2 |
| | Offset in the CMOS for the current number of minutes.
|
| |
| #define | RTC_HOURS 4 |
| | Offset in the CMOS for the current number of hours.
|
| |
| #define | RTC_DAY_OF_WEEK 6 |
| | Offset in the CMOS for the current day of the week.
|
| |
| #define | RTC_DAY_OF_MONTH 7 |
| | Offset in the CMOS for the current day of the month.
|
| |
| #define | RTC_MONTH 8 |
| | Offset in the CMOS for the current month.
|
| |
| #define | RTC_YEAR 9 |
| | Offset in the CMOS for the current year.
|
| |
| #define | CMOS_YEARS_OFFS 2000 |
| | Assume that a two-digit year is after 2000.
|
| |
| #define | RTC_STATUS_A 10 |
| | Offset in CMOS for the status A register.
|
| |
| #define | RTC_STATUS_B 11 |
| | Offset in CMOS for the status B register.
|
| |
| #define | RTC_UIP 0x80 |
| | Update in progress flag.
|
| |
| #define | RTC_DLS 0x01 |
| | Daylight savings flag.
|
| |
| #define | RTC_24H 0x02 |
| | 24 hour mode flag.
|
| |
| #define | RTC_BCD 0x04 |
| | Time/date in binary/BCD flag.
|
| |