Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2012-01-31 21:25:45 +0000
committerThomas Schuetz2012-01-31 21:25:45 +0000
commit01de373df4a524f266ad4250ea54d9aa30299920 (patch)
treeea2f77be21334d9daaf0156986d25e1a3e5b0a6f /tests/org.eclipse.etrice.generator.c.tests
parent010759ae39852112ad533827402087c0e3daef59 (diff)
downloadorg.eclipse.etrice-01de373df4a524f266ad4250ea54d9aa30299920.tar.gz
org.eclipse.etrice-01de373df4a524f266ad4250ea54d9aa30299920.tar.xz
org.eclipse.etrice-01de373df4a524f266ad4250ea54d9aa30299920.zip
[generator.c] added const instances for ROM
Diffstat (limited to 'tests/org.eclipse.etrice.generator.c.tests')
-rw-r--r--tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.c21
-rw-r--r--tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.h50
2 files changed, 0 insertions, 71 deletions
diff --git a/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.c b/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.c
deleted file mode 100644
index 22bc04cec..000000000
--- a/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "CommunicationProtocol.h"
-
-/*--------------------- port classes */
-
-
-
-/*--------------------- debug helpers */
-
-/* TODO: make this optional or different for smaller footprint */
-/* message names as strings for debugging (generate MSC) */
-static const char* CommunicationProtocol_messageStrings[] = {"MIN", "receivedData","sendData", "sendData2", "MAX"};
-
-const char* CommunicationProtocol_getMessageString(int msg_id) {
- if (msg_id<CommunicationProtocol_MSG_MIN || msg_id>CommunicationProtocol_MSG_MAX+1){
- /* id out of range */
- return "Message ID out of range";
- }
- else{
- return CommunicationProtocol_messageStrings[msg_id];
- }
-}
diff --git a/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.h b/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.h
deleted file mode 100644
index 937c181f6..000000000
--- a/tests/org.eclipse.etrice.generator.c.tests/src-gen/cGenRef/CommunicationProtocol.h
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef _CommunicationProtocol_H_
-#define _CommunicationProtocol_H_
-
-#include "etDatatypes.h"
-
-
-#include "DataClass1.h"
-
-typedef struct {
-
-
-} CommunicationProtocol;
-
-/* message IDs */
-enum {
- CommunicationProtocol_MSG_MIN = 0,
- /* IDs for outgoing messages */
- CommunicationProtocol_OUT_receivedData = 1,
- /* IDs for incoming messages */
- CommunicationProtocol_IN_sendData = 2,
- CommunicationProtocol_IN_sendData2 = 3,
- /* error if msgID >= MSG_MAX */
- CommunicationProtocol_MSG_MAX = 4
-};
-
-/*--------------------- port classes */
-
-typedef struct etPort CommunicationProtocolPort;
-
-void CommunicationProtocolPort_MyOperation1(CommunicationProtocolPort* self, int a, int b);
-int CommunicationProtocolPort_MyOperation2(CommunicationProtocolPort* self);
-
-
-
-typedef struct etPort CommunicationProtocolConjPort;
-
-void CommunicationProtocolConjPort_MyOperation1(CommunicationProtocolConjPort* self, int a, int b);
-int CommunicationProtocolConjPort_MyOperation2(CommunicationProtocolConjPort* self);
-
-
-
-/*--------------------- debug helpers */
-
-/* get message string for message id */
-const char* CommunicationProtocol_getMessageString(int msg_id);
-
-
-
-#endif /* _CommunicationProtocol_H_ */
-

Back to the top