Kconfig 8.1 KB

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