X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Ftimer.c;h=00cd7cfd2a265e98432bb9d8e5019c72d1bf1a4b;hb=f5c3dd208e34a35779cb1ec315998e0eb4582578;hp=2bffa92d9d3ffc6aa383495c2481d5852569c4b9;hpb=d897426d2f8435e4a46a3b9a6ff2d768392030b4;p=bertos.git diff --git a/drv/timer.c b/drv/timer.c index 2bffa92d..00cd7cfd 100755 --- a/drv/timer.c +++ b/drv/timer.c @@ -14,6 +14,12 @@ /*#* *#* $Log$ + *#* Revision 1.22 2004/12/08 09:12:09 bernie + *#* Rename time_t to mtime_t. + *#* + *#* Revision 1.21 2004/11/28 23:20:25 bernie + *#* Remove obsolete INITLIST macro. + *#* *#* Revision 1.20 2004/11/16 20:59:06 bernie *#* Add watchdog timer support. *#* @@ -117,7 +123,7 @@ //! Master system clock (1ms accuracy) -volatile time_t _clock; +volatile mtime_t _clock; #ifndef CONFIG_TIMER_DISABLE_EVENTS @@ -189,7 +195,7 @@ Timer *timer_abort(Timer *timer) /*! * Wait for the specified amount of time (expressed in ms) */ -void timer_delay(time_t time) +void timer_delay(mtime_t time) { #if defined(IRQ_GETSTATE) /* We shouldn't sleep with interrupts disabled */ @@ -207,7 +213,7 @@ void timer_delay(time_t time) #else /* !CONFIG_KERN_SIGNALS */ - time_t start = timer_ticks(); + mtime_t start = timer_ticks(); /* Busy wait */ while (timer_ticks() - start < time) @@ -309,7 +315,7 @@ void timer_init(void) TIMER_STROBE_INIT; #ifndef CONFIG_TIMER_DISABLE_EVENTS - INITLIST(&timers_queue); + LIST_INIT(&timers_queue); #endif _clock = 0;