def _write_includes(self, fp):
      lines = _genCommentHeader('Includes')
      fp.write('\n'.join(lines)+'\n')
      code = C.sequence()
      for include in self.includes:
         code.append(C.include(*include))
      if self.com_component is not None:
         code.append(C.include(self.com_component.name+'.h'))
      if self.os_enable:
         code.append(C.include('os.h'))
      fp.write('\n'.join(code.lines())+'\n\n')