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_mss.cfg 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 Memory = xdc.useModule('xdc.runtime.Memory');
  14. var BIOS = xdc.useModule('ti.sysbios.BIOS');
  15. var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
  16. var HeapBuf = xdc.useModule('ti.sysbios.heaps.HeapBuf');
  17. var Task = xdc.useModule('ti.sysbios.knl.Task');
  18. var Idle = xdc.useModule('ti.sysbios.knl.Idle');
  19. var SEM = xdc.useModule('ti.sysbios.knl.Semaphore');
  20. var Event = xdc.useModule('ti.sysbios.knl.Event');
  21. var Hwi = xdc.useModule('ti.sysbios.family.arm.v7r.vim.Hwi');
  22. var System = xdc.useModule('xdc.runtime.System');
  23. var SysStd = xdc.useModule('xdc.runtime.SysStd');
  24. var clock = xdc.useModule('ti.sysbios.knl.Clock');
  25. var Pmu = xdc.useModule('ti.sysbios.family.arm.v7a.Pmu');
  26. var Load = xdc.useModule('ti.sysbios.utils.Load');
  27. System.SupportProxy = SysStd;
  28. /* FIQ Stack Usage: */
  29. Hwi.fiqStackSize = 2048;
  30. Hwi.fiqStackSection = ".myFiqStack"
  31. Program.sectMap[".myFiqStack"] = "DATA_RAM";
  32. /* Default Heap Creation: Local L2 memory */
  33. var heapMemParams = new HeapMem.Params();
  34. heapMemParams.size = 130*1024;
  35. heapMemParams.sectionName = "systemHeap";
  36. Program.global.heap0 = HeapMem.create(heapMemParams);
  37. Memory.defaultHeapInstance = Program.global.heap0;
  38. System.extendedFormats = '%$L%$S%$F%f';
  39. /* Enable BIOS Task Scheduler */
  40. BIOS.taskEnabled = true;
  41. /* Reduce the size of BIOS */
  42. BIOS.swiEnabled = false; /* We don't use SWIs */
  43. BIOS.libType = BIOS.LibType_Custom;
  44. Program.stack = 2048; /* for isr context */
  45. Task.idleTaskStackSize = 800;
  46. var Text = xdc.useModule('xdc.runtime.Text');
  47. Text.isLoaded = false;
  48. /* do not call update for load - Application will call it at inter-frame boundary */
  49. Load.updateInIdle = false;
  50. /* Install idle function to sleep the R4F (using WFI instruction). Note above
  51. Load.updateInIdle is false which allows to sleep the R4F in idle.
  52. Also, no other book-keeping etc functions should be installed in the idle thread */
  53. Idle.addFunc('&Pcount3DDemo_sleep');
  54. Program.sectMap[".vecs"] = "VECTORS";
  55. /* Make sure libraries are built with 32-bit enum types to be compatible with DSP enum types*/
  56. BIOS.includeXdcRuntime = true;
  57. BIOS.libType = BIOS.LibType_Custom;
  58. BIOS.customCCOpts += " --enum_type=int ";
  59. /********************************************************************
  60. * Enabling DebugP Log Support
  61. ********************************************************************/
  62. var Log = xdc.useModule('xdc.runtime.Log');
  63. var Main = xdc.useModule('xdc.runtime.Main');
  64. var Diags = xdc.useModule('xdc.runtime.Diags');
  65. var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
  66. /* Configure the Logger Buffer: */
  67. var loggerBufParams = new LoggerBuf.Params();
  68. loggerBufParams.bufType = LoggerBuf.BufType_CIRCULAR;
  69. loggerBufParams.exitFlush = false;
  70. loggerBufParams.instance.name = "_logInfo";
  71. loggerBufParams.numEntries = 200;
  72. /* Create the Logger and attach this to the application */
  73. MyAppLogger = LoggerBuf.create(loggerBufParams);
  74. Main.common$.logger = MyAppLogger;
  75. Main.common$.diags_USER1 = Diags.RUNTIME_ON;
  76. Task.common$.diags_USER1 = Diags.RUNTIME_ON;