Exemplo n.º 1
0
  void SupportLogger$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

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

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

    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.SunSparc7$$create",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"),
                    om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"),
                    2,
                    1,
                    false));
    fxn.addArg(0, "revision", $$T_Str, $$UNDEF);
    fxn.addArg(
        1,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("host$platforms$SUN$SunSparc7$$create = function( revision, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n");
    sb.append("var __inst = xdc.om['host.platforms.SUN.SunSparc7.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {revision:revision});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n");
    sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n");
    sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n");
    sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n");
    sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [revision]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.SunSparc7$$construct",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"),
                    null,
                    3,
                    1,
                    false));
    fxn.addArg(
        0,
        "__obj",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN"),
        null);
    fxn.addArg(1, "revision", $$T_Str, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "host$platforms$SUN$SunSparc7$$construct = function( __obj, revision, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {revision:revision});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n");
    sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n");
    sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n");
    sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n");
    sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }
Exemplo n.º 4
0
  void Platform$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.Platform$$create",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"),
                    om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"),
                    3,
                    2,
                    false));
    fxn.addArg(0, "name", $$T_Str, $$UNDEF);
    fxn.addArg(1, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("host$platforms$SUN$Platform$$create = function( name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n");
    sb.append("var __inst = xdc.om['host.platforms.SUN.Platform.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [name, args]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.Platform$$construct",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"),
                    null,
                    4,
                    2,
                    false));
    fxn.addArg(
        0,
        "__obj",
        (Proto) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN"),
        null);
    fxn.addArg(1, "name", $$T_Str, $$UNDEF);
    fxn.addArg(2, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        3,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "host$platforms$SUN$Platform$$construct = function( __obj, name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }
Exemplo n.º 5
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 Bionic$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

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

    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$create",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"),
                    om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"),
                    3,
                    2,
                    false));
    fxn.addArg(0, "pkgName", $$T_Str, $$UNDEF);
    fxn.addArg(1, "lang", $$T_Str, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$ResourceBundle$$create = function( pkgName, lang, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n");
    sb.append("var __inst = xdc.om['xdc.tools.ResourceBundle.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [pkgName, lang]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$construct",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"),
                    null,
                    4,
                    2,
                    false));
    fxn.addArg(
        0, "__obj", (Proto) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools"), null);
    fxn.addArg(1, "pkgName", $$T_Str, $$UNDEF);
    fxn.addArg(2, "lang", $$T_Str, $$UNDEF);
    fxn.addArg(
        3,
        "__params",
        (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "xdc$tools$ResourceBundle$$construct = function( __obj, pkgName, lang, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }
Exemplo n.º 8
0
  void Cmdr$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$create",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"),
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"),
                    2,
                    1,
                    false));
    fxn.addArg(0, "cmdmod", $$T_Obj, $$UNDEF);
    fxn.addArg(
        1,
        "__params",
        (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$Cmdr$$create = function( cmdmod, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n");
    sb.append("var __inst = xdc.om['xdc.tools.Cmdr.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [cmdmod]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$construct",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"), null, 3, 1, false));
    fxn.addArg(0, "__obj", (Proto) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools"), null);
    fxn.addArg(1, "cmdmod", $$T_Obj, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$Cmdr$$construct = function( __obj, cmdmod, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/ezdsp2808/Platform.xs");
    om.bind("ti.platforms.ezdsp2808.Platform$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform.Module", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.ezdsp2808"),
        Global.newObject(
            "id", "0", "boardName", "ezdsp2808", "boardFamily", "ezdsp2808", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.ezdsp2808"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            100.0,
            "catalogName",
            "ti.catalog.c2800",
            "deviceName",
            "TMS320C2808",
            "revision",
            null),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$create", "ti.platforms.ezdsp2808"),
        Global.get("ti$platforms$ezdsp2808$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$construct", "ti.platforms.ezdsp2808"),
        Global.get("ti$platforms$ezdsp2808$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.ezdsp2808.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform.Instance", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codeMemory", $$T_Str, "H0SARAM", "wh");
    po.addFld("dataMemory", $$T_Str, "LSARAM", "wh");
    po.addFld("stackMemory", $$T_Str, "MSARAM", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.ezdsp2808"),
          fxn);
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$Params", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.ezdsp2808"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codeMemory", $$T_Str, "H0SARAM", "wh");
    po.addFld("dataMemory", $$T_Str, "LSARAM", "wh");
    po.addFld("stackMemory", $$T_Str, "MSARAM", "wh");
    po =
        (Proto.Obj)
            om.findStrict("ti.platforms.ezdsp2808.Platform$$Object", "ti.platforms.ezdsp2808");
    po.init(
        "ti.platforms.ezdsp2808.Platform.Object",
        om.findStrict("ti.platforms.ezdsp2808.Platform.Instance", "ti.platforms.ezdsp2808"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.ezdsp2808"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.ezdsp2808"),
          fxn);
  }
Exemplo n.º 10
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);
  }
Exemplo n.º 11
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);
  }