equal
deleted
inserted
replaced
6 from nodelist import NodeList |
6 from nodelist import NodeList |
7 from nodemanager import NodeManager |
7 from nodemanager import NodeManager |
8 import config_utils, gen_cfile, eds_utils |
8 import config_utils, gen_cfile, eds_utils |
9 from networkedit import networkedit |
9 from networkedit import networkedit |
10 from objdictedit import objdictedit |
10 from objdictedit import objdictedit |
11 import canfestival_config |
11 import canfestival_config as local_canfestival_config |
12 from plugger import PlugTemplate |
12 from plugger import PlugTemplate |
13 from commondialogs import CreateNodeDialog |
13 from commondialogs import CreateNodeDialog |
14 import wx |
14 import wx |
15 |
15 |
16 from gnosis.xml.pickle import * |
16 from gnosis.xml.pickle import * |
169 if res : |
169 if res : |
170 raise Exception, res |
170 raise Exception, res |
171 res = eds_utils.GenerateEDSFile(os.path.join(buildpath, "Slave_%s.eds"%prefix), slave) |
171 res = eds_utils.GenerateEDSFile(os.path.join(buildpath, "Slave_%s.eds"%prefix), slave) |
172 if res : |
172 if res : |
173 raise Exception, res |
173 raise Exception, res |
174 return [(Gen_OD_path,canfestival_config.getCFLAGS(CanFestivalPath))],"",False |
174 return [(Gen_OD_path,local_canfestival_config.getCFLAGS(CanFestivalPath))],"",False |
175 |
175 |
176 #-------------------------------------------------- |
176 #-------------------------------------------------- |
177 # MASTER |
177 # MASTER |
178 #-------------------------------------------------- |
178 #-------------------------------------------------- |
179 |
179 |
291 |
291 |
292 file = open(os.path.join(buildpath, "MasterGenerated.od"), "w") |
292 file = open(os.path.join(buildpath, "MasterGenerated.od"), "w") |
293 dump(master, file) |
293 dump(master, file) |
294 file.close() |
294 file.close() |
295 |
295 |
296 return [(Gen_OD_path,canfestival_config.getCFLAGS(CanFestivalPath))],"",False |
296 return [(Gen_OD_path,local_canfestival_config.getCFLAGS(CanFestivalPath))],"",False |
297 |
297 |
298 class RootClass: |
298 class RootClass: |
299 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
299 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
300 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
300 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
301 <xsd:element name="CanFestivalInstance"> |
301 <xsd:element name="CanFestivalInstance"> |
313 infos = PlugTemplate.GetParamsAttributes(self, path = None) |
313 infos = PlugTemplate.GetParamsAttributes(self, path = None) |
314 for element in infos: |
314 for element in infos: |
315 if element["name"] == "CanFestivalInstance": |
315 if element["name"] == "CanFestivalInstance": |
316 for child in element["children"]: |
316 for child in element["children"]: |
317 if child["name"] == "CAN_Driver": |
317 if child["name"] == "CAN_Driver": |
318 DLL_LIST= getattr(canfestival_config,"DLL_LIST",None) |
318 DLL_LIST= getattr(local_canfestival_config,"DLL_LIST",None) |
319 if DLL_LIST is not None: |
319 if DLL_LIST is not None: |
320 child["type"] = DLL_LIST |
320 child["type"] = DLL_LIST |
321 return infos |
321 return infos |
322 return infos |
322 return infos |
323 |
323 |
425 cf_main_path = os.path.join(buildpath, "CF_%(locstr)s.c"%format_dict) |
425 cf_main_path = os.path.join(buildpath, "CF_%(locstr)s.c"%format_dict) |
426 f = open(cf_main_path,'w') |
426 f = open(cf_main_path,'w') |
427 f.write(cf_main) |
427 f.write(cf_main) |
428 f.close() |
428 f.close() |
429 |
429 |
430 return [(cf_main_path, canfestival_config.getCFLAGS(CanFestivalPath))],canfestival_config.getLDFLAGS(CanFestivalPath), True |
430 return [(cf_main_path, local_canfestival_config.getCFLAGS(CanFestivalPath))],local_canfestival_config.getLDFLAGS(CanFestivalPath), True |
431 |
431 |
432 |
432 |