You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pcount3D_dss.cfg 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * Copyright 2011 by Texas Instruments Incorporated.
  3. *
  4. * All rights reserved. Property of Texas Instruments Incorporated.
  5. * Restricted rights to use, duplicate or disclose this code are
  6. * granted through contract.
  7. *
  8. */
  9. environment['xdc.cfg.check.fatal'] = 'false';
  10. /********************************************************************
  11. ************************** BIOS Modules ****************************
  12. ********************************************************************/
  13. var Defaults = xdc.useModule('xdc.runtime.Defaults');
  14. var Error = xdc.useModule('xdc.runtime.Error');
  15. var System = xdc.useModule('xdc.runtime.System');
  16. var Text = xdc.useModule('xdc.runtime.Text');
  17. var Memory = xdc.useModule('xdc.runtime.Memory');
  18. var SysStd = xdc.useModule('xdc.runtime.SysStd');
  19. var BIOS = xdc.useModule('ti.sysbios.BIOS');
  20. var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
  21. var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
  22. var Task = xdc.useModule('ti.sysbios.knl.Task');
  23. var Idle = xdc.useModule('ti.sysbios.knl.Idle');
  24. var SEM = xdc.useModule('ti.sysbios.knl.Semaphore');
  25. var Event = xdc.useModule('ti.sysbios.knl.Event');
  26. var Hwi = xdc.useModule('ti.sysbios.family.c64p.Hwi');
  27. var EventCombiner = xdc.useModule('ti.sysbios.family.c64p.EventCombiner');
  28. var Load = xdc.useModule('ti.sysbios.utils.Load');
  29. System.SupportProxy = SysStd;
  30. /* Default Heap Creation: Local L2 memory */
  31. var heapMemParams = new HeapMem.Params();
  32. heapMemParams.size = 11*1024;
  33. heapMemParams.sectionName = "systemHeap";
  34. Program.global.heap0 = HeapMem.create(heapMemParams);
  35. Memory.defaultHeapInstance = Program.global.heap0;
  36. /*
  37. * Enable Event Groups here and registering of ISR for specific GEM INTC is done
  38. * using EventCombiner_dispatchPlug() and Hwi_eventMap() APIs
  39. */
  40. EventCombiner.eventGroupHwiNum[0] = 7;
  41. EventCombiner.eventGroupHwiNum[1] = 8;
  42. EventCombiner.eventGroupHwiNum[2] = 9;
  43. EventCombiner.eventGroupHwiNum[3] = 10;
  44. /* Enable BIOS Task Scheduler */
  45. BIOS.taskEnabled = true;
  46. /* System stack size (used by ISRs and Swis) */
  47. Program.stack = 0x800;
  48. Task.idleTaskStackSize = 800;
  49. /* do not call update for load - Application will call it at inter-frame boundary */
  50. Load.updateInIdle = false;
  51. /* Install idle function to sleep. Note above
  52. Load.updateInIdle is false which allows to sleep in idle.
  53. Also, no other book-keeping etc functions should be installed in the idle thread */
  54. Idle.addFunc('&Pcount3DDemo_sleep');
  55. /*
  56. * Build a custom BIOS library. The custom library will be smaller than the
  57. * pre-built "instrumented" (default) and "non-instrumented" libraries.
  58. *
  59. * The BIOS.logsEnabled parameter specifies whether the Logging is enabled
  60. * within BIOS for this custom build. These logs are used by the RTA and
  61. * UIA analysis tools.
  62. *
  63. * The BIOS.assertsEnabled parameter specifies whether BIOS code will
  64. * include Assert() checks. Setting this parameter to 'false' will generate
  65. * smaller and faster code, but having asserts enabled is recommended for
  66. * early development as the Assert() checks will catch lots of programming
  67. * errors (invalid parameters, etc.)
  68. */
  69. BIOS.libType = BIOS.LibType_Custom;
  70. BIOS.logsEnabled = false;
  71. BIOS.assertsEnabled = true;
  72. /* Make sure libraries are built with 32-bit enum types to be compatible with DSP enum types*/
  73. BIOS.includeXdcRuntime = true;
  74. BIOS.customCCOpts += " --enum_type=int ";
  75. /********************************************************************
  76. * Enabling DebugP Log Support
  77. ********************************************************************/
  78. var Log = xdc.useModule('xdc.runtime.Log');
  79. var Main = xdc.useModule('xdc.runtime.Main');
  80. var Diags = xdc.useModule('xdc.runtime.Diags');
  81. var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
  82. /* Configure the Logger Buffer: */
  83. var loggerBufParams = new LoggerBuf.Params();
  84. loggerBufParams.bufType = LoggerBuf.BufType_CIRCULAR;
  85. loggerBufParams.exitFlush = false;
  86. loggerBufParams.instance.name = "_logInfo";
  87. loggerBufParams.numEntries = 200;
  88. /* Create the Logger and attach this to the application */
  89. MyAppLogger = LoggerBuf.create(loggerBufParams);
  90. Main.common$.logger = MyAppLogger;
  91. Main.common$.diags_USER1 = Diags.RUNTIME_ON;
  92. //Task.common$.diags_USER1 = Diags.RUNTIME_ON;
  93. Task.common$.diags_USER1 = Diags.ALWAYS_ON;
  94. Task.common$.diags_USER2 = Diags.ALWAYS_ON;