dyn_mem.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /******************************************************************************
  2. *
  3. * Copyright (C) 2002-2012 Broadcom Corporation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at:
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. ******************************************************************************/
  18. #ifndef DYN_MEM_H
  19. #define DYN_MEM_H
  20. #include "sdkconfig.h"
  21. #if CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY
  22. #define BTU_DYNAMIC_MEMORY TRUE
  23. #define BTM_DYNAMIC_MEMORY TRUE
  24. #define L2C_DYNAMIC_MEMORY TRUE
  25. #define GATT_DYNAMIC_MEMORY TRUE
  26. #define SMP_DYNAMIC_MEMORY TRUE
  27. #define BTA_DYNAMIC_MEMORY TRUE
  28. #define SDP_DYNAMIC_MEMORY TRUE
  29. #define RFC_DYNAMIC_MEMORY TRUE
  30. #define TCS_DYNAMIC_MEMORY TRUE
  31. #define BNEP_DYNAMIC_MEMORY TRUE
  32. #define AVDT_DYNAMIC_MEMORY TRUE
  33. #define AVCT_DYNAMIC_MEMORY TRUE
  34. #define MCA_DYNAMIC_MEMORY TRUE
  35. #define A2D_DYNAMIC_MEMORY TRUE
  36. #define VDP_DYNAMIC_MEMORY TRUE
  37. #define AVRC_DYNAMIC_MEMORY TRUE
  38. #define BIP_DYNAMIC_MEMORY TRUE
  39. #define BPP_DYNAMIC_MEMORY TRUE
  40. #define CTP_DYNAMIC_MEMORY TRUE
  41. #define FTP_DYNAMIC_MEMORY TRUE
  42. #define HCRP_DYNAMIC_MEMORY TRUE
  43. #define HFP_DYNAMIC_MEMORY TRUE
  44. #define HID_DYNAMIC_MEMORY TRUE
  45. #define HSP2_DYNAMIC_MEMORY TRUE
  46. #define ICP_DYNAMIC_MEMORY TRUE
  47. #define OPP_DYNAMIC_MEMORY TRUE
  48. #define PAN_DYNAMIC_MEMORY TRUE
  49. #define SPP_DYNAMIC_MEMORY TRUE
  50. #define SLIP_DYNAMIC_MEMORY TRUE
  51. #define LLCP_DYNAMIC_MEMORY TRUE
  52. #define BTC_SBC_DEC_DYNAMIC_MEMORY TRUE
  53. #else /* #if CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY */
  54. #define SDP_DYNAMIC_MEMORY FALSE
  55. #define RFC_DYNAMIC_MEMORY FALSE
  56. #define TCS_DYNAMIC_MEMORY FALSE
  57. #define BNEP_DYNAMIC_MEMORY FALSE
  58. #define AVDT_DYNAMIC_MEMORY FALSE
  59. #define AVCT_DYNAMIC_MEMORY FALSE
  60. #define MCA_DYNAMIC_MEMORY FALSE
  61. #define A2D_DYNAMIC_MEMORY FALSE
  62. #define VDP_DYNAMIC_MEMORY FALSE
  63. #define AVRC_DYNAMIC_MEMORY FALSE
  64. #define BIP_DYNAMIC_MEMORY FALSE
  65. #define BPP_DYNAMIC_MEMORY FALSE
  66. #define CTP_DYNAMIC_MEMORY FALSE
  67. #define FTP_DYNAMIC_MEMORY FALSE
  68. #define HCRP_DYNAMIC_MEMORY FALSE
  69. #define HFP_DYNAMIC_MEMORY FALSE
  70. #define HID_DYNAMIC_MEMORY FALSE
  71. #define HSP2_DYNAMIC_MEMORY FALSE
  72. #define ICP_DYNAMIC_MEMORY FALSE
  73. #define OPP_DYNAMIC_MEMORY FALSE
  74. #define PAN_DYNAMIC_MEMORY FALSE
  75. #define SPP_DYNAMIC_MEMORY FALSE
  76. #define SLIP_DYNAMIC_MEMORY FALSE
  77. #define LLCP_DYNAMIC_MEMORY FALSE
  78. #define BTC_SBC_DEC_DYNAMIC_MEMORY FALSE
  79. #endif /* #if CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY */
  80. /****************************************************************************
  81. ** Define memory usage for each CORE component (if not defined in bdroid_buildcfg.h)
  82. ** The default for each component is to use static memory allocations.
  83. */
  84. #ifndef BTU_DYNAMIC_MEMORY
  85. #define BTU_DYNAMIC_MEMORY FALSE
  86. #endif
  87. #ifndef BTM_DYNAMIC_MEMORY
  88. #define BTM_DYNAMIC_MEMORY FALSE
  89. #endif
  90. #ifndef SDP_DYNAMIC_MEMORY
  91. #define SDP_DYNAMIC_MEMORY FALSE
  92. #endif
  93. #ifndef L2C_DYNAMIC_MEMORY
  94. #define L2C_DYNAMIC_MEMORY FALSE
  95. #endif
  96. #ifndef RFC_DYNAMIC_MEMORY
  97. #define RFC_DYNAMIC_MEMORY FALSE
  98. #endif
  99. #ifndef TCS_DYNAMIC_MEMORY
  100. #define TCS_DYNAMIC_MEMORY FALSE
  101. #endif
  102. #ifndef BNEP_DYNAMIC_MEMORY
  103. #define BNEP_DYNAMIC_MEMORY FALSE
  104. #endif
  105. #ifndef AVDT_DYNAMIC_MEMORY
  106. #define AVDT_DYNAMIC_MEMORY FALSE
  107. #endif
  108. #ifndef AVCT_DYNAMIC_MEMORY
  109. #define AVCT_DYNAMIC_MEMORY FALSE
  110. #endif
  111. #ifndef MCA_DYNAMIC_MEMORY
  112. #define MCA_DYNAMIC_MEMORY FALSE
  113. #endif
  114. #ifndef GATT_DYNAMIC_MEMORY
  115. #define GATT_DYNAMIC_MEMORY FALSE
  116. #endif
  117. #ifndef SMP_DYNAMIC_MEMORY
  118. #define SMP_DYNAMIC_MEMORY FALSE
  119. #endif
  120. /****************************************************************************
  121. ** Define memory usage for each PROFILE component (if not defined in bdroid_buildcfg.h)
  122. ** The default for each component is to use static memory allocations.
  123. */
  124. #ifndef A2D_DYNAMIC_MEMORY
  125. #define A2D_DYNAMIC_MEMORY FALSE
  126. #endif
  127. #ifndef VDP_DYNAMIC_MEMORY
  128. #define VDP_DYNAMIC_MEMORY FALSE
  129. #endif
  130. #ifndef AVRC_DYNAMIC_MEMORY
  131. #define AVRC_DYNAMIC_MEMORY FALSE
  132. #endif
  133. #ifndef BIP_DYNAMIC_MEMORY
  134. #define BIP_DYNAMIC_MEMORY FALSE
  135. #endif
  136. #ifndef BPP_DYNAMIC_MEMORY
  137. #define BPP_DYNAMIC_MEMORY FALSE
  138. #endif
  139. #ifndef CTP_DYNAMIC_MEMORY
  140. #define CTP_DYNAMIC_MEMORY FALSE
  141. #endif
  142. #ifndef FTP_DYNAMIC_MEMORY
  143. #define FTP_DYNAMIC_MEMORY FALSE
  144. #endif
  145. #ifndef HCRP_DYNAMIC_MEMORY
  146. #define HCRP_DYNAMIC_MEMORY FALSE
  147. #endif
  148. #ifndef HFP_DYNAMIC_MEMORY
  149. #define HFP_DYNAMIC_MEMORY FALSE
  150. #endif
  151. #ifndef HID_DYNAMIC_MEMORY
  152. #define HID_DYNAMIC_MEMORY FALSE
  153. #endif
  154. #ifndef HSP2_DYNAMIC_MEMORY
  155. #define HSP2_DYNAMIC_MEMORY FALSE
  156. #endif
  157. #ifndef ICP_DYNAMIC_MEMORY
  158. #define ICP_DYNAMIC_MEMORY FALSE
  159. #endif
  160. #ifndef OPP_DYNAMIC_MEMORY
  161. #define OPP_DYNAMIC_MEMORY FALSE
  162. #endif
  163. #ifndef PAN_DYNAMIC_MEMORY
  164. #define PAN_DYNAMIC_MEMORY FALSE
  165. #endif
  166. #ifndef SPP_DYNAMIC_MEMORY
  167. #define SPP_DYNAMIC_MEMORY FALSE
  168. #endif
  169. #ifndef SLIP_DYNAMIC_MEMORY
  170. #define SLIP_DYNAMIC_MEMORY FALSE
  171. #endif
  172. #ifndef LLCP_DYNAMIC_MEMORY
  173. #define LLCP_DYNAMIC_MEMORY FALSE
  174. #endif
  175. /****************************************************************************
  176. ** Define memory usage for BTA (if not defined in bdroid_buildcfg.h)
  177. ** The default for each component is to use static memory allocations.
  178. */
  179. #ifndef BTA_DYNAMIC_MEMORY
  180. #define BTA_DYNAMIC_MEMORY FALSE
  181. #endif
  182. #endif /* #ifdef DYN_MEM_H */