Ejemplo n.º 1
0
  void IRtscProductTemplate$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.IRtscProductTemplate", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.IRtscProductTemplate", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind(
        "TemplateInfo", om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"));
    tdefs.add(om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("IRtscProductTemplate", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("IRtscProductTemplate");
    vo.seal(null);
  }
Ejemplo n.º 2
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());
 }
Ejemplo n.º 3
0
  void ICmd$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.ICmd", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.ICmd", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", om.findStrict("xdc.tools.ICmd$$capsule", "xdc.tools"));
    vo.bind("Instance", om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools"));
    vo.bind("Params", om.findStrict("xdc.tools.ICmd.Params", "xdc.tools"));
    vo.bind(
        "PARAMS", ((Proto.Str) om.findStrict("xdc.tools.ICmd.Params", "xdc.tools")).newInstance());
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("ICmd", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("ICmd");
    vo.seal(null);
  }
Ejemplo n.º 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());
 }
 void $$SINGLETONS() {
   pkgP.init(
       "google.targets.arm.Package",
       (Proto.Obj) om.findStrict("xdc.IPackage.Module", "google.targets.arm"));
   pkgP.bind("$capsule", $$UNDEF);
   pkgV.init2(pkgP, "google.targets.arm", Value.DEFAULT, false);
   pkgV.bind("$name", "google.targets.arm");
   pkgV.bind("$category", "Package");
   pkgV.bind("$$qn", "google.targets.arm.");
   pkgV.bind("$vers", Global.newArray("1, 0, 0"));
   Value.Map atmap = (Value.Map) pkgV.getv("$attr");
   atmap.seal("length");
   imports.clear();
   imports.add(Global.newArray("xdc.bld", Global.newArray()));
   imports.add(Global.newArray("gnu.targets", Global.newArray()));
   pkgV.bind("$imports", imports);
   StringBuilder sb = new StringBuilder();
   sb.append("var pkg = xdc.om['google.targets.arm'];\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());
 }
Ejemplo n.º 6
0
 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());
 }
Ejemplo n.º 7
0
  void Agent$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta");
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    vo.init2(po, "ti.sysbios.rta.Agent", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("ti.sysbios.rta.Agent$$capsule", "ti.sysbios.rta"));
    vo.bind("$package", om.findStrict("ti.sysbios.rta", "ti.sysbios.rta"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Transport", om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"));
    vo.bind(
        "Transport_RTDX", om.findStrict("ti.sysbios.rta.Agent.Transport_RTDX", "ti.sysbios.rta"));
    vo.bind(
        "Transport_STOP_MODE_ONLY",
        om.findStrict("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY", "ti.sysbios.rta"));
    vo.bind(
        "Transport_USER", om.findStrict("ti.sysbios.rta.Agent.Transport_USER", "ti.sysbios.rta"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sysbios.rta")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("ti.sysbios.rta.Agent$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("Agent", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Agent");
  }
Ejemplo n.º 8
0
  void Cmdr$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.Cmdr", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.Cmdr", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("xdc.tools.Cmdr$$capsule", "xdc.tools"));
    vo.bind("Instance", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    vo.bind("Params", om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"));
    vo.bind(
        "PARAMS", ((Proto.Str) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools")).newInstance());
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Context", om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"));
    vo.bind("SHELL", om.findStrict("xdc.tools.Cmdr.SHELL", "xdc.tools"));
    vo.bind("SCRIPT", om.findStrict("xdc.tools.Cmdr.SCRIPT", "xdc.tools"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "xdc.tools")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("xdc.tools.Cmdr$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind("Object", om.findStrict("xdc.tools.Cmdr.Object", "xdc.tools"));
    pkgV.bind("Cmdr", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Cmdr");
  }
  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");
  }
  void UNIVERSALConfig$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal");
    po =
        (Proto.Obj)
            om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig.Module", "ti.sdo.ce.universal");
    vo.init2(po, "ti.sdo.ce.universal.UNIVERSALConfig", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("ti.sdo.ce.universal", "ti.sdo.ce.universal"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.universal")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj",
        om.has("ti.sdo.ce.universal.UNIVERSALConfig$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", "./UNIVERSALConfig.xdt");
    atmap.seal("length");
    vo.bind("TEMPLATE$", "./UNIVERSALConfig.xdt");
    pkgV.bind("UNIVERSALConfig", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("UNIVERSALConfig");
  }
Ejemplo n.º 11
0
  void Platform$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.platforms.evm6424.Platform", "ti.platforms.evm6424");
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform.Module", "ti.platforms.evm6424");
    vo.init2(po, "ti.platforms.evm6424.Platform", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule",
        om.findStrict("ti.platforms.evm6424.Platform$$capsule", "ti.platforms.evm6424"));
    vo.bind(
        "Instance",
        om.findStrict("ti.platforms.evm6424.Platform.Instance", "ti.platforms.evm6424"));
    vo.bind(
        "Params", om.findStrict("ti.platforms.evm6424.Platform.Params", "ti.platforms.evm6424"));
    vo.bind(
        "PARAMS",
        ((Proto.Str) om.findStrict("ti.platforms.evm6424.Platform.Params", "ti.platforms.evm6424"))
            .newInstance());
    vo.bind("$package", om.findStrict("ti.platforms.evm6424", "ti.platforms.evm6424"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("Board", om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.evm6424"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.evm6424"));
    vo.bind("Memory", om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424"));
    vo.bind("MemoryMap", om.findStrict("xdc.platform.IPlatform.MemoryMap", "ti.platforms.evm6424"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.platforms.evm6424")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("ti.platforms.evm6424.Platform$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind(
        "Object", om.findStrict("ti.platforms.evm6424.Platform.Object", "ti.platforms.evm6424"));
    pkgV.bind("Platform", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Platform");
  }
  void IUNIVERSAL$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL", "ti.sdo.ce.universal");
    po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal");
    vo.init2(po, "ti.sdo.ce.universal.IUNIVERSAL", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("ti.sdo.ce.universal", "ti.sdo.ce.universal"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    inherits.add("ti.sdo.ce");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("IUNIVERSAL", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("IUNIVERSAL");
    vo.seal(null);
  }
  void G711DEC$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo =
        (Value.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC", "ti.sdo.ce.examples.codecs.g711");
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC.Module", "ti.sdo.ce.examples.codecs.g711");
    vo.init2(po, "ti.sdo.ce.examples.codecs.g711.G711DEC", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule",
        om.findStrict(
            "ti.sdo.ce.examples.codecs.g711.G711DEC$$capsule", "ti.sdo.ce.examples.codecs.g711"));
    vo.bind(
        "$package",
        om.findStrict("ti.sdo.ce.examples.codecs.g711", "ti.sdo.ce.examples.codecs.g711"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.examples.codecs.g711")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj",
        om.has("ti.sdo.ce.examples.codecs.g711.G711DEC$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("G711DEC", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("G711DEC");
  }
Ejemplo n.º 14
0
  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");
  }
Ejemplo n.º 15
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);
  }
Ejemplo n.º 16
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 Bionic$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("google.targets.arm.Bionic", "google.targets.arm");
    po = (Proto.Obj) om.findStrict("google.targets.arm.Bionic.Module", "google.targets.arm");
    vo.init2(po, "google.targets.arm.Bionic", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("google.targets.arm.Bionic$$capsule", "google.targets.arm"));
    vo.bind("$package", om.findStrict("google.targets.arm", "google.targets.arm"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Model", om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"));
    vo.bind("DebugGen", om.findStrict("xdc.bld.ITarget.DebugGen", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.DebugGen", "google.targets.arm"));
    vo.bind("Extension", om.findStrict("xdc.bld.ITarget.Extension", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.Extension", "google.targets.arm"));
    vo.bind(
        "CompileOptions", om.findStrict("xdc.bld.ITarget.CompileOptions", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CompileOptions", "google.targets.arm"));
    vo.bind("OptionSet", om.findStrict("xdc.bld.ITarget.OptionSet", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.OptionSet", "google.targets.arm"));
    vo.bind("CompileGoal", om.findStrict("xdc.bld.ITarget.CompileGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CompileGoal", "google.targets.arm"));
    vo.bind("LinkGoal", om.findStrict("xdc.bld.ITarget.LinkGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.LinkGoal", "google.targets.arm"));
    vo.bind("ArchiveGoal", om.findStrict("xdc.bld.ITarget.ArchiveGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.ArchiveGoal", "google.targets.arm"));
    vo.bind("CommandSet", om.findStrict("xdc.bld.ITarget.CommandSet", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CommandSet", "google.targets.arm"));
    vo.bind("StringArray", om.findStrict("xdc.bld.ITarget.StringArray", "google.targets.arm"));
    vo.bind("TypeInfo", om.findStrict("xdc.bld.ITarget.TypeInfo", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.TypeInfo", "google.targets.arm"));
    vo.bind("StdTypes", om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"));
    vo.bind("Command", om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"));
    vo.bind("Options", om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("google.targets");
    inherits.add("xdc.bld");
    inherits.add("xdc.bld");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "google.targets.arm")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("google.targets.arm.Bionic$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", "xdc/bld/stddefs.xdt");
    atmap.seal("length");
    pkgV.bind("Bionic", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Bionic");
  }
Ejemplo n.º 19
0
  void Examples$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples");
    po = (Proto.Obj) om.findStrict("ti.sdo.ipc.examples.Examples.Module", "ti.sdo.ipc.examples");
    vo.init2(po, "ti.sdo.ipc.examples.Examples", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule", om.findStrict("ti.sdo.ipc.examples.Examples$$capsule", "ti.sdo.ipc.examples"));
    vo.bind("$package", om.findStrict("ti.sdo.ipc.examples", "ti.sdo.ipc.examples"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind(
        "FileDesc",
        om.findStrict("xdc.tools.product.IProductTemplate.FileDesc", "ti.sdo.ipc.examples"));
    tdefs.add(om.findStrict("xdc.tools.product.IProductTemplate.FileDesc", "ti.sdo.ipc.examples"));
    vo.bind(
        "Filter",
        om.findStrict("xdc.tools.product.IProductTemplate.Filter", "ti.sdo.ipc.examples"));
    tdefs.add(om.findStrict("xdc.tools.product.IProductTemplate.Filter", "ti.sdo.ipc.examples"));
    vo.bind(
        "TemplateInfo",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"));
    tdefs.add(
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"));
    vo.bind(
        "TemplateGroup",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"));
    tdefs.add(
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("xdc.tools.product");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ipc.examples")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("ti.sdo.ipc.examples.Examples$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("Examples", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Examples");
  }
Ejemplo n.º 20
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);
  }
Ejemplo n.º 21
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/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);
  }
Ejemplo n.º 22
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());
 }
Ejemplo n.º 23
0
  void SupportLogger$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta");
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta");
    vo.init2(po, "ti.sysbios.rta.SupportLogger", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("ti.sysbios.rta.SupportLogger$$capsule", "ti.sysbios.rta"));
    vo.bind("$package", om.findStrict("ti.sysbios.rta", "ti.sysbios.rta"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    mcfgs.add("Module__diagsEnabled");
    icfgs.add("Module__diagsEnabled");
    mcfgs.add("Module__diagsIncluded");
    icfgs.add("Module__diagsIncluded");
    mcfgs.add("Module__diagsMask");
    icfgs.add("Module__diagsMask");
    mcfgs.add("Module__gateObj");
    icfgs.add("Module__gateObj");
    mcfgs.add("Module__gatePrms");
    icfgs.add("Module__gatePrms");
    mcfgs.add("Module__id");
    icfgs.add("Module__id");
    mcfgs.add("Module__loggerDefined");
    icfgs.add("Module__loggerDefined");
    mcfgs.add("Module__loggerObj");
    icfgs.add("Module__loggerObj");
    mcfgs.add("Module__loggerFxn0");
    icfgs.add("Module__loggerFxn0");
    mcfgs.add("Module__loggerFxn1");
    icfgs.add("Module__loggerFxn1");
    mcfgs.add("Module__loggerFxn2");
    icfgs.add("Module__loggerFxn2");
    mcfgs.add("Module__loggerFxn4");
    icfgs.add("Module__loggerFxn4");
    mcfgs.add("Module__loggerFxn8");
    icfgs.add("Module__loggerFxn8");
    mcfgs.add("Module__startupDoneFxn");
    icfgs.add("Module__startupDoneFxn");
    mcfgs.add("Object__count");
    icfgs.add("Object__count");
    mcfgs.add("Object__heap");
    icfgs.add("Object__heap");
    mcfgs.add("Object__sizeof");
    icfgs.add("Object__sizeof");
    mcfgs.add("Object__table");
    icfgs.add("Object__table");
    mcfgs.add("LM_timestampFreq");
    mcfgs.add("createLogSize");
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("xdc.runtime");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sysbios.rta")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 0);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    if (isCFG) {
      Proto.Str ps = (Proto.Str) vo.find("Module_State");
      if (ps != null) vo.bind("$object", ps.newInstance());
      vo.bind("$$meta_iobj", 1);
    } // isCFG
    vo.bind("$$fxntab", Global.newArray("ti_sysbios_rta_SupportLogger_Module__startupDone__E"));
    vo.bind("$$logEvtCfgs", Global.newArray("LM_timestampFreq"));
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", true);
    atmap.seal("length");
    vo.bind("MODULE_STARTUP$", 1);
    vo.bind("PROXY$", 0);
    loggables.clear();
    vo.bind("$$loggables", loggables.toArray());
    pkgV.bind("SupportLogger", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("SupportLogger");
  }