Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.doc/html/etrice.html')
-rw-r--r--plugins/org.eclipse.etrice.doc/html/etrice.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/org.eclipse.etrice.doc/html/etrice.html b/plugins/org.eclipse.etrice.doc/html/etrice.html
index 763c40d5e..5502894e8 100644
--- a/plugins/org.eclipse.etrice.doc/html/etrice.html
+++ b/plugins/org.eclipse.etrice.doc/html/etrice.html
@@ -2937,7 +2937,6 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
<p>Once the model file is created and the Xtext nature is added, you can create the model as you did it for Java.
Creating the model is not the focus of this tutorial. Therefore copy and paste the following code into your model file. Optionally you can open and layout the diagrams.
Recognize the C specific parts:
- - Import CTypes instead of JavaTypes
- The action code contains C instead of Java. Later versions will contain a common action language, but for the moment the action language is target specific.
- The application must be shutdown on model level (see also
<span class="emphasis"><em>etRuntimeConfig.h</em></span>).
@@ -2945,7 +2944,7 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
<div class="literallayout">
<p>
<code class="code">RoomModel&nbsp;HelloWorldCModel&nbsp;{<br>
- import&nbsp;room.basic.types.c.*&nbsp;from&nbsp;"../../org.eclipse.etrice.modellib.c/model/CTypes.room"<br>
+ import&nbsp;room.basic.types.*&nbsp;from&nbsp;"../../org.eclipse.etrice.modellib.c/model/Types.room"<br>
SubSystemClass&nbsp;HelloWorldCSubSysClass&nbsp;{<br>
ActorRef&nbsp;HelloETriceTopRef:AHelloWorldCTop&nbsp;<br>
}<br>
@@ -3256,8 +3255,8 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
</div>
</div>
<p>The planed application should read a C source file and remove the comments. Therefore we need a file descriptor which is not part of the basic C types. The type for the file descriptor for MinGW is
- <span class="emphasis"><em>FILE</em></span>. To make this type available on the model level, you have to declare the type in CTypes.room. To not interfere with other models, make a copy of
- <span class="emphasis"><em>CTypes.room</em></span> from
+ <span class="emphasis"><em>FILE</em></span>. To make this type available on the model level, you have to declare the type in Types.room. To not interfere with other models, make a copy of
+ <span class="emphasis"><em>Types.room</em></span> from
<span class="emphasis"><em>org.eclipse.modellib.c</em></span> to your model folder.
</p>
<p>
@@ -3269,7 +3268,7 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
</p>
<p>Open
- <span class="emphasis"><em>Ctypes.room</em></span> and take a look at the declaration of
+ <span class="emphasis"><em>Types.room</em></span> and take a look at the declaration of
<span class="emphasis"><em>string</em></span> (last line) which is not a basic C type.
</p>
<p>
@@ -3285,7 +3284,7 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
<span class="emphasis"><em>generic</em></span>). With this mechanism you can define your own type system on model level and map the model types to specific target/platform types.
</p>
<p>Add the following line in
- <span class="emphasis"><em>CTypes.room</em></span>:
+ <span class="emphasis"><em>Types.room</em></span>:
</p>
<div class="literallayout">
<p>
@@ -3354,7 +3353,7 @@ carLights.setState(TrafficLight3.OFF);&nbsp;<br>
<div class="literallayout">
<p>
<code class="code">RoomModel&nbsp;RemoveComment&nbsp;{<br>
- import&nbsp;room.basic.types.c.*&nbsp;from&nbsp;"CTypes.room"<br>
+ import&nbsp;room.basic.types.*&nbsp;from&nbsp;"Types.room"<br>
SubSystemClass&nbsp;RemoveCommentSubSys&nbsp;{<br>
ActorRef&nbsp;Topref:ATop&nbsp;<br>
}<br>

Back to the top