time.h

Go to the documentation of this file.
00001 
00011 #ifndef _TIME_H_
00012 #define _TIME_H_
00013 
00014 /*      Predefined times for prescale_opt in time.c.
00015         To make you own, know that a pulse is 1/16th of a second. You cannot get less than this. To get more, you need
00016         to know how many 16ths of a second are in the time you want. (Time_desired * 16 = prescaler_opt)
00017 */
00023 #define SIXTEENTH_SECOND 1
00024 
00025 #define EIGTH_SECOND 2
00026 
00027 #define QUARTER_SECOND 4
00028 
00029 #define HALF_SECOND     8
00030 
00031 #define SECOND 16
00032 
00033 #define TWO_SECOND 32
00034 
00035 #define FOUR_SECOND 64
00036 
00038 void delay_ms(int ms) ;
00040 void rtc_init(int prescale_opt, void (*rtc_func)(void));
00042 void rtc_reset(void);
00044 int rtc_get(void);
00045 
00048 #endif
00049 

Generated on Wed Sep 5 16:33:32 2007 for libdragonfly by  doxygen 1.4.6