Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. var Defaults = xdc.useModule('xdc.runtime.Defaults');
  2. var Diags = xdc.useModule('xdc.runtime.Diags');
  3. var Error = xdc.useModule('xdc.runtime.Error');
  4. var Log = xdc.useModule('xdc.runtime.Log');
  5. var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
  6. var Main = xdc.useModule('xdc.runtime.Main');
  7. var SysMin = xdc.useModule('xdc.runtime.SysMin');
  8. var System = xdc.useModule('xdc.runtime.System');
  9. var Text = xdc.useModule('xdc.runtime.Text');
  10.  
  11. var BIOS = xdc.useModule('ti.sysbios.BIOS');
  12. var Clock = xdc.useModule('ti.sysbios.knl.Clock');
  13. var Task = xdc.useModule('ti.sysbios.knl.Task');
  14. var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
  15. var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
  16. var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
  17. var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
  18.  
  19. /*
  20. * Uncomment this line to globally disable Asserts.
  21. * All modules inherit the default from the 'Defaults' module. You
  22. * can override these defaults on a per-module basis using Module.common$.
  23. * Disabling Asserts will save code space and improve runtime performance.
  24. Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
  25. */
  26.  
  27. /*
  28. * Uncomment this line to keep module names from being loaded on the target.
  29. * The module name strings are placed in the .const section. Setting this
  30. * parameter to false will save space in the .const section. Error and
  31. * Assert messages will contain an "unknown module" prefix instead
  32. * of the actual module name.
  33. Defaults.common$.namedModule = false;
  34. */
  35.  
  36. /*
  37. * Minimize exit handler array in System. The System module includes
  38. * an array of functions that are registered with System_atexit() to be
  39. * called by System_exit().
  40. */
  41. System.maxAtexitHandlers = 4;
  42.  
  43. /*
  44. * Uncomment this line to disable the Error print function.
  45. * We lose error information when this is disabled since the errors are
  46. * not printed. Disabling the raiseHook will save some code space if
  47. * your app is not using System_printf() since the Error_print() function
  48. * calls System_printf().
  49. Error.raiseHook = null;
  50. */
  51.  
  52. /*
  53. * Uncomment this line to keep Error, Assert, and Log strings from being
  54. * loaded on the target. These strings are placed in the .const section.
  55. * Setting this parameter to false will save space in the .const section.
  56. * Error, Assert and Log message will print raw ids and args instead of
  57. * a formatted message.
  58. Text.isLoaded = false;
  59. */
  60.  
  61. /*
  62. * Uncomment this line to disable the output of characters by SysMin
  63. * when the program exits. SysMin writes characters to a circular buffer.
  64. * This buffer can be viewed using the SysMin Output view in ROV.
  65. SysMin.flushAtExit = false;
  66. */
  67.  
  68. /*
  69. * The BIOS module will create the default heap for the system.
  70. * Specify the size of this default heap.
  71. */
  72. BIOS.heapSize = 0x2000;
  73.  
  74. /*
  75. * Build a custom SYS/BIOS library from sources.
  76. */
  77. BIOS.libType = BIOS.LibType_Custom;
  78.  
  79. /* System stack size (used by ISRs and Swis) */
  80. Program.stack = 0x400;
  81.  
  82. /* Circular buffer size for System_printf() */
  83. SysMin.bufSize = 0x200;
  84.  
  85. /*
  86. * Create and install logger for the whole system
  87.  
  88. var loggerBufParams = new LoggerBuf.Params();
  89. loggerBufParams.numEntries = 32;
  90. var logger0 = LoggerBuf.create(loggerBufParams);
  91. Defaults.common$.logger = logger0;
  92. Main.common$.diags_INFO = Diags.ALWAYS_ON;
  93. */
  94. System.SupportProxy = SysMin;
  95. LoggingSetup.sysbiosSemaphoreLogging = true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement