--- a/include/timers_xeno/timerscfg.h Tue Apr 29 13:54:23 2008 +0200
+++ b/include/timers_xeno/timerscfg.h Fri May 02 17:30:37 2008 +0200
@@ -26,14 +26,16 @@
#include <native/task.h>
#include <native/timer.h>
#include <native/mutex.h>
+#include <native/cond.h>
+#include <native/sem.h>
#include <native/alarm.h>
// Time unit : ns
// Time resolution : 64bit (~584 years)
#define TIMEVAL RTIME
#define TIMEVAL_MAX ~(RTIME)0
-#define MS_TO_TIMEVAL(ms) (RTIME)ms*1000000
-#define US_TO_TIMEVAL(us) (RTIME)us*1000
+#define MS_TO_TIMEVAL(ms) rt_timer_ns2ticks((RTIME)ms*1000000)
+#define US_TO_TIMEVAL(us) rt_timer_ns2ticks((RTIME)us*1000)
#define TASK_HANDLE RT_TASK