kernel_config.h.in 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _KERNEL_CONFIG_H_
  13. #define _KERNEL_CONFIG_H_
  14. #include "hal_config.h"
  15. //quectel update
  16. #include "quec_proj_config.h"
  17. // @AUTO_GENERATION_NOTICE@
  18. /**
  19. * whether enable sysnv mechanism
  20. */
  21. #cmakedefine CONFIG_KERNEL_SYSNV_ENABLED
  22. /**
  23. * RTOS tick Hz
  24. */
  25. #cmakedefine CONFIG_KERNEL_TICK_HZ @CONFIG_KERNEL_TICK_HZ@
  26. /**
  27. * panic when osiMutexLock is called in ISR
  28. */
  29. #cmakedefine CONFIG_KERNEL_MUTEX_IN_ISR_PANIC
  30. /**
  31. * RTOS tick relaxed time
  32. *
  33. * When it is 0, \p osiThreadSleep, \p osiMutexTryLock and etc. will wakeup
  34. * system at sleep. Otherwise, these APIs will wakeup system with relaxed
  35. * timeout to save power consumption.
  36. */
  37. #cmakedefine CONFIG_KERNEL_OSTICK_RELAXED_TIME @CONFIG_KERNEL_OSTICK_RELAXED_TIME@
  38. /**
  39. * whether \p OSI_ASSERT will panic
  40. */
  41. #cmakedefine CONFIG_KERNEL_ASSERT_ENABLED
  42. /**
  43. * system minimum utc time in second
  44. *
  45. * \p CONFIG_KERNEL_MIN_UTC_SECOND and \p CONFIG_KERNEL_MAX_UTC_SECOND are
  46. * rough check of epoch time.
  47. *
  48. * \code
  49. * $ date -u -d "@946684800"
  50. * Sat Jan 1 00:00:00 UTC 2000
  51. * $ date -u -d "@4102444800"
  52. * Fri Jan 1 00:00:00 UTC 2100
  53. * \endcode
  54. */
  55. #cmakedefine CONFIG_KERNEL_MIN_UTC_SECOND @CONFIG_KERNEL_MIN_UTC_SECOND@LL
  56. /**
  57. * system maximum utc time in second
  58. */
  59. #cmakedefine CONFIG_KERNEL_MAX_UTC_SECOND @CONFIG_KERNEL_MAX_UTC_SECOND@LL
  60. /**
  61. * whether global work queue with OSI_PRIORITY_HIGH enabled
  62. */
  63. #cmakedefine CONFIG_KERNEL_HIGH_PRIO_WQ_ENABLED
  64. /**
  65. * whether global work queue with OSI_PRIORITY_LOW enabled
  66. */
  67. #cmakedefine CONFIG_KERNEL_LOW_PRIO_WQ_ENABLED
  68. /**
  69. * whether global work queue for async file write enabled
  70. */
  71. #cmakedefine CONFIG_KERNEL_FILE_WRITE_WQ_ENABLED
  72. /**
  73. * stack size (in bytes) of idle thread
  74. */
  75. #cmakedefine CONFIG_KERNEL_IDLE_THREAD_STACK_SIZE @CONFIG_KERNEL_IDLE_THREAD_STACK_SIZE@
  76. /**
  77. * stack size (in bytes) of global high priority work queue
  78. */
  79. #cmakedefine CONFIG_KERNEL_HIGH_PRIO_WQ_STACKSIZE @CONFIG_KERNEL_HIGH_PRIO_WQ_STACKSIZE@
  80. /**
  81. * stack size (in bytes) of global low priority work queue
  82. */
  83. #cmakedefine CONFIG_KERNEL_LOW_PRIO_WQ_STACKSIZE @CONFIG_KERNEL_LOW_PRIO_WQ_STACKSIZE@
  84. /**
  85. * stack size (in bytes) of global async file write work queue
  86. */
  87. #cmakedefine CONFIG_KERNEL_FILE_WRITE_WQ_STACKSIZE @CONFIG_KERNEL_FILE_WRITE_WQ_STACKSIZE@
  88. /**
  89. * stack size (in bytes) of timer work queue
  90. */
  91. #cmakedefine CONFIG_KERNEL_TIMER_WQ_STACKSIZE @CONFIG_KERNEL_TIMER_WQ_STACKSIZE@
  92. /**
  93. * minimum periodic timer period in milliseconds
  94. */
  95. #cmakedefine CONFIG_KERNEL_PERIODIC_TIMER_MIN_PERIOD @CONFIG_KERNEL_PERIODIC_TIMER_MIN_PERIOD@
  96. /**
  97. * use 32KHz tick as profile clock (8910)
  98. */
  99. #cmakedefine CONFIG_KERNEL_PROFILE_CLOCK32K
  100. /**
  101. * use 2mHz tick as profile clock (8910)
  102. */
  103. #cmakedefine CONFIG_KERNEL_PROFILE_CLOCK2M
  104. /**
  105. * profile buffer size in bytes
  106. */
  107. #cmakedefine CONFIG_KERNEL_PROFILE_BUF_SIZE @CONFIG_KERNEL_PROFILE_BUF_SIZE@
  108. /**
  109. * use host packet log
  110. */
  111. #cmakedefine CONFIG_KERNEL_HOST_TRACE
  112. /**
  113. * use diag packet log
  114. */
  115. #cmakedefine CONFIG_KERNEL_DIAG_TRACE
  116. /**
  117. * disable traceid forcedly
  118. */
  119. #cmakedefine CONFIG_KERNEL_DISABLE_TRACEID
  120. /**
  121. * size in bytes for each log buffer
  122. */
  123. #cmakedefine CONFIG_KERNEL_TRACE_BUF_SIZE @CONFIG_KERNEL_TRACE_BUF_SIZE@
  124. /**
  125. * log buffer count
  126. */
  127. #cmakedefine CONFIG_KERNEL_TRACE_BUF_COUNT @CONFIG_KERNEL_TRACE_BUF_COUNT@
  128. /**
  129. * external log buffer count
  130. */
  131. #cmakedefine CONFIG_KERNEL_TRACE_EXTERNAL_BUF_COUNT @CONFIG_KERNEL_TRACE_EXTERNAL_BUF_COUNT@
  132. /**
  133. * count of memory allocate/free records
  134. */
  135. #cmakedefine CONFIG_KERNEL_MEM_RECORD_COUNT @CONFIG_KERNEL_MEM_RECORD_COUNT@
  136. /**
  137. * statistics on allocate/free number
  138. */
  139. #cmakedefine CONFIG_KERNEL_MEM_STATISTICS_SUPPORT
  140. /**
  141. * Maximum blue screen handler count
  142. */
  143. #cmakedefine CONFIG_KERNEL_BLUE_SCREEN_HANDLER_COUNT @CONFIG_KERNEL_BLUE_SCREEN_HANDLER_COUNT@
  144. /**
  145. * whether to enable watchdog
  146. *
  147. * By default, watchdog will be enabled when \p BUILD_RELEASE_TYPE is
  148. * "release".
  149. */
  150. #cmakedefine CONFIG_WDT_ENABLE
  151. /**
  152. * whether 32K sleep mode is enabled
  153. */
  154. #cmakedefine CONFIG_KERNEL_32K_SLEEP_ENABLE
  155. /**
  156. * whether PSM is enabled
  157. */
  158. #cmakedefine CONFIG_KERNEL_PSM_ENABLE
  159. /**
  160. * whether PSM is enabled by default
  161. */
  162. #cmakedefine CONFIG_KERNEL_PSM_DEFAULT_ENABLE
  163. /**
  164. * reserved psm data buffer size
  165. */
  166. #cmakedefine CONFIG_KERNEL_PSM_DATA_BUF_SIZE @CONFIG_KERNEL_PSM_DATA_BUF_SIZE@
  167. /**
  168. * whether to enable daplink link 8850 AP
  169. *
  170. * By default, it will be enabled when \p BUILD_RELEASE_TYPE is
  171. * "release". If CONFIG_AP_A5_CLK_AUTO_GATE enable, daplink can't link AP A5.
  172. */
  173. #cmakedefine CONFIG_AP_A5_CLK_AUTO_GATE
  174. /**
  175. * UNISOC LICENSE
  176. */
  177. #cmakedefine CONFIG_ANTIREG_LICENSE_ENABLE
  178. #endif