Пример #1
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);
  }
Пример #2
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");
  }
Пример #3
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 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");
  }
Пример #5
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 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");
  }
  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");
  }
Пример #8
0
  void Cmdr$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

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

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