Fixed slavebootup bug in generated code.
authoretisserant
Wed, 25 Jun 2008 17:36:09 +0200
changeset 174 dc81d1d0f463
parent 173 2a9c4eec8645
child 175 b75983a6608b
Fixed slavebootup bug in generated code.
plugins/canfestival/canfestival.py
plugins/canfestival/cf_runtime.c
--- a/plugins/canfestival/canfestival.py	Wed Jun 25 17:34:57 2008 +0200
+++ b/plugins/canfestival/canfestival.py	Wed Jun 25 17:36:09 2008 +0200
@@ -275,7 +275,8 @@
                        "nodes_close" : "",
                        "nodes_send_sync" : "",
                        "nodes_proceed_sync" : "",
-                       "slavebootups" : ""}
+                       "slavebootups" : "",
+                       "slavebootup_register" : ""}
         for child in self.IECSortedChilds():
             childlocstr = "_".join(map(str,child.GetCurrentLocation()))
             nodename = "OD_%s" % childlocstr
@@ -316,6 +317,8 @@
                 format_dict["slavebootups"] += """ )
         Master_post_SlaveBootup(d,nodeId);
 }
+"""
+                format_dict["slavebootup_register"] += """
 %s_Data.post_SlaveBootup = %s_post_SlaveBootup;
 """%(nodename,nodename)
                 
--- a/plugins/canfestival/cf_runtime.c	Wed Jun 25 17:34:57 2008 +0200
+++ b/plugins/canfestival/cf_runtime.c	Wed Jun 25 17:36:09 2008 +0200
@@ -36,6 +36,7 @@
 void InitNodes(CO_Data* d, UNS32 id)
 {
     %(nodes_init)s
+	%(slavebootup_register)s
 }
 
 void Exit(CO_Data* d, UNS32 id)