kern

diff src/rtc.h @ 40:710739e33da8

- now read_rtc doesn't try to read weekday as it's probably wrong anyway, and doesn't set yearday either - mktime now fixes yearday and weekday - moved init_timer and init_rtc just before enabling the interrupts in main
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 12 Jun 2011 15:45:21 +0300
parents 2c401f69128e
children
line diff
     1.1 --- a/src/rtc.h	Sun Jun 12 01:46:53 2011 +0300
     1.2 +++ b/src/rtc.h	Sun Jun 12 15:45:21 2011 +0300
     1.3 @@ -1,6 +1,8 @@
     1.4  #ifndef _RTC_H_
     1.5  #define _RTC_H_
     1.6  
     1.7 +#include <time.h>
     1.8 +
     1.9  /* the time read from rtc during init */
    1.10  time_t start_time;
    1.11