summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/support.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-25 15:10:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-26 11:55:47 +0200
commit88c74ab115b5135d4d93050596905d6ee573dd1e (patch)
tree395b852dd384040e20a6f178e913dddccac436bf /cpukit/rtems/include/rtems/rtems/support.h
parentscore: Create object implementation header (diff)
downloadrtems-88c74ab115b5135d4d93050596905d6ee573dd1e.tar.bz2
score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/include/rtems/rtems/support.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h
index e2e01b0b15..80da79bc58 100644
--- a/cpukit/rtems/include/rtems/rtems/support.h
+++ b/cpukit/rtems/include/rtems/rtems/support.h
@@ -19,6 +19,7 @@
#define _RTEMS_RTEMS_SUPPORT_H
#include <rtems/rtems/types.h>
+#include <rtems/config.h>
#ifdef __cplusplus
extern "C" {
@@ -32,14 +33,13 @@ extern "C" {
/**
* @brief Returns the number of micro seconds for the milli seconds value @a _ms.
*/
-#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) \
- TOD_MILLISECONDS_TO_MICROSECONDS(_ms)
+#define RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) ((uint32_t)(_ms) * 1000UL)
/**
* @brief Returns the number of ticks for the milli seconds value @a _ms.
*/
#define RTEMS_MILLISECONDS_TO_TICKS(_ms) \
- (TOD_MILLISECONDS_TO_MICROSECONDS(_ms) / \
+ (RTEMS_MILLISECONDS_TO_MICROSECONDS(_ms) / \
rtems_configuration_get_microseconds_per_tick())
/**