Kconfig 8.0 KB

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