Kconfig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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_COLOR
  95. bool "Enable color debugging log"
  96. default y
  97. config RT_DEBUG_INIT_CONFIG
  98. bool "Enable debugging of components initialization"
  99. default n
  100. config RT_DEBUG_INIT
  101. int
  102. default 1 if RT_DEBUG_INIT_CONFIG
  103. config RT_DEBUG_THREAD_CONFIG
  104. bool "Enable debugging of Thread State Changes"
  105. default n
  106. config RT_DEBUG_THREAD
  107. int
  108. default 1 if RT_DEBUG_THREAD_CONFIG
  109. config RT_DEBUG_SCHEDULER_CONFIG
  110. bool "Enable debugging of Scheduler"
  111. default n
  112. config RT_DEBUG_SCHEDULER
  113. int
  114. default 1 if RT_DEBUG_SCHEDULER_CONFIG
  115. config RT_DEBUG_IPC_CONFIG
  116. bool "Enable debugging of IPC"
  117. default n
  118. config RT_DEBUG_IPC
  119. int
  120. default 1 if RT_DEBUG_IPC_CONFIG
  121. config RT_DEBUG_TIMER_CONFIG
  122. bool "Enable debugging of Timer"
  123. default n
  124. config RT_DEBUG_TIMER
  125. int
  126. default 1 if RT_DEBUG_TIMER_CONFIG
  127. config RT_DEBUG_IRQ_CONFIG
  128. bool "Enable debugging of IRQ(Interrupt Request)"
  129. default n
  130. config RT_DEBUG_IRQ
  131. int
  132. default 1 if RT_DEBUG_IRQ_CONFIG
  133. config RT_DEBUG_MEM_CONFIG
  134. bool "Enable debugging of Small Memory Algorithm"
  135. default n
  136. config RT_DEBUG_MEM
  137. int
  138. default 1 if RT_DEBUG_MEM_CONFIG
  139. config RT_DEBUG_SLAB_CONFIG
  140. bool "Enable debugging of SLAB Memory Algorithm"
  141. default n
  142. config RT_DEBUG_SLAB
  143. int
  144. default 1 if RT_DEBUG_SLAB_CONFIG
  145. config RT_DEBUG_MEMHEAP_CONFIG
  146. bool "Enable debugging of Memory Heap Algorithm"
  147. default n
  148. config RT_DEBUG_MEMHEAP
  149. int
  150. default 1 if RT_DEBUG_MEMHEAP_CONFIG
  151. config RT_DEBUG_MODULE_CONFIG
  152. bool "Enable debugging of Application Module"
  153. default n
  154. config RT_DEBUG_MODULE
  155. int
  156. default 1 if RT_DEBUG_MODULE_CONFIG
  157. endif
  158. menu "Inter-Thread communication"
  159. config RT_USING_SEMAPHORE
  160. bool "Enable semaphore"
  161. default y
  162. config RT_USING_MUTEX
  163. bool "Enable mutex"
  164. default y
  165. config RT_USING_EVENT
  166. bool "Enable event flag"
  167. default y
  168. config RT_USING_MAILBOX
  169. bool "Enable mailbox"
  170. default y
  171. config RT_USING_MESSAGEQUEUE
  172. bool "Enable message queue"
  173. default y
  174. config RT_USING_SIGNALS
  175. bool "Enable signals"
  176. select RT_USING_MEMPOOL
  177. default n
  178. help
  179. A signal is an asynchronous notification sent to a specific thread
  180. in order to notify it of an event that occurred.
  181. endmenu
  182. menu "Memory Management"
  183. config RT_USING_MEMPOOL
  184. bool "Using memory pool"
  185. default y
  186. help
  187. Using static memory fixed partition
  188. config RT_USING_MEMHEAP
  189. bool "Using memory heap object"
  190. default n
  191. help
  192. Using memory heap object to manage dynamic memory heap.
  193. choice
  194. prompt "Dynamic Memory Management"
  195. default RT_USING_SMALL_MEM
  196. config RT_USING_NOHEAP
  197. bool "Disable Heap"
  198. config RT_USING_SMALL_MEM
  199. bool "Small Memory Algorithm"
  200. config RT_USING_SLAB
  201. bool "SLAB Algorithm for large memory"
  202. if RT_USING_MEMHEAP
  203. config RT_USING_MEMHEAP_AS_HEAP
  204. bool "Use all of memheap objects as heap"
  205. endif
  206. endchoice
  207. if RT_USING_SMALL_MEM
  208. config RT_USING_MEMTRACE
  209. bool "Enable memory trace"
  210. default n
  211. help
  212. When enable RT_USING_MEMTRACE with shell, developer can call cmd:
  213. 1. memtrace
  214. to dump memory block information.
  215. 2. memcheck
  216. to check memory block to avoid memory overwritten.
  217. And developer also can call memcheck() in each of scheduling
  218. to check memory block to find which thread has wrongly modified
  219. memory.
  220. endif
  221. config RT_USING_HEAP
  222. bool
  223. default n if RT_USING_NOHEAP
  224. default y if RT_USING_SMALL_MEM
  225. default y if RT_USING_SLAB
  226. default y if RT_USING_MEMHEAP_AS_HEAP
  227. endmenu
  228. menu "Kernel Device Object"
  229. config RT_USING_DEVICE
  230. bool "Using device object"
  231. default y
  232. config RT_USING_DEVICE_OPS
  233. bool "Using ops for each device object"
  234. default n
  235. config RT_USING_INTERRUPT_INFO
  236. bool "Enable additional interrupt trace information"
  237. default n
  238. help
  239. Add name and counter information for interrupt trace.
  240. config RT_USING_CONSOLE
  241. bool "Using console for rt_kprintf"
  242. default y
  243. if RT_USING_CONSOLE
  244. config RT_CONSOLEBUF_SIZE
  245. int "the buffer size for console log printf"
  246. default 128
  247. config RT_CONSOLE_DEVICE_NAME
  248. string "the device name for console"
  249. default "uart"
  250. endif
  251. endmenu
  252. config RT_VER_NUM
  253. hex
  254. default 0x40001
  255. help
  256. RT-Thread version number
  257. endmenu