Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

time_clock.c File Reference

#include <reg166.h>
#include <stddef.h>
#include <time.h>

Include dependency graph for time_clock.c:

Include dependency graph

Go to the source code of this file.

Defines

#define USE_T6_TIMER
#define LONGPERIOD
#define CPUTYPE   0x167
#define HASBCLKCON   0
#define BPSVAL   0x0000
#define INPUTFRQ   39
#define OTLVAL   0x0000
#define PRESCTXI   7
#define TIMERCOUNT   T6
#define TIMERHIGH   T5
#define TIMERCON   T6CON
#define TIMERHCON   T5CON
#define TXR   0x0040
#define TIMERCONINIT   OTLVAL|BPSVAL|TXR|PRESCTXI
#define TIMERHCONINIT   0x004f
#define TIMERCONMASK   0x00ff

Functions

time_t _time (time_t *pt)


Define Documentation

#define BPSVAL   0x0000
 

Definition at line 95 of file time_clock.c.

#define CPUTYPE   0x167
 

Definition at line 30 of file time_clock.c.

#define HASBCLKCON   0
 

Definition at line 43 of file time_clock.c.

#define INPUTFRQ   39
 

Definition at line 106 of file time_clock.c.

#define LONGPERIOD
 

Definition at line 27 of file time_clock.c.

#define OTLVAL   0x0000
 

Definition at line 107 of file time_clock.c.

#define PRESCTXI   7
 

Definition at line 109 of file time_clock.c.

#define TIMERCON   T6CON
 

Definition at line 123 of file time_clock.c.

Referenced by _time().

#define TIMERCONINIT   OTLVAL|BPSVAL|TXR|PRESCTXI
 

Definition at line 133 of file time_clock.c.

Referenced by _time().

#define TIMERCONMASK   0x00ff
 

Definition at line 135 of file time_clock.c.

#define TIMERCOUNT   T6
 

Definition at line 121 of file time_clock.c.

Referenced by _time().

#define TIMERHCON   T5CON
 

Definition at line 124 of file time_clock.c.

Referenced by _time().

#define TIMERHCONINIT   0x004f
 

Definition at line 134 of file time_clock.c.

Referenced by _time().

#define TIMERHIGH   T5
 

Definition at line 122 of file time_clock.c.

Referenced by _time().

#define TXR   0x0040
 

Definition at line 132 of file time_clock.c.

#define USE_T6_TIMER
 

Definition at line 26 of file time_clock.c.


Function Documentation

time_t _time time_t *  pt  ) 
 

Definition at line 139 of file time_clock.c.

References TIMERCON, TIMERCONINIT, TIMERCOUNT, TIMERHCON, TIMERHCONINIT, and TIMERHIGH.


Generated on Wed Oct 13 15:11:16 2004 for IsoAgLib by  doxygen 1.3.8-20040913