From 0a6fb223b6f6e7a71f733afd6dc65fb529818043 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 22 Apr 1997 20:19:25 +0000 Subject: Patch from Chris John to add use of a select statement in the unix port idle thread task. This should keep the entire application from blocking when any component does a blocking application. Also added TOD_MICROSECONDS_TO_TICKS. --- cpukit/score/include/rtems/score/tod.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cpukit/score/include') diff --git a/cpukit/score/include/rtems/score/tod.h b/cpukit/score/include/rtems/score/tod.h index ff2864059c..36d0097669 100644 --- a/cpukit/score/include/rtems/score/tod.h +++ b/cpukit/score/include/rtems/score/tod.h @@ -235,6 +235,21 @@ void _TOD_Tickle( #define TOD_MILLISECONDS_TO_MICROSECONDS(_ms) ((_ms) * 1000) +/* + * TOD_MICROSECONDS_TO_TICKS + * + * DESCRIPTION: + * + * This routine converts an interval expressed in microseconds to ticks. + * + * NOTE: + * + * This must be a macro so it can be used in "static" tables. + */ + +#define TOD_MICROSECONDS_TO_TICKS(_us) \ + ((_us) / _TOD_Microseconds_per_tick) + /* * TOD_MILLISECONDS_TO_TICKS * -- cgit v1.2.3