KConfig 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. bool "Enable system initialization informat print"
  34. default n
  35. help
  36. print the procedure name of initialization
  37. config RT_DEBUG_THREAD
  38. bool "Enable thread switch information dump"
  39. default n
  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 RT_USING_TIMER_SOFT
  49. bool "Enable software timer with a timer thread"
  50. default n
  51. help
  52. the timeout function context of soft-timer is under a high priority timer thread.
  53. if RT_USING_TIMER_SOFT
  54. config RT_TIMER_THREAD_PRIO
  55. int "The priority level value of timer thread"
  56. default 4
  57. config RT_TIMER_THREAD_STACK_SIZE
  58. int "The stack size of timer thread"
  59. default 512
  60. endif
  61. menu "Inter-Thread communication"
  62. config RT_USING_SEMAPHORE
  63. bool "Enable semaphore"
  64. default y
  65. config RT_USING_MUTEX
  66. bool "Enable mutex"
  67. default y
  68. config RT_USING_EVENT
  69. bool "Enable event flag"
  70. default y
  71. config RT_USING_MAILBOX
  72. bool "Enable mailbox"
  73. default y
  74. config RT_USING_MESSAGEQUEUE
  75. bool "Enable message queue"
  76. default y
  77. endmenu
  78. menu "Memory Management"
  79. config RT_USING_MEMPOOL
  80. bool "Using memory pool"
  81. default y
  82. help
  83. Using static memory fixed partition
  84. config RT_USING_MEMHEAP
  85. bool "Using memory heap object"
  86. default n
  87. help
  88. Using memory heap object to manage dynamic memory heap.
  89. config RT_USING_HEAP
  90. bool "Using dynamic memory management"
  91. default y
  92. if RT_USING_HEAP
  93. config RT_USING_SMALL_MEM
  94. bool "The memory management for small memory"
  95. config RT_USING_SLAB
  96. bool "Using SLAB memory management for large memory"
  97. endif
  98. endmenu
  99. menu "Kernel Device Object"
  100. config RT_USING_DEVICE
  101. bool "Using device object"
  102. default y
  103. config RT_USING_CONSOLE
  104. bool "Using console for rt_kprintf"
  105. default y
  106. if RT_USING_CONSOLE
  107. config RT_CONSOLEBUF_SIZE
  108. int "the buffer size for console log printf"
  109. default 128
  110. config RT_CONSOLE_DEVICE_NAME
  111. string "the device name for console"
  112. default "uart"
  113. endif
  114. endmenu
  115. config RT_USING_MODULE
  116. bool "The dynamic module feature"
  117. default n
  118. endmenu