Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2013-01-04 04:22:42 -0500
committerThomas Schuetz2013-01-04 04:22:42 -0500
commitec0a83ccb44871498c61260c961a911ec2663531 (patch)
tree8b33e00ce692fa01befa7e460eb5137aae79a3ce /runtime/org.eclipse.etrice.runtime.c/src
parent79a0e2b3c89bc76732d30fd1aa22bb38ba008394 (diff)
downloadorg.eclipse.etrice-ec0a83ccb44871498c61260c961a911ec2663531.tar.gz
org.eclipse.etrice-ec0a83ccb44871498c61260c961a911ec2663531.tar.xz
org.eclipse.etrice-ec0a83ccb44871498c61260c961a911ec2663531.zip
[runtime.c] first changes for multi threading and physical model
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/config/etRuntimeConfig.h2
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/config/etRuntimeConfig.h b/runtime/org.eclipse.etrice.runtime.c/src/config/etRuntimeConfig.h
index b1759ab47..9ae2781bb 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/config/etRuntimeConfig.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/config/etRuntimeConfig.h
@@ -29,5 +29,7 @@
#define MESSAGE_POOL_MAX 50
#define MESSAGE_BLOCK_SIZE 64
+/* enable multi threading (e.g. for protection of message queues) */
+#define ET_MULTI_THREADING
#endif /* ETGLOBALFLAGS_H_ */
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h b/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
index 07b6a7b45..10c4e98f6 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
@@ -78,11 +78,14 @@ typedef uint8 etUInt8;
typedef uint16 etUInt16;
typedef uint32 etUInt32;
-typedef bool etBool;
+typedef charPtr etCharPtr;
typedef float32 etFloat32;
typedef float64 etFloat64;
+typedef bool etBool;
+
+
typedef FILE* etFileHandle;
typedef int8 etAddressId;

Back to the top