Turned rtimer_arch_now() from a (one line) function into a macro.

This commit is contained in:
oliverschmidt 2008-02-09 14:02:12 +00:00
parent 614fa668cd
commit a685acd23a
2 changed files with 5 additions and 9 deletions

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: rtimer-arch.c,v 1.2 2007/03/31 11:19:08 adamdunkels Exp $ * $Id: rtimer-arch.c,v 1.3 2008/02/09 14:02:12 oliverschmidt Exp $
*/ */
/** /**
@ -85,9 +85,3 @@ rtimer_arch_schedule(rtimer_clock_t t)
setitimer(ITIMER_REAL, &val, NULL); setitimer(ITIMER_REAL, &val, NULL);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
rtimer_clock_t
rtimer_arch_now(void)
{
return clock_time();
}
/*---------------------------------------------------------------------------*/

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: rtimer-arch.h,v 1.2 2007/11/17 10:47:22 adamdunkels Exp $ * $Id: rtimer-arch.h,v 1.3 2008/02/09 14:02:12 oliverschmidt Exp $
*/ */
/** /**
@ -41,8 +41,10 @@
#ifndef __RTIMER_ARCH_H__ #ifndef __RTIMER_ARCH_H__
#define __RTIMER_ARCH_H__ #define __RTIMER_ARCH_H__
#include "contiki-conf.h"
#define RTIMER_ARCH_SECOND 1000 #define RTIMER_ARCH_SECOND 1000
rtimer_clock_t rtimer_arch_now(void); #define rtimer_arch_now() clock_time()
#endif /* __RTIMER_ARCH_H__ */ #endif /* __RTIMER_ARCH_H__ */