예제 #1
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);
  }
예제 #2
0
  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"));
  }
예제 #3
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);
  }
예제 #4
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());
 }
예제 #5
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
   Global.callFxn("loadPackage", xdcO, "xdc.runtime");
   Global.callFxn("loadPackage", xdcO, "ti.sysbios.knl");
   Global.callFxn("loadPackage", xdcO, "xdc.rov");
 }
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc.bld");
   Global.callFxn("loadPackage", xdcO, "gnu.targets");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
   Global.callFxn("loadPackage", xdcO, "google.targets");
 }
 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());
 }
예제 #8
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);
  }
예제 #9
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ipc.examples.Examples")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ipc.examples")).add(pkgV);
  }
예제 #10
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("xdc.tools.cdoc.sg.Main", "xdc.tools.cdoc.sg"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.cdoc.sg.Main")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools.cdoc.sg")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("google.targets.arm.Bionic", "google.targets.arm"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("google.targets.arm.Bionic")).bless();
    ((Value.Arr) om.findStrict("$packages", "google.targets.arm")).add(pkgV);
  }
예제 #12
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.platforms.evm6424.Platform", "ti.platforms.evm6424"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.platforms.evm6424.Platform")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.platforms.evm6424")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable)
            om.findStrict("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC", "ti.sdo.codecs.mpeg4vdec.ce"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.codecs.mpeg4vdec.ce")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ce.universal.UNIVERSALConfig")).bless();
    ((Value.Obj) om.getv("ti.sdo.ce.universal.IUNIVERSAL")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.universal")).add(pkgV);
  }
예제 #15
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta"));
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sysbios.rta.Agent")).bless();
    ((Value.Obj) om.getv("ti.sysbios.rta.SupportLogger")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sysbios.rta")).add(pkgV);
  }
예제 #16
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("module$meta$init", (Scriptable) om.findStrict("xdc.tools.Cmdr", "xdc.tools"));
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("xdc.tools.ResourceBundle", "xdc.tools"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.Cmdr")).bless();
    ((Value.Obj) om.getv("xdc.tools.ResourceBundle")).bless();
    ((Value.Obj) om.getv("xdc.tools.ICmd")).bless();
    ((Value.Obj) om.getv("xdc.tools.IProductView")).bless();
    ((Value.Obj) om.getv("xdc.tools.IRtscProductTemplate")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools")).add(pkgV);
  }
예제 #17
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "xdc.services.mapping")).add(pkgV);
  }
예제 #18
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.platforms.sdbTitan")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.utils.rtcfg.osal")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.examples.extensions")).add(pkgV);
  }
예제 #21
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");
  }
예제 #22
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");
  }
  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");
  }
예제 #25
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");
  }
예제 #26
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());
 }
예제 #27
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "ti.catalog.c6000");
   Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexm3");
   Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexa9");
   Global.callFxn("loadPackage", xdcO, "xdc.platform");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
 }
  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);
  }
예제 #29
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");
  }
  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");
  }