Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.c4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.h2
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.c4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.h2
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SubSys_Inst.h4
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogTest.c28
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogger.seq15
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/Runner.c25
-rw-r--r--examples/org.eclipse.etrice.generator.c.reference/tmp/msc.seq4
9 files changed, 57 insertions, 31 deletions
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.c b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.c
index aa5113e40..420d2ec62 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.c
@@ -7,8 +7,10 @@
#include "ReceiverManual.h"
+#include "etLogger.h"
-void ReceiverManual_ReceiveMessage(void* self, etInt16 localId, const etMessage*){
+
+void ReceiverManual_ReceiveMessage(void* self, etInt16 localId, const etMessage* msg){
etLogger_logInfoF("ReceiverManual_ReceiveMessage");
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.h b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.h
index a1d21b256..ac21f48db 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.h
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/ReceiverManual.h
@@ -29,7 +29,7 @@ struct ReceiverManual {
const ReceiverManual_const* constData;
};
-void ReceiverManual_ReceiveMessage(void* self, etInt16 localId, const etMessage*);
+void ReceiverManual_ReceiveMessage(void* self, etInt16 localId, const etMessage* msg);
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.c b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.c
index 0ba6959ee..6fd1af385 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.c
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.c
@@ -7,8 +7,10 @@
#include "SenderManual.h"
+#include "etLogger.h"
-void SenderManual_ReceiveMessage(void* self, etInt16 localId, const etMessage*){
+
+void SenderManual_ReceiveMessage(void* self, etInt16 localId, const etMessage* msg){
etLogger_logInfoF("SenderManual_ReceiveMessage");
}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.h b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.h
index b131993a7..87ee6e77a 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.h
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SenderManual.h
@@ -30,7 +30,7 @@ struct SenderManual {
const SenderManual_const* constData;
};
-void SenderManual_ReceiveMessage(void* self, etInt16 localId, const etMessage*);
+void SenderManual_ReceiveMessage(void* self, etInt16 localId, const etMessage* msg);
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SubSys_Inst.h b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SubSys_Inst.h
index 2feae0971..e9a22e4da 100644
--- a/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SubSys_Inst.h
+++ b/examples/org.eclipse.etrice.generator.c.reference/src-gen/cGenRef/SubSys_Inst.h
@@ -36,7 +36,7 @@ static SenderManual _SubSys_Sender;
static const ReceiverManual_const _SubSys_Receiver_const = {
&_SubSys_Receiver,
/* Ports: {myActor, etReceiveMessage, msgService, peerAddress, localId} */
- {&_SubSys_Receiver, NULL, &msgService_Thread1, 1, 123} /* Port dataIn */
+ {&_SubSys_Receiver, ReceiverManual_ReceiveMessage, &msgService_Thread1, 1, 123} /* Port dataIn */
};
static ReceiverManual _SubSys_Receiver = {&_SubSys_Receiver_const};
@@ -45,7 +45,7 @@ static ReceiverManual _SubSys_Receiver = {&_SubSys_Receiver_const};
static const SenderManual_const _SubSys_Sender_const = {
&_SubSys_Sender,
/* Ports: {myActor, etReceiveMessage, msgService, peerAddress, localId} */
- {&_SubSys_Sender, NULL, &msgService_Thread1, 1, 123} /* Port dataOut */
+ {&_SubSys_Sender, SenderManual_ReceiveMessage, &msgService_Thread1, 1, 123} /* Port dataOut */
};
static SenderManual _SubSys_Sender = {&_SubSys_Sender_const};
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogTest.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogTest.c
new file mode 100644
index 000000000..a7bc55404
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogTest.c
@@ -0,0 +1,28 @@
+
+#include "etLogger.h"
+#include "etMSCLogger.h"
+
+void Class2_ff(void) {
+ ET_MSC_LOGGER_SYNC_ENTRY("Class2", "ff")
+
+ ET_MSC_LOGGER_SYNC_EXIT()
+}
+
+void CLass1_f(void) {
+ ET_MSC_LOGGER_SYNC_ENTRY("Class1", "f")
+ Class2_ff();
+ ET_MSC_LOGGER_SYNC_EXIT()
+}
+
+//int main(void) {
+//
+// etLogger_logInfo("*** T H E B E G I N ***");
+//
+// ET_MSC_LOGGER_OPEN("main");
+// CLass1_f();
+// ET_MSC_LOGGER_CLOSE
+//
+// etLogger_logInfo("*** T H E E N D ***");
+//
+// return 0;
+//}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogger.seq b/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogger.seq
new file mode 100644
index 000000000..a40c67677
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/MSCLogger.seq
@@ -0,0 +1,15 @@
+! a
+! b
+0004 a ==> b
+! d
+0006 d ==> b
+0007 b >>> State1
+! c
+0009 b ==> c
+0010 b <== c
+0011 a <== b
+! /MainComponent
+! /MainComponent/services
+...
+0015 [Data=1111] /MainComponent >-- /MainComponent/services executeInitialTransition
+0016 [Data=1234] /MainComponent --> /MainComponent/services executeInitialTransition
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/Runner.c b/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/Runner.c
deleted file mode 100644
index c082e6398..000000000
--- a/examples/org.eclipse.etrice.generator.c.reference/src/test/experiments/Runner.c
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-#include "etLogger.h"
-
-#include "SubSystem.h"
-
-//int main(void) {
-//
-//
-// etLogger_logInfo("*** T H E B E G I N ***");
-//
-// SubSystem_init(); // lifecycle init
-// SubSystem_start(); // lifecycle start
-//
-// // run Scheduler
-// SubSystem_Scheduler();
-//
-// // end the lifecycle
-// SubSystem_stop(); // lifecycle stop
-// SubSystem_destroy(); // lifecycle destroy
-//
-// etLogger_logInfo("*** T H E E N D ***");
-//
-// return 0;
-//}
diff --git a/examples/org.eclipse.etrice.generator.c.reference/tmp/msc.seq b/examples/org.eclipse.etrice.generator.c.reference/tmp/msc.seq
new file mode 100644
index 000000000..ca38d9f30
--- /dev/null
+++ b/examples/org.eclipse.etrice.generator.c.reference/tmp/msc.seq
@@ -0,0 +1,4 @@
+main ==> Class1 f
+Class1 ==> Class2 ff
+Class1 <== Class2
+main <== Class1

Back to the top