|
PatchworkOS
|
Real Time Clock. More...
Macros | |
| #define | CMOS_ADDRESS 0x70 |
| CMOS address port. | |
| #define | CMOS_DATA 0x71 |
| CMOS data port. | |
Functions | |
| void | rtc_read (struct tm *time) |
| Reads the current time from the RTC. | |
Real Time Clock.
The RTC driver provides functions to read the current time from the CMOS RTC.
| void rtc_read | ( | struct tm * | time | ) |
Reads the current time from the RTC.
| time | Pointer to a struct tm to store the current time. If NULL, the function does nothing. |
Definition at line 15 of file rtc.c.
References bcd_to_bin(), cmos_read(), NULL, and time().
Referenced by timer_init().