/*#*
*#* $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;
/*!
/*!
* Beep for the specified ms time
*/
-void buz_beep(time_t time)
+void buz_beep(mtime_t time)
{
cpuflags_t flags;
/*!
* 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;
/*#*
*#* $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
*#*
#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 */
/*#*
*#* $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
/*!
* 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 */
#else /* !CONFIG_KERN_SIGNALS */
- time_t start = timer_ticks();
+ mtime_t start = timer_ticks();
/* Busy wait */
while (timer_ticks() - start < time)