lib_cfg.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. *********************************************************************************************************
  3. * EXAMPLE CODE
  4. *
  5. * This file is provided as an example on how to use Micrium products.
  6. *
  7. * Please feel free to use any application code labeled as 'EXAMPLE CODE' in
  8. * your application products. Example code may be used as is, in whole or in
  9. * part, or may be used as a reference only. This file can be modified as
  10. * required to meet the end-product requirements.
  11. *
  12. * Please help us continue to provide the Embedded community with the finest
  13. * software available. Your honesty is greatly appreciated.
  14. *
  15. * You can find information about uC/LIB by visiting doc.micrium.com.
  16. * You can contact us at: http://www.micrium.com
  17. *********************************************************************************************************
  18. */
  19. /*
  20. *********************************************************************************************************
  21. *
  22. * CUSTOM LIBRARY CONFIGURATION FILE
  23. *
  24. * TEMPLATE
  25. *
  26. * Filename : lib_cfg.h
  27. * Version : V1.38.01.00
  28. * Programmer(s) : FBJ
  29. * JFD
  30. *********************************************************************************************************
  31. */
  32. /*
  33. *********************************************************************************************************
  34. * MODULE
  35. *********************************************************************************************************
  36. */
  37. #ifndef LIB_CFG_MODULE_PRESENT
  38. #define LIB_CFG_MODULE_PRESENT
  39. /*
  40. *********************************************************************************************************
  41. *********************************************************************************************************
  42. * MEMORY LIBRARY CONFIGURATION
  43. *********************************************************************************************************
  44. *********************************************************************************************************
  45. */
  46. /*
  47. *********************************************************************************************************
  48. * MEMORY LIBRARY ARGUMENT CHECK CONFIGURATION
  49. *
  50. * Note(s) : (1) Configure LIB_MEM_CFG_ARG_CHK_EXT_EN to enable/disable the memory library suite external
  51. * argument check feature :
  52. *
  53. * (a) When ENABLED, arguments received from any port interface provided by the developer
  54. * or application are checked/validated.
  55. *
  56. * (b) When DISABLED, NO arguments received from any port interface provided by the developer
  57. * or application are checked/validated.
  58. *********************************************************************************************************
  59. */
  60. /* External argument check. */
  61. /* Indicates if arguments received from any port ... */
  62. /* ... interface provided by the developer or ... */
  63. /* ... application are checked/validated. */
  64. #define LIB_MEM_CFG_ARG_CHK_EXT_EN DEF_DISABLED
  65. /*
  66. *********************************************************************************************************
  67. * MEMORY LIBRARY ASSEMBLY OPTIMIZATION CONFIGURATION
  68. *
  69. * Note(s) : (1) Configure LIB_MEM_CFG_OPTIMIZE_ASM_EN to enable/disable assembly-optimized memory function(s).
  70. *********************************************************************************************************
  71. */
  72. /* Assembly-optimized function(s). */
  73. /* Enable/disable assembly-optimized memory ... */
  74. /* ... function(s). [see Note #1] */
  75. #define LIB_MEM_CFG_OPTIMIZE_ASM_EN DEF_ENABLED
  76. /*
  77. *********************************************************************************************************
  78. * MEMORY ALLOCATION CONFIGURATION
  79. *
  80. * Note(s) : (1) Configure LIB_MEM_CFG_DBG_INFO_EN to enable/disable memory allocation usage tracking
  81. * that associates a name with each segment or dynamic pool allocated.
  82. *
  83. * (2) (a) Configure LIB_MEM_CFG_HEAP_SIZE with the desired size of heap memory (in octets).
  84. *
  85. * (b) Configure LIB_MEM_CFG_HEAP_BASE_ADDR to specify a base address for heap memory :
  86. *
  87. * (1) Heap initialized to specified application memory, if LIB_MEM_CFG_HEAP_BASE_ADDR
  88. * #define'd in 'lib_cfg.h';
  89. * CANNOT #define to address 0x0
  90. *
  91. * (2) Heap declared to Mem_Heap[] in 'lib_mem.c', if LIB_MEM_CFG_HEAP_BASE_ADDR
  92. * NOT #define'd in 'lib_cfg.h'
  93. *********************************************************************************************************
  94. */
  95. /* Allocation debugging information. */
  96. /* Enable/disable allocation of debug information ... */
  97. /* ... associated to each memory allocation. */
  98. #define LIB_MEM_CFG_DBG_INFO_EN DEF_DISABLED
  99. /* Heap memory size (in bytes). */
  100. /* Configure the desired size of the heap memory. ... */
  101. /* ... Set to 0 to disable heap allocation features. */
  102. #define LIB_MEM_CFG_HEAP_SIZE (1u * 1024u)
  103. /* Heap memory padding alignment (in bytes). */
  104. /* Configure the desired size of padding alignment ... */
  105. /* ... of each buffer allocated from the heap. */
  106. #define LIB_MEM_CFG_HEAP_PADDING_ALIGN LIB_MEM_PADDING_ALIGN_NONE
  107. #if 0 /* Remove this to have heap alloc at specified addr. */
  108. #define LIB_MEM_CFG_HEAP_BASE_ADDR 0x00000000 /* Configure heap memory base address (see Note #2b). */
  109. #endif
  110. /*
  111. *********************************************************************************************************
  112. *********************************************************************************************************
  113. * STRING LIBRARY CONFIGURATION
  114. *********************************************************************************************************
  115. *********************************************************************************************************
  116. */
  117. /*
  118. *********************************************************************************************************
  119. * STRING FLOATING POINT CONFIGURATION
  120. *
  121. * Note(s) : (1) Configure LIB_STR_CFG_FP_EN to enable/disable floating point string function(s).
  122. *
  123. * (2) Configure LIB_STR_CFG_FP_MAX_NBR_DIG_SIG to configure the maximum number of significant
  124. * digits to calculate &/or display for floating point string function(s).
  125. *
  126. * See also 'lib_str.h STRING FLOATING POINT DEFINES Note #1'.
  127. *********************************************************************************************************
  128. */
  129. /* Floating point feature(s). */
  130. /* Enable/disable floating point to string functions. */
  131. #define LIB_STR_CFG_FP_EN DEF_DISABLED
  132. /* Floating point number of significant digits. */
  133. /* Configure the maximum number of significant ... */
  134. /* ... digits to calculate &/or display for ... */
  135. /* ... floating point string function(s). */
  136. #define LIB_STR_CFG_FP_MAX_NBR_DIG_SIG LIB_STR_FP_MAX_NBR_DIG_SIG_DFLT
  137. /*
  138. *********************************************************************************************************
  139. * MODULE END
  140. *********************************************************************************************************
  141. */
  142. #endif /* End of lib cfg module include. */