equal
deleted
inserted
replaced
232 # define a unique name for the generated C file |
232 # define a unique name for the generated C file |
233 prefix = "_".join(map(str, current_location)) |
233 prefix = "_".join(map(str, current_location)) |
234 Gen_OD_path = os.path.join(buildpath, "OD_%s.c"%prefix ) |
234 Gen_OD_path = os.path.join(buildpath, "OD_%s.c"%prefix ) |
235 # Create a new copy of the model with DCF loaded with PDO mappings for desired location |
235 # Create a new copy of the model with DCF loaded with PDO mappings for desired location |
236 master, pointers = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs(),"OD_%s"%prefix) |
236 master, pointers = config_utils.GenerateConciseDCF(locations, current_location, self, self.CanFestivalNode.getSync_TPDOs(),"OD_%s"%prefix) |
237 # allow access to local OD from Master PLC |
|
238 pointers.update(config_utils.LocalODPointers(locations, current_location, master)) |
|
239 # Do generate C file. |
237 # Do generate C file. |
240 res = gen_cfile.GenerateFile(Gen_OD_path, master, pointers) |
238 res = gen_cfile.GenerateFile(Gen_OD_path, master, pointers) |
241 if res : |
239 if res : |
242 raise Exception, res |
240 raise Exception, res |
243 |
241 |