Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h
new file mode 100644
index 000000000..56f2db35b
--- /dev/null
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2013 protos software gmbh (http://www.protos.de).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * CONTRIBUTORS:
+ * Thomas Schuetz (initial contribution)
+ *
+ *******************************************************************************/
+
+#ifndef _ETTIME_H_
+#define _ETTIME_H_
+
+/**
+ * etTime.h defines a generic interface for platform specific implementations of services around time
+ *
+ * */
+#include "etDatatypes.h"
+
+/**
+ * time definition composed by the number of seconds and the number of nano seconds
+ */
+typedef struct etTime {
+ etInt32 sec;
+ etInt32 nSec;
+} etTime;
+
+/**
+ * get current time from target hardware
+ * this is no real world clock time and date
+ * should be used only for relative time measurement
+ * @return current target time as etTime*
+ */
+void getTimeFromTarget(etTime *t);
+
+/*
+ * TODO: remove old API functions
+int isTimeGreaterThanActualTime(const etTime *t);
+etBool etTimer_executeNeeded(void);
+uint32 getTimeBaseNS(void);
+
+uint32 getTimeBaseUS(void);
+
+uint32 getTimeBaseMS(void);
+*/
+
+
+#endif /* _ETTIME_H_ */

Back to the top