Kconfig 8.2 KB

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