diff -r c74a73474cce -r bc000083297a include/timers_xeno/timerscfg.h --- 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 #include #include +#include +#include #include // 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