/*#*
*#* $Log$
+ *#* Revision 1.28 2006/02/17 22:24:21 bernie
+ *#* Update POSIX timer emulator.
+ *#*
*#* Revision 1.27 2005/11/27 03:04:19 bernie
*#* Move test code to timer_test.c; Add OS_HOSTED support.
*#*
}
#endif
-#if CONFIG_TEST
-void timer_test(void);
-#endif /* CONFIG_TEST */
-
#ifndef CONFIG_TIMER_DISABLE_EVENTS
#include <mware/event.h>
/*#*
*#* $Log$
+ *#* Revision 1.4 2006/02/17 22:24:21 bernie
+ *#* Update POSIX timer emulator.
+ *#*
*#* Revision 1.3 2006/02/10 12:34:52 bernie
*#* Remove spurious EXTERN_C.
*#*
// Setup POSIX realtime timer to interrupt every 10ms.
static struct itimerval itv =
{
- { 0, 1000 }, /* it_interval */
- { 0, 1000 } /* it_value */
+ { 0, 1000 / TIMER_TICKS_PER_MSEC }, /* it_interval */
+ { 0, 1000 / TIMER_TICKS_PER_MSEC } /* it_value */
};
setitimer(ITIMER_REAL, &itv, NULL);
}