diff options
Diffstat (limited to 'c/src/exec/score/include')
-rw-r--r-- | c/src/exec/score/include/rtems/score/tod.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/c/src/exec/score/include/rtems/score/tod.h b/c/src/exec/score/include/rtems/score/tod.h index ff2864059c..36d0097669 100644 --- a/c/src/exec/score/include/rtems/score/tod.h +++ b/c/src/exec/score/include/rtems/score/tod.h @@ -236,6 +236,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 * * DESCRIPTION: |