From 719cf5fa8d01d6660fa85708c03fcf3cdac8bf37 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 7 Mar 2009 10:54:51 +0000 Subject: Implemented handling for constant TIME_ZERO for timeout specifications. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@811 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/scheduler.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/scheduler.h b/src/include/scheduler.h index 9b16dccc9..c79f061f7 100644 --- a/src/include/scheduler.h +++ b/src/include/scheduler.h @@ -41,9 +41,13 @@ #define HIGHPRIO 127 /**< Highest user priority.*/ #define ABSPRIO 255 /**< Greatest possible priority.*/ +/** Zero time specification for all the syscalls with a timeout + specification.*/ +#define TIME_ZERO ((systime_t)0) + /** Infinite time specification for all the syscalls with a timeout specification.*/ -#define TIME_INFINITE 0 +#define TIME_INFINITE ((systime_t)-1) /** The priority of the first thread on the given ready list. */ #define firstprio(rlp) ((rlp)->p_next->p_prio) -- cgit v1.2.3