lib_cfg.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. *********************************************************************************************************
  3. * uC/LIB
  4. * CUSTOM LIBRARY MODULES
  5. *
  6. * (c) Copyright 2004-2011; Micrium, Inc.; Weston, FL
  7. *
  8. * All rights reserved. Protected by international copyright laws.
  9. *
  10. * uC/LIB is provided in source form to registered licensees ONLY. It is
  11. * illegal to distribute this source code to any third party unless you receive
  12. * written permission by an authorized Micrium representative. Knowledge of
  13. * the source code may NOT be used to develop a similar product.
  14. *
  15. * Please help us continue to provide the Embedded community with the finest
  16. * software available. Your honesty is greatly appreciated.
  17. *
  18. * You can contact us at www.micrium.com.
  19. *********************************************************************************************************
  20. */
  21. /*
  22. *********************************************************************************************************
  23. *
  24. * CUSTOM LIBRARY CONFIGURATION FILE
  25. *
  26. * TEMPLATE
  27. *
  28. * Filename : lib_cfg.h
  29. * Version : V1.35.00
  30. * Programmer(s) : ITJ
  31. *********************************************************************************************************
  32. */
  33. /*
  34. *********************************************************************************************************
  35. * MODULE
  36. *********************************************************************************************************
  37. */
  38. #ifndef LIB_CFG_MODULE_PRESENT
  39. #define LIB_CFG_MODULE_PRESENT
  40. /*$PAGE*/
  41. /*
  42. *********************************************************************************************************
  43. *********************************************************************************************************
  44. * MEMORY LIBRARY CONFIGURATION
  45. *********************************************************************************************************
  46. *********************************************************************************************************
  47. */
  48. /*
  49. *********************************************************************************************************
  50. * MEMORY LIBRARY ARGUMENT CHECK CONFIGURATION
  51. *
  52. * Note(s) : (1) Configure LIB_MEM_CFG_ARG_CHK_EXT_EN to enable/disable the memory library suite external
  53. * argument check feature :
  54. *
  55. * (a) When ENABLED, arguments received from any port interface provided by the developer
  56. * or application are checked/validated.
  57. *
  58. * (b) When DISABLED, NO arguments received from any port interface provided by the developer
  59. * or application are checked/validated.
  60. *********************************************************************************************************
  61. */
  62. /* Configure external argument check feature (see Note #1) : */
  63. #define LIB_MEM_CFG_ARG_CHK_EXT_EN DEF_DISABLED
  64. /* DEF_DISABLED Argument check DISABLED */
  65. /* DEF_ENABLED Argument check ENABLED */
  66. /*
  67. *********************************************************************************************************
  68. * MEMORY LIBRARY ASSEMBLY OPTIMIZATION CONFIGURATION
  69. *
  70. * Note(s) : (1) Configure LIB_MEM_CFG_OPTIMIZE_ASM_EN to enable/disable assembly-optimized memory function(s).
  71. *********************************************************************************************************
  72. */
  73. /* Configure assembly-optimized function(s) [see Note #1] : */
  74. #define LIB_MEM_CFG_OPTIMIZE_ASM_EN DEF_DISABLED
  75. /* DEF_DISABLED Assembly-optimized function(s) DISABLED */
  76. /* DEF_ENABLED Assembly-optimized function(s) ENABLED */
  77. /*
  78. *********************************************************************************************************
  79. * MEMORY ALLOCATION CONFIGURATION
  80. *
  81. * Note(s) : (1) Configure LIB_MEM_CFG_ALLOC_EN to enable/disable memory allocation functions.
  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 'app_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 'app_cfg.h'
  93. *********************************************************************************************************
  94. */
  95. /* Configure memory allocation feature (see Note #1) : */
  96. #define LIB_MEM_CFG_ALLOC_EN DEF_DISABLED
  97. /* DEF_DISABLED Memory allocation DISABLED */
  98. /* DEF_ENABLED Memory allocation ENABLED */
  99. #define LIB_MEM_CFG_HEAP_SIZE 1024u /* Configure heap memory size [see Note #2a]. */
  100. #if 0 /* Configure heap memory base address (see Note #2b). */
  101. #define LIB_MEM_CFG_HEAP_BASE_ADDR 0x00000000u
  102. #endif
  103. /*$PAGE*/
  104. /*
  105. *********************************************************************************************************
  106. *********************************************************************************************************
  107. * STRING LIBRARY CONFIGURATION
  108. *********************************************************************************************************
  109. *********************************************************************************************************
  110. */
  111. /*
  112. *********************************************************************************************************
  113. * STRING FLOATING POINT CONFIGURATION
  114. *
  115. * Note(s) : (1) Configure LIB_STR_CFG_FP_EN to enable/disable floating point string function(s).
  116. *
  117. * (2) Configure LIB_STR_CFG_FP_MAX_NBR_DIG_SIG to configure the maximum number of significant
  118. * digits to calculate &/or display for floating point string function(s).
  119. *
  120. * See also 'lib_str.h STRING FLOATING POINT DEFINES Note #1'.
  121. *********************************************************************************************************
  122. */
  123. /* Configure floating point feature(s) [see Note #1] : */
  124. #define LIB_STR_CFG_FP_EN DEF_DISABLED
  125. /* DEF_DISABLED Floating point functions DISABLED */
  126. /* DEF_ENABLED Floating point functions ENABLED */
  127. /* Configure floating point feature(s)' number of ... */
  128. /* ... significant digits (see Note #2). */
  129. #define LIB_STR_CFG_FP_MAX_NBR_DIG_SIG LIB_STR_FP_MAX_NBR_DIG_SIG_DFLT
  130. /*$PAGE*/
  131. /*
  132. *********************************************************************************************************
  133. * MODULE END
  134. *********************************************************************************************************
  135. */
  136. #endif /* End of lib cfg module include. */