def gen_scpUsage(self): gen_str = '' fp = open(os.path.join(ModuleObj.get_genPath(), self.__fileScp), 'w') gen_str += ModuleObj.writeComment() gen_str += ModuleObj.writeHeader(self.__fileScp) gen_str += self.fill_cFile() gen_str += ModuleObj.writeTail(self.__fileScp) fp.write(gen_str) fp.close()
def gen_pinCtrl(self): gen_str = '' fp = open(os.path.join(ModuleObj.get_genPath(), self.__filePinCtrl), 'w') gen_str += ModuleObj.writeComment() gen_str += ModuleObj.writeHeader(self.__filePinCtrl) gen_str += self.fill_pinctrl_hFile() gen_str += ModuleObj.writeTail(self.__filePinCtrl) fp.write(gen_str) fp.close()