summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-16 13:39:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-11-21 16:24:22 +0100
commit154721c4348084e1b2ae96cd7f2ec824f27c345a (patch)
tree889634e37035a87f75a4b8647a382e4f8e791e91 /cpukit/score/src
parentbsp/mpc55xx: Update due to API changes (diff)
downloadrtems-154721c4348084e1b2ae96cd7f2ec824f27c345a.tar.bz2
score: Add _Timestamp_To_timeval()
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/ts64totimeval.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/score/src/ts64totimeval.c b/cpukit/score/src/ts64totimeval.c
new file mode 100644
index 0000000000..29bbb7895c
--- /dev/null
+++ b/cpukit/score/src/ts64totimeval.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2012 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Obere Lagerstr. 30
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
+#include <rtems/score/timestamp.h>
+
+#if CPU_TIMESTAMP_USE_INT64 == TRUE
+void _Timestamp64_To_timeval(
+ const Timestamp64_Control *_timestamp,
+ struct timeval *_timeval
+)
+{
+ _Timestamp64_implementation_To_timeval( _timestamp, _timeval );
+}
+#endif