Barrelfish
Functions
rtc.c File Reference

Simple RTC hardware clock access. More...

Functions

void rtc_write_cmos (int addr, uint8_t b)
 This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values. More...
 
void rtc_print (struct rtc_time *t)
 Print current time. This function prints the given time. More...
 

Detailed Description

Simple RTC hardware clock access.

This file implements a simple driver for the hardware real time clock.

Function Documentation

void rtc_print ( struct rtc_time t)

Print current time. This function prints the given time.

Parameters
tpointer to a rtc_time struct
void rtc_write_cmos ( int  addr,
uint8_t  b 
)

This function reads the hardware clock. This function reads the hardware real time clock and fills the passed struct with the read values.

Parameters
tpointer to a rtc_time struct