Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jung2015-02-03 09:19:28 +0000
committerThomas Jung2015-02-03 09:19:28 +0000
commit7615d4a1e3b763d5c0043c60949f5e97a47eb54a (patch)
treebe5bbd794e945f7e80ae11a2c496f93524baabf8
parentbe5627a137d381dc9949b1cb1c32abeeb7590525 (diff)
downloadorg.eclipse.etrice-7615d4a1e3b763d5c0043c60949f5e97a47eb54a.tar.gz
org.eclipse.etrice-7615d4a1e3b763d5c0043c60949f5e97a47eb54a.tar.xz
org.eclipse.etrice-7615d4a1e3b763d5c0043c60949f5e97a47eb54a.zip
modellib.c timingservice without printList
-rw-r--r--runtime/org.eclipse.etrice.modellib.c/model/TimingService.room22
1 files changed, 11 insertions, 11 deletions
diff --git a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
index c393663c9..f71a0a16f 100644
--- a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
+++ b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
@@ -25,7 +25,7 @@ RoomModel room.basic.service.timing {
"/*uc3*/"
}
ServiceImplementation of timer
- Attribute tcbs[30]:tcb = "{{0,0},{0,0},0,NULL}"
+ Attribute tcbs[30]:tcb
Attribute usedTcbsRoot : tcb ref
Attribute freeTcbsRoot : tcb ref
}
@@ -120,15 +120,15 @@ RoomModel room.basic.service.timing {
"}"
}
- Operation printList(){
- "etTimerControlBlock* temp=usedTcbsRoot;"
- " printf(\"list: \");"
- " while (temp!=0){"
- " printf(\"(%ld,%ld),\",temp->expTime.sec,temp->expTime.nSec);"
- " temp=temp->next;"
- " }"
- " printf(\"\\n\");"
- }
+// Operation printList(){
+// "etTimerControlBlock* temp=usedTcbsRoot;"
+// " printf(\"list: \");"
+// " while (temp!=0){"
+// " printf(\"(%ld,%ld),\",temp->expTime.sec,temp->expTime.nSec);"
+// " temp=temp->next;"
+// " }"
+// " printf(\"\\n\");"
+// }
StateMachine {
Transition tr0: initial -> Operational {
action {
@@ -269,7 +269,7 @@ RoomModel room.basic.service.timing {
Attribute status:int8="0"
}
}
- ExternalType tcb -> "etTimerControlBlock"
+ ExternalType tcb -> "etTimerControlBlock" default "{{0,0},{0,0},0,NULL}"
ExternalType targetTime -> "etTime" default "{0,0}"
}

Back to the top