From 5eb391dbe18da32f153e1f69811d2d413353b152 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 23 Mar 2010 13:24:38 +0000 Subject: [PATCH] allows rtimer_clock_t to be defined from contiki-conf.h --- core/sys/rtimer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/sys/rtimer.h b/core/sys/rtimer.h index 3e1a56b1d..039a5b79a 100644 --- a/core/sys/rtimer.h +++ b/core/sys/rtimer.h @@ -48,13 +48,15 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: rtimer.h,v 1.9 2009/03/01 09:31:43 adamdunkels Exp $ + * @(#)$Id: rtimer.h,v 1.10 2010/03/23 13:24:38 fros4943 Exp $ */ #ifndef __RTIMER_H__ #define __RTIMER_H__ +#ifndef RTIMER_CLOCK_LT typedef unsigned short rtimer_clock_t; #define RTIMER_CLOCK_LT(a,b) ((signed short)((a)-(b)) < 0) +#endif /* RTIMER_CLOCK_LT */ /** * \brief Initialize the real-time scheduler.