Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. menu "RT-Thread Kernel"
  2. config RT_NAME_MAX
  3. int "The maximal size of kernel object name"
  4. range 2 32
  5. default 8
  6. help
  7. Each kernel object, such as thread, timer, semaphore etc, has a name,
  8. the RT_NAME_MAX is the maximal size of this object name.
  9. config RT_USING_SMP
  10. bool "Enable SMP(Symmetric multiprocessing)"
  11. default n
  12. help
  13. This option should be selected by machines which have an SMP-
  14. capable CPU.
  15. The only effect of this option is to make the SMP-related
  16. options available to the user for configuration.
  17. config RT_CPUS_NR
  18. int "Number of CPUs"
  19. default 2
  20. depends on RT_USING_SMP
  21. help
  22. Number of CPUs in the system
  23. config RT_ALIGN_SIZE
  24. int "Alignment size for CPU architecture data access"
  25. default 4
  26. help
  27. Alignment size for CPU architecture data access
  28. choice
  29. prompt "The maximal level value of priority of thread"
  30. default RT_THREAD_PRIORITY_32
  31. config RT_THREAD_PRIORITY_8
  32. bool "8"
  33. config RT_THREAD_PRIORITY_32
  34. bool "32"
  35. config RT_THREAD_PRIORITY_256
  36. bool "256"
  37. endchoice
  38. config RT_THREAD_PRIORITY_MAX
  39. int
  40. default 8 if RT_THREAD_PRIORITY_8
  41. default 32 if RT_THREAD_PRIORITY_32
  42. default 256 if RT_THREAD_PRIORITY_256
  43. config RT_TICK_PER_SECOND
  44. int "Tick frequency, Hz"
  45. range 10 1000
  46. default 100
  47. help
  48. System's tick frequency, Hz.
  49. config RT_USING_OVERFLOW_CHECK
  50. bool "Using stack overflow checking"
  51. default y
  52. help
  53. Enable thread stack overflow checking. The stack overflow is checking when
  54. each thread switch.
  55. config RT_USING_HOOK
  56. bool "Enable system hook"
  57. default y
  58. select RT_USING_IDLE_HOOK
  59. help
  60. Enable the hook function when system running, such as idle thread hook,
  61. thread context switch etc.
  62. config RT_USING_IDLE_HOOK
  63. bool "Enable IDLE Task hook"
  64. default y if RT_USING_HOOK
  65. if RT_USING_IDLE_HOOK
  66. config RT_IDEL_HOOK_LIST_SIZE
  67. int "The max size of idel hook list"
  68. default 4
  69. range 1 16
  70. help
  71. The system has a hook list. This is the hook list size.
  72. endif
  73. config IDLE_THREAD_STACK_SIZE
  74. int "The stack size of idle thread"
  75. default 256
  76. config RT_USING_TIMER_SOFT
  77. bool "Enable software timer with a timer thread"
  78. default n
  79. help
  80. the timeout function context of soft-timer is under a high priority timer
  81. thread.
  82. if RT_USING_TIMER_SOFT
  83. config RT_TIMER_THREAD_PRIO
  84. int "The priority level value of timer thread"
  85. default 4
  86. config RT_TIMER_THREAD_STACK_SIZE
  87. int "The stack size of timer thread"
  88. default 512
  89. endif
  90. menuconfig RT_DEBUG
  91. bool "Enable debugging features"
  92. default y
  93. if RT_DEBUG
  94. config RT_DEBUG_INIT_CONFIG
  95. bool "Enable debugging of components initialization"
  96. default n
  97. config RT_DEBUG_INIT
  98. int
  99. default 1 if RT_DEBUG_INIT_CONFIG
  100. config RT_DEBUG_THREAD_CONFIG
  101. bool "Enable debugging of Thread State Changes"
  102. default n
  103. config RT_DEBUG_THREAD
  104. int
  105. default 1 if RT_DEBUG_THREAD_CONFIG
  106. config RT_DEBUG_SCHEDULER_CONFIG
  107. bool "Enable debugging of Scheduler"
  108. default n
  109. config RT_DEBUG_SCHEDULER
  110. int
  111. default 1 if RT_DEBUG_SCHEDULER_CONFIG
  112. config RT_DEBUG_IPC_CONFIG
  113. bool "Enable debugging of IPC"
  114. default n
  115. config RT_DEBUG_IPC
  116. int
  117. default 1 if RT_DEBUG_IPC_CONFIG
  118. config RT_DEBUG_TIMER_CONFIG
  119. bool "Enable debugging of Timer"
  120. default n
  121. config RT_DEBUG_TIMER
  122. int
  123. default 1 if RT_DEBUG_TIMER_CONFIG
  124. config RT_DEBUG_IRQ_CONFIG
  125. bool "Enable debugging of IRQ(Interrupt Request)"
  126. default n
  127. config RT_DEBUG_IRQ
  128. int
  129. default 1 if RT_DEBUG_IRQ_CONFIG
  130. config RT_DEBUG_MEM_CONFIG
  131. bool "Enable debugging of Small Memory Algorithm"
  132. default n
  133. config RT_DEBUG_MEM
  134. int
  135. default 1 if RT_DEBUG_MEM_CONFIG
  136. config RT_DEBUG_SLAB_CONFIG
  137. bool "Enable debugging of SLAB Memory Algorithm"
  138. default n
  139. config RT_DEBUG_SLAB
  140. int
  141. default 1 if RT_DEBUG_SLAB_CONFIG
  142. config RT_DEBUG_MEMHEAP_CONFIG
  143. bool "Enable debugging of Memory Heap Algorithm"
  144. default n
  145. config RT_DEBUG_MEMHEAP
  146. int
  147. default 1 if RT_DEBUG_MEMHEAP_CONFIG
  148. config RT_DEBUG_MODULE_CONFIG
  149. bool "Enable debugging of Application Module"
  150. default n
  151. config RT_DEBUG_MODULE
  152. int
  153. default 1 if RT_DEBUG_MODULE_CONFIG
  154. endif
  155. menu "Inter-Thread communication"
  156. config RT_USING_SEMAPHORE
  157. bool "Enable semaphore"
  158. default y
  159. config RT_USING_MUTEX
  160. bool "Enable mutex"
  161. default y
  162. config RT_USING_EVENT
  163. bool "Enable event flag"
  164. default y
  165. config RT_USING_MAILBOX
  166. bool "Enable mailbox"
  167. default y
  168. config RT_USING_MESSAGEQUEUE
  169. bool "Enable message queue"
  170. default y
  171. config RT_USING_SIGNALS
  172. bool "Enable signals"
  173. select RT_USING_MEMPOOL
  174. default n
  175. help
  176. A signal is an asynchronous notification sent to a specific thread
  177. in order to notify it of an event that occurred.
  178. endmenu
  179. menu "Memory Management"
  180. config RT_USING_MEMPOOL
  181. bool "Using memory pool"
  182. default y
  183. help
  184. Using static memory fixed partition
  185. config RT_USING_MEMHEAP
  186. bool "Using memory heap object"
  187. default n
  188. help
  189. Using memory heap object to manage dynamic memory heap.
  190. choice
  191. prompt "Dynamic Memory Management"
  192. default RT_USING_SMALL_MEM
  193. config RT_USING_NOHEAP
  194. bool "Disable Heap"
  195. config RT_USING_SMALL_MEM
  196. bool "Small Memory Algorithm"
  197. config RT_USING_SLAB
  198. bool "SLAB Algorithm for large memory"
  199. if RT_USING_MEMHEAP
  200. config RT_USING_MEMHEAP_AS_HEAP
  201. bool "Use all of memheap objects as heap"
  202. endif
  203. endchoice
  204. if RT_USING_SMALL_MEM
  205. config RT_USING_MEMTRACE
  206. bool "Enable memory trace"
  207. default n
  208. help
  209. When enable RT_USING_MEMTRACE with shell, developer can call cmd:
  210. 1. memtrace
  211. to dump memory block information.
  212. 2. memcheck
  213. to check memory block to avoid memory overwritten.
  214. And developer also can call memcheck() in each of scheduling
  215. to check memory block to find which thread has wrongly modified
  216. memory.
  217. endif
  218. config RT_USING_HEAP
  219. bool
  220. default n if RT_USING_NOHEAP
  221. default y if RT_USING_SMALL_MEM
  222. default y if RT_USING_SLAB
  223. default y if RT_USING_MEMHEAP_AS_HEAP
  224. endmenu
  225. menu "Kernel Device Object"
  226. config RT_USING_DEVICE
  227. bool "Using device object"
  228. default y
  229. config RT_USING_DEVICE_OPS
  230. bool "Using ops for each device object"
  231. default n
  232. config RT_USING_INTERRUPT_INFO
  233. bool "Enable additional interrupt trace information"
  234. default n
  235. help
  236. Add name and counter information for interrupt trace.
  237. config RT_USING_CONSOLE
  238. bool "Using console for rt_kprintf"
  239. default y
  240. if RT_USING_CONSOLE
  241. config RT_CONSOLEBUF_SIZE
  242. int "the buffer size for console log printf"
  243. default 128
  244. config RT_CONSOLE_DEVICE_NAME
  245. string "the device name for console"
  246. default "uart"
  247. endif
  248. endmenu
  249. config RT_VER_NUM
  250. hex
  251. default 0x40000
  252. help
  253. RT-Thread version number
  254. endmenu