equal
deleted
inserted
replaced
273 "nodes_init" : "", |
273 "nodes_init" : "", |
274 "nodes_open" : "", |
274 "nodes_open" : "", |
275 "nodes_close" : "", |
275 "nodes_close" : "", |
276 "nodes_send_sync" : "", |
276 "nodes_send_sync" : "", |
277 "nodes_proceed_sync" : "", |
277 "nodes_proceed_sync" : "", |
278 "slavebootups" : ""} |
278 "slavebootups" : "", |
|
279 "slavebootup_register" : ""} |
279 for child in self.IECSortedChilds(): |
280 for child in self.IECSortedChilds(): |
280 childlocstr = "_".join(map(str,child.GetCurrentLocation())) |
281 childlocstr = "_".join(map(str,child.GetCurrentLocation())) |
281 nodename = "OD_%s" % childlocstr |
282 nodename = "OD_%s" % childlocstr |
282 |
283 |
283 # Try to get Slave Node |
284 # Try to get Slave Node |
314 format_dict["slavebootups"] += " && ".join(["%s_slave_%d_booted"%(nodename, id) for id in SlaveIDs]) |
315 format_dict["slavebootups"] += " && ".join(["%s_slave_%d_booted"%(nodename, id) for id in SlaveIDs]) |
315 |
316 |
316 format_dict["slavebootups"] += """ ) |
317 format_dict["slavebootups"] += """ ) |
317 Master_post_SlaveBootup(d,nodeId); |
318 Master_post_SlaveBootup(d,nodeId); |
318 } |
319 } |
|
320 """ |
|
321 format_dict["slavebootup_register"] += """ |
319 %s_Data.post_SlaveBootup = %s_post_SlaveBootup; |
322 %s_Data.post_SlaveBootup = %s_post_SlaveBootup; |
320 """%(nodename,nodename) |
323 """%(nodename,nodename) |
321 |
324 |
322 format_dict["nodes_includes"] += '#include "%s.h"\n'%(nodename) |
325 format_dict["nodes_includes"] += '#include "%s.h"\n'%(nodename) |
323 format_dict["board_decls"] += 'BOARD_DECL(%s, "%s", "%s")\n'%( |
326 format_dict["board_decls"] += 'BOARD_DECL(%s, "%s", "%s")\n'%( |