From: bernie Date: Wed, 8 Dec 2004 09:12:09 +0000 (+0000) Subject: Rename time_t to mtime_t. X-Git-Tag: 1.0.0~933 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=807d2fde65d730b10f548cd3d77d69238e226133;p=bertos.git Rename time_t to mtime_t. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@308 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/buzzer.c b/drv/buzzer.c index dedc4fa8..1d2c6e12 100755 --- a/drv/buzzer.c +++ b/drv/buzzer.c @@ -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. *#* @@ -117,8 +120,8 @@ /* 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; diff --git a/drv/buzzer.h b/drv/buzzer.h index bf86a9b2..b94d25a6 100755 --- a/drv/buzzer.h +++ b/drv/buzzer.h @@ -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 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 */ diff --git a/drv/timer.c b/drv/timer.c index 60261e1f..00cd7cfd 100755 --- a/drv/timer.c +++ b/drv/timer.c @@ -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. *#* @@ -120,7 +123,7 @@ //! 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)