Rename time_t to mtime_t.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Dec 2004 09:12:09 +0000 (09:12 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 8 Dec 2004 09:12:09 +0000 (09:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@308 38d2e660-2303-0410-9eaa-f027e97ec537

drv/buzzer.c
drv/buzzer.h
drv/timer.c

index dedc4fa81dc732fc242ea79d0fcfad789cf630e2..1d2c6e12bb2d07768a89e40849e014054b6399d7 100755 (executable)
@@ -16,6 +16,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.11  2004/12/08 09:11:53  bernie
+ *#* Rename time_t to mtime_t.
+ *#*
  *#* Revision 1.10  2004/10/03 18:38:51  bernie
  *#* Add missing AVR header; Fix header.
  *#*
 /* Local vars */
 static Timer buz_timer;
 static bool buz_timer_running;
-static time_t buz_repeat_interval;
-static time_t buz_repeat_duration;
+static mtime_t buz_repeat_interval;
+static mtime_t buz_repeat_duration;
 
 
 /*!
@@ -153,7 +156,7 @@ static void buz_softint(void)
 /*!
  * Beep for the specified ms time
  */
-void buz_beep(time_t time)
+void buz_beep(mtime_t time)
 {
        cpuflags_t flags;
 
@@ -177,7 +180,7 @@ void buz_beep(time_t time)
 /*!
  * Start buzzer repetition
  */
-void buz_repeat_start(time_t duration, time_t interval)
+void buz_repeat_start(mtime_t duration, mtime_t interval)
 {
        buz_repeat_interval = interval;
        buz_repeat_duration = duration;
index bf86a9b23fe313f48ffcd685f2b052597d4311bd..b94d25a699755a32ea884cedead74b6df8e1779b 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.6  2004/12/08 09:11:53  bernie
+ *#* Rename time_t to mtime_t.
+ *#*
  *#* Revision 1.5  2004/08/25 14:12:08  rasky
  *#* Aggiornato il comment block dei log RCS
  *#*
@@ -34,8 +37,8 @@
 #include <compiler.h>
 
 extern void buz_init(void);
-extern void buz_beep(time_t time);
-extern void buz_repeat_start(time_t duration, time_t interval);
+extern void buz_beep(mtime_t time);
+extern void buz_repeat_start(mtime_t duration, mtime_t interval);
 extern void buz_repeat_stop(void);
 
 #endif /* DRV_BUZZER_H */
index 60261e1f80328f928623947cdebfb53ed3502c45..00cd7cfd2a265e98432bb9d8e5019c72d1bf1a4b 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $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.
  *#*
 
 
 //! Master system clock (1ms accuracy)
-volatile time_t _clock;
+volatile mtime_t _clock;
 
 
 #ifndef CONFIG_TIMER_DISABLE_EVENTS
@@ -192,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 */
@@ -210,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)