00001 00037 #ifndef _TIME_H_ 00038 #define _TIME_H_ 00039 00040 /* Predefined times for prescale_opt in time.c. 00041 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 00042 to know how many 16ths of a second are in the time you want. (Time_desired * 16 = prescaler_opt) 00043 */ 00049 #define SIXTEENTH_SECOND 1 00050 00051 #define EIGTH_SECOND 2 00052 00053 #define QUARTER_SECOND 4 00054 00055 #define HALF_SECOND 8 00056 00057 #define SECOND 16 00058 00059 #define TWO_SECOND 32 00060 00061 #define FOUR_SECOND 64 00062 00064 void delay_ms(int ms) ; 00066 void rtc_init(int prescale_opt, void (*rtc_func)(void)); 00068 void rtc_reset(void); 00070 int rtc_get(void); 00071 00074 #endif 00075