dyn_mem.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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_CLASSIC_BT_ENABLED
  22. #define SDP_DYNAMIC_MEMORY FALSE
  23. #define RFC_DYNAMIC_MEMORY FALSE
  24. #define TCS_DYNAMIC_MEMORY FALSE
  25. #define BNEP_DYNAMIC_MEMORY FALSE
  26. #define AVDT_DYNAMIC_MEMORY FALSE
  27. #define AVCT_DYNAMIC_MEMORY FALSE
  28. #define MCA_DYNAMIC_MEMORY FALSE
  29. #define A2D_DYNAMIC_MEMORY FALSE
  30. #define VDP_DYNAMIC_MEMORY FALSE
  31. #define AVRC_DYNAMIC_MEMORY FALSE
  32. #define BIP_DYNAMIC_MEMORY FALSE
  33. #define BPP_DYNAMIC_MEMORY FALSE
  34. #define CTP_DYNAMIC_MEMORY FALSE
  35. #define FTP_DYNAMIC_MEMORY FALSE
  36. #define HCRP_DYNAMIC_MEMORY FALSE
  37. #define HFP_DYNAMIC_MEMORY FALSE
  38. #define HID_DYNAMIC_MEMORY FALSE
  39. #define HSP2_DYNAMIC_MEMORY FALSE
  40. #define ICP_DYNAMIC_MEMORY FALSE
  41. #define OPP_DYNAMIC_MEMORY FALSE
  42. #define PAN_DYNAMIC_MEMORY FALSE
  43. #define SPP_DYNAMIC_MEMORY FALSE
  44. #define SLIP_DYNAMIC_MEMORY FALSE
  45. #define LLCP_DYNAMIC_MEMORY FALSE
  46. #else /* #if CONFIG_CLASSIC_BT_ENABLED */
  47. #define SDP_DYNAMIC_MEMORY TRUE
  48. #define RFC_DYNAMIC_MEMORY TRUE
  49. #define TCS_DYNAMIC_MEMORY TRUE
  50. #define BNEP_DYNAMIC_MEMORY TRUE
  51. #define AVDT_DYNAMIC_MEMORY TRUE
  52. #define AVCT_DYNAMIC_MEMORY TRUE
  53. #define MCA_DYNAMIC_MEMORY TRUE
  54. #define A2D_DYNAMIC_MEMORY TRUE
  55. #define VDP_DYNAMIC_MEMORY TRUE
  56. #define AVRC_DYNAMIC_MEMORY TRUE
  57. #define BIP_DYNAMIC_MEMORY TRUE
  58. #define BPP_DYNAMIC_MEMORY TRUE
  59. #define CTP_DYNAMIC_MEMORY TRUE
  60. #define FTP_DYNAMIC_MEMORY TRUE
  61. #define HCRP_DYNAMIC_MEMORY TRUE
  62. #define HFP_DYNAMIC_MEMORY TRUE
  63. #define HID_DYNAMIC_MEMORY TRUE
  64. #define HSP2_DYNAMIC_MEMORY TRUE
  65. #define ICP_DYNAMIC_MEMORY TRUE
  66. #define OPP_DYNAMIC_MEMORY TRUE
  67. #define PAN_DYNAMIC_MEMORY TRUE
  68. #define SPP_DYNAMIC_MEMORY TRUE
  69. #define SLIP_DYNAMIC_MEMORY TRUE
  70. #define LLCP_DYNAMIC_MEMORY TRUE
  71. #endif /* #if CONFIG_CLASSIC_BT_ENABLED */
  72. /****************************************************************************
  73. ** Define memory usage for each CORE component (if not defined in bdroid_buildcfg.h)
  74. ** The default for each component is to use static memory allocations.
  75. */
  76. #ifndef BTU_DYNAMIC_MEMORY
  77. #define BTU_DYNAMIC_MEMORY FALSE
  78. #endif
  79. #ifndef BTM_DYNAMIC_MEMORY
  80. #define BTM_DYNAMIC_MEMORY FALSE
  81. #endif
  82. #ifndef SDP_DYNAMIC_MEMORY
  83. #define SDP_DYNAMIC_MEMORY FALSE
  84. #endif
  85. #ifndef L2C_DYNAMIC_MEMORY
  86. #define L2C_DYNAMIC_MEMORY FALSE
  87. #endif
  88. #ifndef RFC_DYNAMIC_MEMORY
  89. #define RFC_DYNAMIC_MEMORY FALSE
  90. #endif
  91. #ifndef TCS_DYNAMIC_MEMORY
  92. #define TCS_DYNAMIC_MEMORY FALSE
  93. #endif
  94. #ifndef BNEP_DYNAMIC_MEMORY
  95. #define BNEP_DYNAMIC_MEMORY FALSE
  96. #endif
  97. #ifndef AVDT_DYNAMIC_MEMORY
  98. #define AVDT_DYNAMIC_MEMORY FALSE
  99. #endif
  100. #ifndef AVCT_DYNAMIC_MEMORY
  101. #define AVCT_DYNAMIC_MEMORY FALSE
  102. #endif
  103. #ifndef MCA_DYNAMIC_MEMORY
  104. #define MCA_DYNAMIC_MEMORY FALSE
  105. #endif
  106. #ifndef GATT_DYNAMIC_MEMORY
  107. #define GATT_DYNAMIC_MEMORY FALSE
  108. #endif
  109. #ifndef SMP_DYNAMIC_MEMORY
  110. #define SMP_DYNAMIC_MEMORY FALSE
  111. #endif
  112. /****************************************************************************
  113. ** Define memory usage for each PROFILE component (if not defined in bdroid_buildcfg.h)
  114. ** The default for each component is to use static memory allocations.
  115. */
  116. #ifndef A2D_DYNAMIC_MEMORY
  117. #define A2D_DYNAMIC_MEMORY FALSE
  118. #endif
  119. #ifndef VDP_DYNAMIC_MEMORY
  120. #define VDP_DYNAMIC_MEMORY FALSE
  121. #endif
  122. #ifndef AVRC_DYNAMIC_MEMORY
  123. #define AVRC_DYNAMIC_MEMORY FALSE
  124. #endif
  125. #ifndef BIP_DYNAMIC_MEMORY
  126. #define BIP_DYNAMIC_MEMORY FALSE
  127. #endif
  128. #ifndef BPP_DYNAMIC_MEMORY
  129. #define BPP_DYNAMIC_MEMORY FALSE
  130. #endif
  131. #ifndef CTP_DYNAMIC_MEMORY
  132. #define CTP_DYNAMIC_MEMORY FALSE
  133. #endif
  134. #ifndef FTP_DYNAMIC_MEMORY
  135. #define FTP_DYNAMIC_MEMORY FALSE
  136. #endif
  137. #ifndef HCRP_DYNAMIC_MEMORY
  138. #define HCRP_DYNAMIC_MEMORY FALSE
  139. #endif
  140. #ifndef HFP_DYNAMIC_MEMORY
  141. #define HFP_DYNAMIC_MEMORY FALSE
  142. #endif
  143. #ifndef HID_DYNAMIC_MEMORY
  144. #define HID_DYNAMIC_MEMORY FALSE
  145. #endif
  146. #ifndef HSP2_DYNAMIC_MEMORY
  147. #define HSP2_DYNAMIC_MEMORY FALSE
  148. #endif
  149. #ifndef ICP_DYNAMIC_MEMORY
  150. #define ICP_DYNAMIC_MEMORY FALSE
  151. #endif
  152. #ifndef OPP_DYNAMIC_MEMORY
  153. #define OPP_DYNAMIC_MEMORY FALSE
  154. #endif
  155. #ifndef PAN_DYNAMIC_MEMORY
  156. #define PAN_DYNAMIC_MEMORY FALSE
  157. #endif
  158. #ifndef SPP_DYNAMIC_MEMORY
  159. #define SPP_DYNAMIC_MEMORY FALSE
  160. #endif
  161. #ifndef SLIP_DYNAMIC_MEMORY
  162. #define SLIP_DYNAMIC_MEMORY FALSE
  163. #endif
  164. #ifndef LLCP_DYNAMIC_MEMORY
  165. #define LLCP_DYNAMIC_MEMORY FALSE
  166. #endif
  167. /****************************************************************************
  168. ** Define memory usage for BTA (if not defined in bdroid_buildcfg.h)
  169. ** The default for each component is to use static memory allocations.
  170. */
  171. #ifndef BTA_DYNAMIC_MEMORY
  172. #define BTA_DYNAMIC_MEMORY FALSE
  173. #endif
  174. #endif /* #ifdef DYN_MEM_H */