KConfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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, the RT_NAME_MAX is the maximal size of this object name.
  8. config RT_ALIGN_SIZE
  9. int "Alignment size for CPU architecture data access"
  10. default 4
  11. help
  12. Alignment size for CPU architecture data access
  13. config RT_THREAD_PRIORITY_MAX
  14. int "The maximal level value of priority of thread"
  15. range 8 256
  16. default 32
  17. config RT_TICK_PER_SECOND
  18. int "Tick frequency, Hz"
  19. range 10 1000
  20. default 100
  21. help
  22. System's tick frequency, Hz.
  23. config RT_DEBUG
  24. bool "Enable debug features"
  25. default y
  26. if RT_DEBUG
  27. config RT_USING_OVERFLOW_CHECK
  28. bool "Using stack overflow checking"
  29. default y
  30. help
  31. Enable thread stack overflow checking. The stack overflow is checking when each thread switch.
  32. config RT_DEBUG_INIT
  33. int "Enable system initialization informat print"
  34. default 0
  35. help
  36. print the procedure name of initialization
  37. config RT_DEBUG_THREAD
  38. int "Enable thread switch information dump"
  39. default 0
  40. help
  41. print the switch to/from thread name when each thread context switch
  42. endif
  43. config RT_USING_HOOK
  44. bool "Enable system hook"
  45. default y
  46. help
  47. Enable the hook function when system running, such as idle thread hook, thread context switch etc.
  48. config IDLE_THREAD_STACK_SIZE
  49. int "The stack size of idle thread"
  50. default 256
  51. config RT_USING_TIMER_SOFT
  52. bool "Enable software timer with a timer thread"
  53. default n
  54. help
  55. the timeout function context of soft-timer is under a high priority timer thread.
  56. if RT_USING_TIMER_SOFT
  57. config RT_TIMER_THREAD_PRIO
  58. int "The priority level value of timer thread"
  59. default 4
  60. config RT_TIMER_THREAD_STACK_SIZE
  61. int "The stack size of timer thread"
  62. default 512
  63. endif
  64. menu "Inter-Thread communication"
  65. config RT_USING_SEMAPHORE
  66. bool "Enable semaphore"
  67. default y
  68. config RT_USING_MUTEX
  69. bool "Enable mutex"
  70. default y
  71. config RT_USING_EVENT
  72. bool "Enable event flag"
  73. default y
  74. config RT_USING_MAILBOX
  75. bool "Enable mailbox"
  76. default y
  77. config RT_USING_MESSAGEQUEUE
  78. bool "Enable message queue"
  79. default y
  80. config RT_USING_SIGNALS
  81. bool "Enable signals"
  82. select RT_USING_MEMPOOL
  83. default n
  84. help
  85. A signal is an asynchronous notification sent to a specific thread
  86. in order to notify it of an event that occurred.
  87. endmenu
  88. menu "Memory Management"
  89. config RT_USING_MEMPOOL
  90. bool "Using memory pool"
  91. default y
  92. help
  93. Using static memory fixed partition
  94. config RT_USING_MEMHEAP
  95. bool "Using memory heap object"
  96. default n
  97. help
  98. Using memory heap object to manage dynamic memory heap.
  99. config RT_USING_HEAP
  100. bool "Using dynamic memory management"
  101. default y
  102. if RT_USING_HEAP
  103. config RT_USING_SMALL_MEM
  104. bool "The memory management for small memory"
  105. config RT_USING_SLAB
  106. bool "Using SLAB memory management for large memory"
  107. endif
  108. endmenu
  109. menu "Kernel Device Object"
  110. config RT_USING_DEVICE
  111. bool "Using device object"
  112. default y
  113. config RT_USING_INTERRUPT_INFO
  114. bool "Enable additional interrupt trace information"
  115. default n
  116. help
  117. Add name and counter information for interrupt trace.
  118. config RT_USING_CONSOLE
  119. bool "Using console for rt_kprintf"
  120. default y
  121. if RT_USING_CONSOLE
  122. config RT_CONSOLEBUF_SIZE
  123. int "the buffer size for console log printf"
  124. default 128
  125. config RT_CONSOLE_DEVICE_NAME
  126. string "the device name for console"
  127. default "uart"
  128. endif
  129. endmenu
  130. config RT_USING_MODULE
  131. bool "The dynamic module feature"
  132. default n
  133. endmenu