void Main$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/cdoc/sg/Main.xs");
    om.bind("xdc.tools.cdoc.sg.Main$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg");
    po.init("xdc.tools.cdoc.sg.Main.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "main",
        (Proto.Fxn) om.findStrict("xdc.tools.cdoc.sg.Main$$main", "xdc.tools.cdoc.sg"),
        Global.get(cap, "main"));
  }
 void $$SINGLETONS() {
   pkgP.init(
       "xdc.services.mapping.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "xdc.services.mapping"));
   pkgP.bind("$capsule", $$UNDEF);
   pkgV.init2(pkgP, "xdc.services.mapping", Value.DEFAULT, false);
   pkgV.bind("$name", "xdc.services.mapping");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "xdc.services.mapping.");
   pkgV.bind("$vers", Global.newArray(1, 0, 0));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['xdc.services.mapping'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("if ('xdc.services.mapping$$stat$base' in xdc.om) {\n");
   sb.append("pkg.packageBase = xdc.om['xdc.services.mapping$$stat$base'];\n");
   sb.append("pkg.packageRepository = xdc.om['xdc.services.mapping$$stat$root'];\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append("];\n");
   Global.eval(sb.toString());
 }
 void $$SINGLETONS() {
   pkgP.init(
       "ti.sdo.ce.utils.rtcfg.osal.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.utils.rtcfg.osal"));
   pkgP.bind("$capsule", $$UNDEF);
   pkgV.init2(pkgP, "ti.sdo.ce.utils.rtcfg.osal", Value.DEFAULT, false);
   pkgV.bind("$name", "ti.sdo.ce.utils.rtcfg.osal");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "ti.sdo.ce.utils.rtcfg.osal.");
   pkgV.bind("$vers", Global.newArray("1, 0, 0"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['ti.sdo.ce.utils.rtcfg.osal'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append("];\n");
   Global.eval(sb.toString());
 }
Beispiel #4
0
 void $$SINGLETONS() {
   pkgP.init(
       "ti.platforms.evm6424.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.platforms.evm6424"));
   pkgP.bind("$capsule", $$UNDEF);
   pkgV.init2(pkgP, "ti.platforms.evm6424", Value.DEFAULT, false);
   pkgV.bind("$name", "ti.platforms.evm6424");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "ti.platforms.evm6424.");
   pkgV.bind("$vers", Global.newArray("1, 0, 0, 0"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   imports.add(Global.newArray("ti.catalog.c6000", Global.newArray()));
   imports.add(Global.newArray("xdc.platform", Global.newArray(1, 0, 1)));
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['ti.platforms.evm6424'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append("];\n");
   sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n");
   sb.append("}\n");
   Global.eval(sb.toString());
 }
Beispiel #5
0
 void $$SINGLETONS() {
   pkgP.init(
       "host.platforms.SUN.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "host.platforms.SUN"));
   Scriptable cap =
       (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/package.xs");
   om.bind("xdc.IPackage$$capsule", cap);
   Object fxn;
   fxn = Global.get(cap, "init");
   if (fxn != null)
     pkgP.addFxn(
         "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "host.platforms.SUN"), fxn);
   fxn = Global.get(cap, "close");
   if (fxn != null)
     pkgP.addFxn(
         "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "host.platforms.SUN"), fxn);
   fxn = Global.get(cap, "validate");
   if (fxn != null)
     pkgP.addFxn(
         "validate",
         (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "host.platforms.SUN"),
         fxn);
   fxn = Global.get(cap, "exit");
   if (fxn != null)
     pkgP.addFxn(
         "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "host.platforms.SUN"), fxn);
   fxn = Global.get(cap, "getLibs");
   if (fxn != null)
     pkgP.addFxn(
         "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "host.platforms.SUN"), fxn);
   fxn = Global.get(cap, "getSects");
   if (fxn != null)
     pkgP.addFxn(
         "getSects",
         (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "host.platforms.SUN"),
         fxn);
   pkgP.bind("$capsule", cap);
   pkgV.init2(pkgP, "host.platforms.SUN", Value.DEFAULT, false);
   pkgV.bind("$name", "host.platforms.SUN");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "host.platforms.SUN.");
   pkgV.bind("$vers", Global.newArray("1, 0, 0, 1"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   imports.add(Global.newArray("xdc.platform", Global.newArray()));
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['host.platforms.SUN'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append("];\n");
   sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n");
   sb.append("}\n");
   Global.eval(sb.toString());
 }
Beispiel #6
0
  void Agent$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/Agent.xs");
    om.bind("ti.sysbios.rta.Agent$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    po.init("ti.sysbios.rta.Agent.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("loadLogging", $$T_Bool, true, "wh");
    po.addFld("loadLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("loadLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 512L, "wh");
    po.addFld("loadLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("mainLogging", $$T_Bool, true, "wh");
    po.addFld("mainLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("mainLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("mainLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("sysbiosHwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosHwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosTaskLogging", $$T_Bool, true, "wh");
    po.addFld("sysbiosTaskLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("sysbiosLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 4096L, "wh");
    po.addFld("sysbiosLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("configureSystemLog", $$T_Bool, true, "wh");
    po.addFld("numSystemRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("configureLoadLog", $$T_Bool, true, "wh");
    po.addFld("numLoadRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("periodInMs", Proto.Elm.newCNum("(xdc_Int)"), 100L, "wh");
    po.addFld("priority", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("agentStackSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("agentStackSection", $$T_Str, "[Default]", "wh");
    po.addFld("transferBufferSize", Proto.Elm.newCNum("(xdc_Int)"), 85L, "wh");
    po.addFld("transferBufferSection", $$T_Str, $$UNDEF, "wh");
    po.addFld("addSupportLogger", $$T_Bool, true, "wh");
    po.addFld("supportControl", $$T_Bool, true, "wh");
    po.addFld(
        "transport",
        (Proto) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
        om.find("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY"),
        "wh");
    po.addFld("dataStream", $$T_Str, "/rtdx0", "wh");
    po.addFld("commandStream", $$T_Str, "/rtdx1", "wh");
    po.addFld("responseStream", $$T_Str, "/rtdx1", "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
  void ICmd$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ICmd.xs");
    om.bind("xdc.tools.ICmd$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Module", "xdc.tools");
    po.init("xdc.tools.ICmd.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("usage", new Proto.Arr($$T_Str, false), Global.newArray(new Object[] {}), "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ICmd$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "main");
    if (fxn != null)
      po.addFxn("main", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$main", "xdc.tools"), fxn);
    fxn = Global.get(cap, "exec");
    if (fxn != null)
      po.addFxn("exec", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$exec", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools");
    po.init("xdc.tools.ICmd.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "run");
    if (fxn != null)
      po.addFxn("run", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$run", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd$$Params", "xdc.tools");
    po.init("xdc.tools.ICmd.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
  }
  void IRtscProductTemplate$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate.Module", "xdc.tools");
    po.init("xdc.tools.IRtscProductTemplate.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "appTemplates",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "wh");
    po.addFld(
        "configTemplates",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "wh");
    // struct IRtscProductTemplate.TemplateInfo
    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate$$TemplateInfo", "xdc.tools");
    po.init("xdc.tools.IRtscProductTemplate.TemplateInfo", null);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("title", $$T_Str, $$UNDEF, "w");
    po.addFld("fileList", new Proto.Arr($$T_Str, false), $$DEFAULT, "w");
    po.addFld("description", $$T_Str, $$UNDEF, "w");
    po.addFld(
        "template",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "w");
  }
  void UNIVERSALConfig$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po =
        (Proto.Obj)
            om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig.Module", "ti.sdo.ce.universal");
    po.init("ti.sdo.ce.universal.UNIVERSALConfig.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codecsList", $$T_Obj, $$UNDEF, "wh");
  }
  void IProductView$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("xdc.tools.IProductView.Module", "xdc.tools");
    po.init("xdc.tools.IProductView.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    // struct IProductView.ProductElemDesc
    po = (Proto.Obj) om.findStrict("xdc.tools.IProductView$$ProductElemDesc", "xdc.tools");
    po.init("xdc.tools.IProductView.ProductElemDesc", null);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("elemName", $$T_Str, $$UNDEF, "w");
    po.addFld("moduleName", $$T_Str, $$UNDEF, "w");
    po.addFld("iconFileName", $$T_Str, $$UNDEF, "w");
    po.addFld(
        "elemArray",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"), false),
        $$DEFAULT,
        "w");
  }
  void IUNIVERSAL$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal");
    po.init(
        "ti.sdo.ce.universal.IUNIVERSAL.Module",
        om.findStrict("ti.sdo.ce.ICodec.Module", "ti.sdo.ce.universal"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("serverFxns", $$T_Str, "UNIVERSAL_SKEL", "wh");
    po.addFld("stubFxns", $$T_Str, "UNIVERSAL_STUBS", "wh");
    po.addFld("rpcProtocolVersion", Proto.Elm.newCNum("(xdc_Int)"), 1L, "rh");
    po.addFld("codecClassConfigurable", $$T_Bool, true, "rh");
    po.addFld(
        "manageInBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageInOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
  }
Beispiel #12
0
  void SupportLogger$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/SupportLogger.xs");
    om.bind("ti.sysbios.rta.SupportLogger$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta");
    po.init(
        "ti.sysbios.rta.SupportLogger.Module",
        om.findStrict("xdc.runtime.IModule.Module", "ti.sysbios.rta"));
    po.addFld("$hostonly", $$T_Num, 0, "r");
    if (isCFG) {
      po.addFld(
          "LM_timestampFreq",
          (Proto) om.findStrict("xdc.runtime.Log$$Event", "ti.sysbios.rta"),
          Global.newObject(
              "mask",
              Global.eval("0x0100 | 0x0200"),
              "msg",
              "LM_timestampFreq: Timestamp Frequency hi: %d, lo: %d"),
          "w");
      po.addFld("createLogSize", Proto.Elm.newCNum("(xdc_Int)"), 32L, "w");
    } // isCFG
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$static$init");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$static$init", true);
    if (fxn != null) po.addFxn("module$static$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
Beispiel #13
0
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/Platform.xs");
    om.bind("host.platforms.SUN.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"),
        Global.newObject(
            "id", "0", "boardName", "sun-sparc", "boardFamily", "sun-sparc", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "host.platforms.SUN"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            750.0,
            "catalogName",
            "host.platforms.SUN",
            "deviceName",
            "SunSparc7",
            "revision",
            ""),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Object",
        om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
  }
Beispiel #14
0
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/evm6424/Platform.xs");
    om.bind("ti.platforms.evm6424.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform.Module", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.evm6424"),
        Global.newObject(
            "id", "0", "boardName", "evm6424", "boardFamily", "evm6424", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.evm6424"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            594L,
            "catalogName",
            "ti.catalog.c6000",
            "deviceName",
            "TMS320C6424",
            "revision",
            ""),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("ti.platforms.evm6424.Platform$$create", "ti.platforms.evm6424"),
        Global.get("ti$platforms$evm6424$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.evm6424.Platform$$construct", "ti.platforms.evm6424"),
        Global.get("ti$platforms$evm6424$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform.Instance", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "DDR2",
                    Global.newObject("name", "DDR2", "base", 0x80000000L, "len", 0x08000000L)
                  }),
              Global.newArray(
                  new Object[] {
                    "SRAM",
                    Global.newObject("name", "SRAM", "base", 0x42000000L, "len", 0x00200000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "DDR2", "wh");
    po.addFld("dataMemory", $$T_Str, "DDR2", "wh");
    po.addFld("stackMemory", $$T_Str, "DDR2", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.evm6424"),
          fxn);
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform$$Params", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "DDR2",
                    Global.newObject("name", "DDR2", "base", 0x80000000L, "len", 0x08000000L)
                  }),
              Global.newArray(
                  new Object[] {
                    "SRAM",
                    Global.newObject("name", "SRAM", "base", 0x42000000L, "len", 0x00200000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "DDR2", "wh");
    po.addFld("dataMemory", $$T_Str, "DDR2", "wh");
    po.addFld("stackMemory", $$T_Str, "DDR2", "wh");
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform$$Object", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Object",
        om.findStrict("ti.platforms.evm6424.Platform.Instance", "ti.platforms.evm6424"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.evm6424"),
          fxn);
  }
 void $$SINGLETONS() {
   pkgP.init(
       "ti.sdo.ce.universal.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.universal"));
   Scriptable cap =
       (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/universal/package.xs");
   om.bind("xdc.IPackage$$capsule", cap);
   Object fxn;
   fxn = Global.get(cap, "init");
   if (fxn != null)
     pkgP.addFxn(
         "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sdo.ce.universal"), fxn);
   fxn = Global.get(cap, "close");
   if (fxn != null)
     pkgP.addFxn(
         "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sdo.ce.universal"), fxn);
   fxn = Global.get(cap, "validate");
   if (fxn != null)
     pkgP.addFxn(
         "validate",
         (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sdo.ce.universal"),
         fxn);
   fxn = Global.get(cap, "exit");
   if (fxn != null)
     pkgP.addFxn(
         "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sdo.ce.universal"), fxn);
   fxn = Global.get(cap, "getLibs");
   if (fxn != null)
     pkgP.addFxn(
         "getLibs",
         (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sdo.ce.universal"),
         fxn);
   fxn = Global.get(cap, "getSects");
   if (fxn != null)
     pkgP.addFxn(
         "getSects",
         (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sdo.ce.universal"),
         fxn);
   pkgP.bind("$capsule", cap);
   pkgV.init2(pkgP, "ti.sdo.ce.universal", Value.DEFAULT, false);
   pkgV.bind("$name", "ti.sdo.ce.universal");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "ti.sdo.ce.universal.");
   pkgV.bind("$vers", Global.newArray("1, 0, 0"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['ti.sdo.ce.universal'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("'lib/debug/universal.aem3',\n");
   sb.append("'lib/release/universal.aem3',\n");
   sb.append("'lib/debug/universal.ae674',\n");
   sb.append("'lib/release/universal.ae674',\n");
   sb.append("'lib/debug/universal.av5T',\n");
   sb.append("'lib/release/universal.av5T',\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append("['lib/debug/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
   sb.append(
       "['lib/release/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
   sb.append("['lib/debug/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
   sb.append(
       "['lib/release/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
   sb.append(
       "['lib/debug/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n");
   sb.append(
       "['lib/release/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n");
   sb.append("];\n");
   Global.eval(sb.toString());
 }
  void G711DEC$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap =
        (Scriptable)
            Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/examples/codecs/g711/G711DEC.xs");
    om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC.Module", "ti.sdo.ce.examples.codecs.g711");
    po.init(
        "ti.sdo.ce.examples.codecs.g711.G711DEC.Module",
        om.findStrict("ti.sdo.ce.speech1.ISPHDEC1.Module", "ti.sdo.ce.examples.codecs.g711"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("ialgFxns", $$T_Str, "G711DEC_SUN_IG711DEC", "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "getCreationStackSize");
    if (fxn != null)
      po.addFxn(
          "getCreationStackSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getCreationStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getDaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getDaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getDaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getSaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getSaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getSaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getStackSize");
    if (fxn != null)
      po.addFxn(
          "getStackSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getUUID");
    if (fxn != null)
      po.addFxn(
          "getUUID",
          (Proto.Fxn) om.findStrict("ti.sdo.ce.ICodec$$getUUID", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
  }
  void Bionic$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "google/targets/arm/Bionic.xs");
    om.bind("google.targets.arm.Bionic$$capsule", cap);
    po = (Proto.Obj) om.findStrict("google.targets.arm.Bionic.Module", "google.targets.arm");
    po.init(
        "google.targets.arm.Bionic.Module",
        om.findStrict("google.targets.ITarget.Module", "google.targets.arm"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("name", $$T_Str, "Bionic", "rh");
    po.addFld("os", $$T_Str, "Linux", "rh");
    po.addFld("suffix", $$T_Str, "bnc", "rh");
    po.addFld("isa", $$T_Str, "v5T", "rh");
    po.addFld(
        "model",
        (Proto) om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"),
        Global.newObject("endian", "little"),
        "rh");
    po.addFld("rts", $$T_Str, "google.targets.arm.rts", "rh");
    po.addFld("platform", $$T_Str, "host.platforms.arm", "wh");
    po.addFld("LONGNAME", $$T_Str, $$UNDEF, "wh");
    po.addFld("libcDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("fsDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("stdInclude", $$T_Str, "google/targets/arm/std.h", "rh");
    po.addFld(
        "cc",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject(
            "cmd",
            "$(rootDir)/$(LONGNAME) -c -MD -MF [email protected]",
            "opts",
            "-march=armv5t -fno-short-enums "),
        "rh");
    po.addFld(
        "ccOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "-fPIC -Wunused", "suffix", "-Dfar=  -D_ANDROID_"),
        "wh");
    po.addFld(
        "asm",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject("cmd", "$(rootDir)/$(LONGNAME) -c -x assembler", "opts", "-march=armv5t"),
        "rh");
    po.addFld(
        "lnkOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "", "suffix", "-Wl,-Map=$(XDCCFGDIR)/[email protected] "),
        "wh");
    po.addFld(
        "stdTypes",
        (Proto) om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"),
        Global.newObject(
            "t_IArg",
            Global.newObject("size", 4L, "align", 4L),
            "t_Char",
            Global.newObject("size", 1L, "align", 1L),
            "t_Double",
            Global.newObject("size", 8L, "align", 4L),
            "t_Float",
            Global.newObject("size", 4L, "align", 4L),
            "t_Fxn",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int8",
            Global.newObject("size", 1L, "align", 1L),
            "t_Int16",
            Global.newObject("size", 2L, "align", 2L),
            "t_Int32",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int64",
            Global.newObject("size", 8L, "align", 4L),
            "t_Long",
            Global.newObject("size", 4L, "align", 4L),
            "t_LDouble",
            Global.newObject("size", 8L, "align", 4L),
            "t_LLong",
            Global.newObject("size", 8L, "align", 4L),
            "t_Ptr",
            Global.newObject("size", 4L, "align", 4L),
            "t_Short",
            Global.newObject("size", 2L, "align", 2L),
            "t_Size",
            Global.newObject("size", 4L, "align", 4L)),
        "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "archive");
    if (fxn != null)
      po.addFxn(
          "archive",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$archive", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "compile");
    if (fxn != null)
      po.addFxn(
          "compile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$compile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "scompile");
    if (fxn != null)
      po.addFxn(
          "scompile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$scompile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "link");
    if (fxn != null)
      po.addFxn(
          "link", (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$link", "google.targets.arm"), fxn);
    fxn = Global.get(cap, "getVersion");
    if (fxn != null)
      po.addFxn(
          "getVersion",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getVersion", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "getISAChain");
    if (fxn != null)
      po.addFxn(
          "getISAChain",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getISAChain", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "findSuffix");
    if (fxn != null)
      po.addFxn(
          "findSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$findSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "selectSuffix");
    if (fxn != null)
      po.addFxn(
          "selectSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$selectSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genConstCustom");
    if (fxn != null)
      po.addFxn(
          "genConstCustom",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genConstCustom", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleData");
    if (fxn != null)
      po.addFxn(
          "genVisibleData",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleData", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleFxns", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleLibFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleLibFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleLibFxns", "google.targets.arm"),
          fxn);
  }
Beispiel #18
0
  void Examples$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/ipc/examples/Examples.xs");
    om.bind("ti.sdo.ipc.examples.Examples$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sdo.ipc.examples.Examples.Module", "ti.sdo.ipc.examples");
    po.init(
        "ti.sdo.ipc.examples.Examples.Module",
        om.findStrict("xdc.tools.product.IProductTemplate.Module", "ti.sdo.ipc.examples"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "root",
        (Proto)
            om.findStrict(
                "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
        Global.newObject(
            "id",
            "ti.sdo.ipc.examples.root",
            "name",
            "IPC and I/O Examples",
            "description",
            "IPC and I/O Examples"),
        "wh");
    po.addFld(
        "generic",
        (Proto)
            om.findStrict(
                "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
        Global.newObject(
            "id",
            "ti.sdo.ipc.examples.root.generic",
            "name",
            "Generic IPC and I/O Examples",
            "description",
            "Generic IPC and I/O Examples",
            "groups",
            Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"})),
        "wh");
    po.addFld(
        "templateGroupArr",
        new Proto.Arr(
            (Proto)
                om.findStrict(
                    "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
            false),
        Global.newArray(
            new Object[] {
              Global.newObject(
                  "id",
                  "ti.sdo.ipc.examples.root",
                  "name",
                  "IPC and I/O Examples",
                  "description",
                  "IPC and I/O Examples"),
              Global.newObject(
                  "id",
                  "ti.sdo.ipc.examples.root.generic",
                  "name",
                  "Generic IPC and I/O Examples",
                  "description",
                  "Generic IPC and I/O Examples",
                  "groups",
                  Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}))
            }),
        "wh");
    po.addFld(
        "stream",
        (Proto)
            om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"),
        Global.newObject(
            "title",
            "I/O Stream",
            "fileList",
            Global.newArray(
                new Object[] {
                  Global.newObject("path", "./io/stream.c"),
                  Global.newObject("path", "./io/stream.cfg")
                }),
            "description",
            "This example shows the use of ti.sdo.io.Stream module to demonstrate IO streaming using a driver. In this example we use the ti.sdo.io.Generator driver module. This example uses the Stream_ISSUE_RECLAIM model. A single task gets data from an input channel and sends the data out to an output channel.",
            "buildProfile",
            "release",
            "isHybrid",
            true,
            "filterArr",
            Global.newArray(
                new Object[] {
                  Global.newObject("deviceFamily", "C2000", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "C6000", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "ARP32", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "ARM", "toolChain", "TI")
                }),
            "requiredProducts",
            Global.newArray(new Object[] {"com.ti.rtsc.SYSBIOS", "com.ti.rtsc.IPC"}),
            "groups",
            Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}),
            "linkerCommandFile",
            ""),
        "wh");
    po.addFld(
        "templateArr",
        new Proto.Arr(
            (Proto)
                om.findStrict(
                    "xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"),
            false),
        Global.newArray(
            new Object[] {
              Global.newObject(
                  "title",
                  "I/O Stream",
                  "fileList",
                  Global.newArray(
                      new Object[] {
                        Global.newObject("path", "./io/stream.c"),
                        Global.newObject("path", "./io/stream.cfg")
                      }),
                  "description",
                  "This example shows the use of ti.sdo.io.Stream module to demonstrate IO streaming using a driver. In this example we use the ti.sdo.io.Generator driver module. This example uses the Stream_ISSUE_RECLAIM model. A single task gets data from an input channel and sends the data out to an output channel.",
                  "buildProfile",
                  "release",
                  "isHybrid",
                  true,
                  "filterArr",
                  Global.newArray(
                      new Object[] {
                        Global.newObject("deviceFamily", "C2000", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "C6000", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "ARP32", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "ARM", "toolChain", "TI")
                      }),
                  "requiredProducts",
                  Global.newArray(new Object[] {"com.ti.rtsc.SYSBIOS", "com.ti.rtsc.IPC"}),
                  "groups",
                  Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}),
                  "linkerCommandFile",
                  "")
            }),
        "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
  void ResourceBundle$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ResourceBundle.xs");
    om.bind("xdc.tools.ResourceBundle$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$create", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$construct", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "getResourceBundle",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getResourceBundle", "xdc.tools"),
        Global.get(cap, "getResourceBundle"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Params", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools");
    po.init(
        "xdc.tools.ResourceBundle.Object",
        om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"));
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
  }
  void Cmdr$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/Cmdr.xs");
    om.bind("xdc.tools.Cmdr$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    po.init("xdc.tools.Cmdr.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$create", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$construct", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools");
    po.init("xdc.tools.Cmdr.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Params", "xdc.tools");
    po.init("xdc.tools.Cmdr.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools");
    po.init("xdc.tools.Cmdr.Object", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
  }
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/ezdsp2808/Platform.xs");
    om.bind("ti.platforms.ezdsp2808.Platform$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform.Module", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.ezdsp2808"),
        Global.newObject(
            "id", "0", "boardName", "ezdsp2808", "boardFamily", "ezdsp2808", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.ezdsp2808"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            100.0,
            "catalogName",
            "ti.catalog.c2800",
            "deviceName",
            "TMS320C2808",
            "revision",
            null),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$create", "ti.platforms.ezdsp2808"),
        Global.get("ti$platforms$ezdsp2808$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$construct", "ti.platforms.ezdsp2808"),
        Global.get("ti$platforms$ezdsp2808$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform.Instance", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codeMemory", $$T_Str, "H0SARAM", "wh");
    po.addFld("dataMemory", $$T_Str, "LSARAM", "wh");
    po.addFld("stackMemory", $$T_Str, "MSARAM", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.ezdsp2808"),
          fxn);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$Params", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codeMemory", $$T_Str, "H0SARAM", "wh");
    po.addFld("dataMemory", $$T_Str, "LSARAM", "wh");
    po.addFld("stackMemory", $$T_Str, "MSARAM", "wh");
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$Object", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Object",
        om.findStrict("ti.platforms.ezdsp2808.Platform.Instance", "ti.platforms.ezdsp2808"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.ezdsp2808"),
          fxn);
  }
Beispiel #22
0
  void SunSparc7$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/SunSparc7.xs");
    om.bind("host.platforms.SUN.SunSparc7$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Module",
        om.findStrict("xdc.platform.ICpuDataSheet.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Instance",
        om.findStrict("xdc.platform.ICpuDataSheet.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Params",
        om.findStrict("xdc.platform.ICpuDataSheet$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Object",
        om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
  }
Beispiel #23
0
 void $$SINGLETONS() {
   pkgP.init(
       "ti.sysbios.rta.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sysbios.rta"));
   Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/package.xs");
   om.bind("xdc.IPackage$$capsule", cap);
   Object fxn;
   fxn = Global.get(cap, "init");
   if (fxn != null)
     pkgP.addFxn("init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sysbios.rta"), fxn);
   fxn = Global.get(cap, "close");
   if (fxn != null)
     pkgP.addFxn("close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sysbios.rta"), fxn);
   fxn = Global.get(cap, "validate");
   if (fxn != null)
     pkgP.addFxn(
         "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sysbios.rta"), fxn);
   fxn = Global.get(cap, "exit");
   if (fxn != null)
     pkgP.addFxn("exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sysbios.rta"), fxn);
   fxn = Global.get(cap, "getLibs");
   if (fxn != null)
     pkgP.addFxn(
         "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sysbios.rta"), fxn);
   fxn = Global.get(cap, "getSects");
   if (fxn != null)
     pkgP.addFxn(
         "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sysbios.rta"), fxn);
   pkgP.bind("$capsule", cap);
   pkgV.init2(pkgP, "ti.sysbios.rta", Value.DEFAULT, false);
   pkgV.bind("$name", "ti.sysbios.rta");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "ti.sysbios.rta.");
   pkgV.bind("$vers", Global.newArray("2, 0, 0, 0"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['ti.sysbios.rta'];\n");
   sb.append("if (pkg.$vers.length >= 3) {\n");
   sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
   sb.append("}\n");
   sb.append("pkg.build.libraries = [\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28L',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28FP',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64P',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64Pe',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a674',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430X',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430XS',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430X',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430XS',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ar430XS',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64P',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64Pe',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae674',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64T',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66e',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32F',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae9',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8f',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8fnv',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem3',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4f',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4te',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4fte',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.am3g',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4g',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4fg',\n");
   sb.append("'lib/sysbios/debug/ti.sysbios.rta.aa15g',\n");
   sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem3',\n");
   sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem4',\n");
   sb.append("];\n");
   sb.append("pkg.build.libDesc = [\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a28L', {target: 'ti.targets.C28_large', suffix: '28L'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a28FP', {target: 'ti.targets.C28_float', suffix: '28FP'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a64', {target: 'ti.targets.C64', suffix: '64'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a64P', {target: 'ti.targets.C64P', suffix: '64P'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a64Pe', {target: 'ti.targets.C64P_big_endian', suffix: '64Pe'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a674', {target: 'ti.targets.C674', suffix: '674'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a430', {target: 'ti.targets.msp430.MSP430', suffix: '430'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a430X', {target: 'ti.targets.msp430.MSP430X', suffix: '430X'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.a430XS', {target: 'ti.targets.msp430.MSP430X_small', suffix: '430XS'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae430X', {target: 'ti.targets.msp430.elf.MSP430X', suffix: 'e430X'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae430XS', {target: 'ti.targets.msp430.elf.MSP430X_small', suffix: 'e430XS'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ar430XS', {target: 'iar.targets.msp430.MSP430X_small', suffix: 'r430XS'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae64P', {target: 'ti.targets.elf.C64P', suffix: 'e64P'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae64Pe', {target: 'ti.targets.elf.C64P_big_endian', suffix: 'e64Pe'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae64T', {target: 'ti.targets.elf.C64T', suffix: 'e64T'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae66', {target: 'ti.targets.elf.C66', suffix: 'e66'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae66e', {target: 'ti.targets.elf.C66_big_endian', suffix: 'e66e'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aearp32', {target: 'ti.targets.arp32.elf.ARP32', suffix: 'earp32'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aearp32F', {target: 'ti.targets.arp32.elf.ARP32_far', suffix: 'earp32F'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.ae9', {target: 'ti.targets.arm.elf.Arm9', suffix: 'e9'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aea8f', {target: 'ti.targets.arm.elf.A8F', suffix: 'ea8f'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aea8fnv', {target: 'ti.targets.arm.elf.A8Fnv', suffix: 'ea8fnv'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aem4f', {target: 'ti.targets.arm.elf.M4F', suffix: 'em4f'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aer4te', {target: 'ti.targets.arm.elf.R4t_big_endian', suffix: 'er4te'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aer4fte', {target: 'ti.targets.arm.elf.R4Ft_big_endian', suffix: 'er4fte'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.am3g', {target: 'gnu.targets.arm.M3', suffix: 'm3g'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.am4g', {target: 'gnu.targets.arm.M4', suffix: 'm4g'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.am4fg', {target: 'gnu.targets.arm.M4F', suffix: 'm4fg'}],\n");
   sb.append(
       "['lib/sysbios/debug/ti.sysbios.rta.aa15g', {target: 'gnu.targets.arm.A15', suffix: 'a15g'}],\n");
   sb.append(
       "['lib/smpbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
   sb.append(
       "['lib/smpbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n");
   sb.append("];\n");
   Global.eval(sb.toString());
 }
  void MPEG4VDEC$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap =
        (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/codecs/mpeg4vdec/ce/MPEG4VDEC.xs");
    om.bind("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC.Module", "ti.sdo.codecs.mpeg4vdec.ce");
    po.init(
        "ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC.Module",
        om.findStrict("ti.sdo.ce.video3.IVIDDEC3.Module", "ti.sdo.codecs.mpeg4vdec.ce"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "alg",
        (Proto)
            om.findStrict("ti.sdo.codecs.mpeg4vdec.MPEG4VDEC.Module", "ti.sdo.codecs.mpeg4vdec.ce"),
        om.find("ti.sdo.codecs.mpeg4vdec.MPEG4VDEC"),
        "rh");
    po.addFld("ialgFxns", $$T_Str, "MPEG4VDEC_TI_IMPEG4VDEC", "rh");
    po.addFld("iresFxns", $$T_Str, "MPEG4VDEC_TI_IRES", "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "getCreationStackSize");
    if (fxn != null)
      po.addFxn(
          "getCreationStackSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getCreationStackSize", "ti.sdo.codecs.mpeg4vdec.ce"),
          fxn);
    fxn = Global.get(cap, "getDaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getDaramScratchSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getDaramScratchSize", "ti.sdo.codecs.mpeg4vdec.ce"),
          fxn);
    fxn = Global.get(cap, "getSaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getSaramScratchSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getSaramScratchSize", "ti.sdo.codecs.mpeg4vdec.ce"),
          fxn);
    fxn = Global.get(cap, "getStackSize");
    if (fxn != null)
      po.addFxn(
          "getStackSize",
          (Proto.Fxn) om.findStrict("ti.sdo.ce.ICodec$$getStackSize", "ti.sdo.codecs.mpeg4vdec.ce"),
          fxn);
    fxn = Global.get(cap, "getUUID");
    if (fxn != null)
      po.addFxn(
          "getUUID",
          (Proto.Fxn) om.findStrict("ti.sdo.ce.ICodec$$getUUID", "ti.sdo.codecs.mpeg4vdec.ce"),
          fxn);
  }
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/sdp5430/Platform.xs");
    om.bind("ti.platforms.sdp5430.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform.Module", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.sdp5430"),
        Global.newObject(
            "id", "0", "boardName", "sdp5430", "boardFamily", "sdp5430", "boardRevision", null),
        "rh");
    po.addFld(
        "GEM",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            466L,
            "catalogName",
            "ti.catalog.c6000",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFld(
        "DSS",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "1",
            "clockRate",
            212.8,
            "catalogName",
            "ti.catalog.arm.cortexm4",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFld(
        "GPP",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "2",
            "clockRate",
            800.0,
            "catalogName",
            "ti.catalog.arm.cortexa15",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("ti.platforms.sdp5430.Platform$$create", "ti.platforms.sdp5430"),
        Global.get("ti$platforms$sdp5430$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.sdp5430.Platform$$construct", "ti.platforms.sdp5430"),
        Global.get("ti$platforms$sdp5430$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "EXT_RAM",
                    Global.newObject(
                        "comment",
                        "External RAM",
                        "name",
                        "EXT_RAM",
                        "base",
                        0x80000000L,
                        "len",
                        0x20000000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("dataMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("stackMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("l1PMode", $$T_Str, "32k", "wh");
    po.addFld("l1DMode", $$T_Str, "32k", "wh");
    po.addFld("l2Mode", $$T_Str, "0k", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.sdp5430"),
          fxn);
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform$$Params", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "EXT_RAM",
                    Global.newObject(
                        "comment",
                        "External RAM",
                        "name",
                        "EXT_RAM",
                        "base",
                        0x80000000L,
                        "len",
                        0x20000000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("dataMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("stackMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("l1PMode", $$T_Str, "32k", "wh");
    po.addFld("l1DMode", $$T_Str, "32k", "wh");
    po.addFld("l2Mode", $$T_Str, "0k", "wh");
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform$$Object", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Object",
        om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.sdp5430"),
          fxn);
  }