Replace IPTR with iptr_t.
[bertos.git] / drv / timer.c
index 2bffa92d9d3ffc6aa383495c2481d5852569c4b9..00cd7cfd2a265e98432bb9d8e5019c72d1bf1a4b 100755 (executable)
 
 /*#*
  *#* $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.
  *#*
 
 
 //! 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;