etherlab/EthercatMaster.py
changeset 2141 6963460bfe0f
parent 2137 b65abacdbdf9
parent 2135 ca1c34ff6c10
child 2147 a8b095de63e8
equal deleted inserted replaced
2140:56643934495c 2141:6963460bfe0f
   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