#include <ubixos/types.h>
#include <sys/io.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | timespec |
struct | timeStruct |
struct | timeval |
struct | timezone |
Defines | |
#define | BCD_TO_BIN(val) ((val)=((val)&15) + ((val)>>4)*10) |
#define | DAY (24*HOUR) |
#define | HOUR (60*MINUTE) |
#define | MINUTE 60 |
#define | YEAR (365*DAY) |
Typedefs | |
typedef long | suseconds_t |
typedef __time_t | time_t |
Functions | |
int | gettimeofday (struct timeval *tp, struct timezone *tzp) |
int | time_init () |
uInt32 | timeMake (struct timeStruct *time) |
#define BCD_TO_BIN | ( | val | ) | ((val)=((val)&15) + ((val)>>4)*10) |
#define DAY (24*HOUR) |
#define HOUR (60*MINUTE) |
#define MINUTE 60 |
#define YEAR (365*DAY) |
typedef long suseconds_t |
int time_init | ( | ) |
Definition at line 56 of file time.c.
References BCD_TO_BIN, timeStruct::day, timeStruct::hour, kprintf(), timeStruct::min, timeStruct::mon, timeStruct::sec, systemVitals, timeCmosRead(), timeMake(), vitalsStruct::timeStart, and timeStruct::year.
Here is the call graph for this function:
uInt32 timeMake | ( | struct timeStruct * | time | ) |
Definition at line 92 of file time.c.
References DAY, timeStruct::day, HOUR, timeStruct::hour, timeStruct::min, MINUTE, timeStruct::mon, month, timeStruct::sec, timeStruct::year, and YEAR.
Referenced by time_init().