etherlab/EthercatMaster.py
changeset 2135 ca1c34ff6c10
parent 2133 ba0b2ca7db26
child 2141 6963460bfe0f
equal deleted inserted replaced
2134:6f4b08348a60 2135:ca1c34ff6c10
   700                 self.FileGenerator.DeclareVariable(
   700                 self.FileGenerator.DeclareVariable(
   701                             pos, index, subindex, var_type, "Q", name, True)
   701                             pos, index, subindex, var_type, "Q", name, True)
   702         
   702         
   703         self.FileGenerator.GenerateCFile(Gen_Ethercatfile_path, location_str, self.BaseParams.getIEC_Channel())
   703         self.FileGenerator.GenerateCFile(Gen_Ethercatfile_path, location_str, self.BaseParams.getIEC_Channel())
   704         
   704         
   705         LocationCFilesAndCFLAGS.append(
   705         LocationCFilesAndCFLAGS.insert(0, 
   706             (current_location, 
   706             (current_location, 
   707              [(Gen_Ethercatfile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))], 
   707              [(Gen_Ethercatfile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))], 
   708              True))
   708              True))
   709         LDFLAGS.append("-lethercat_rtdm -lrtdm")
   709         LDFLAGS.append("-lethercat_rtdm -lrtdm")
   710         
   710