您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. #if defined(__CC_ARM) || defined(__CLANG_ARM)
  5. #include "RTE_Components.h"
  6. #define RT_USING_FINSH
  7. #if defined(RTE_USING_FINSH)
  8. #define RT_USING_FINSH
  9. #endif //RTE_USING_FINSH
  10. #endif //(__CC_ARM) || (__CLANG_ARM)
  11. // <<< Use Configuration Wizard in Context Menu >>>
  12. // <h>Basic Configuration
  13. // <o>Maximal level of thread priority <8-256>
  14. // <i>Default: 32
  15. #define RT_THREAD_PRIORITY_MAX 32
  16. // <o>OS tick per second
  17. // <i>Default: 1000 (1ms)
  18. #define RT_TICK_PER_SECOND 1000
  19. // <o>Alignment size for CPU architecture data access
  20. // <i>Default: 4
  21. #define RT_ALIGN_SIZE 4
  22. // <o>the max length of object name<2-16>
  23. // <i>Default: 8
  24. #define RT_NAME_MAX 8
  25. // <c1>Using RT-Thread components initialization
  26. // <i>Using RT-Thread components initialization
  27. #define RT_USING_COMPONENTS_INIT
  28. // </c>
  29. #define RT_USING_USER_MAIN
  30. // <o>the stack size of main thread<1-4086>
  31. // <i>Default: 512
  32. #define RT_MAIN_THREAD_STACK_SIZE 1024
  33. // </h>
  34. // <h>Debug Configuration
  35. // <c1>enable kernel debug configuration
  36. // <i>Default: enable kernel debug configuration
  37. //#define RT_DEBUG
  38. // </c>
  39. // <o>enable components initialization debug configuration<0-1>
  40. // <i>Default: 0
  41. #define RT_DEBUG_INIT 0
  42. // <c1>thread stack over flow detect
  43. // <i> Diable Thread stack over flow detect
  44. //#define RT_USING_OVERFLOW_CHECK
  45. // </c>
  46. // </h>
  47. // <h>Hook Configuration
  48. // <c1>using hook
  49. // <i>using hook
  50. //#define RT_USING_HOOK
  51. // </c>
  52. // <c1>using idle hook
  53. // <i>using idle hook
  54. //#define RT_USING_IDLE_HOOK
  55. // </c>
  56. // </h>
  57. // <e>Software timers Configuration
  58. // <i> Enables user timers
  59. #define RT_USING_TIMER_SOFT 1
  60. #if RT_USING_TIMER_SOFT == 0
  61. #undef RT_USING_TIMER_SOFT
  62. #endif
  63. // <o>The priority level of timer thread <0-31>
  64. // <i>Default: 4
  65. #define RT_TIMER_THREAD_PRIO 4
  66. // <o>The stack size of timer thread <0-8192>
  67. // <i>Default: 512
  68. #define RT_TIMER_THREAD_STACK_SIZE 512
  69. // </e>
  70. // <h>IPC(Inter-process communication) Configuration
  71. // <c1>Using Semaphore
  72. // <i>Using Semaphore
  73. #define RT_USING_SEMAPHORE
  74. // </c>
  75. // <c1>Using Mutex
  76. // <i>Using Mutex
  77. //#define RT_USING_MUTEX
  78. // </c>
  79. // <c1>Using Event
  80. // <i>Using Event
  81. //#define RT_USING_EVENT
  82. // </c>
  83. // <c1>Using MailBox
  84. // <i>Using MailBox
  85. #define RT_USING_MAILBOX
  86. // </c>
  87. // <c1>Using Message Queue
  88. // <i>Using Message Queue
  89. //#define RT_USING_MESSAGEQUEUE
  90. // </c>
  91. // </h>
  92. // <h>Memory Management Configuration
  93. // <c1>Dynamic Heap Management
  94. // <i>Dynamic Heap Management
  95. #define RT_USING_HEAP
  96. // </c>
  97. // <c1>using small memory
  98. // <i>using small memory
  99. #define RT_USING_SMALL_MEM
  100. // </c>
  101. // <c1>using tiny size of memory
  102. // <i>using tiny size of memory
  103. //#define RT_USING_TINY_SIZE
  104. // </c>
  105. // </h>
  106. // <h>Console Configuration
  107. // <c1>Using console
  108. // <i>Using console
  109. #define RT_USING_CONSOLE
  110. // </c>
  111. // <o>the buffer size of console <1-1024>
  112. // <i>the buffer size of console
  113. // <i>Default: 128 (128Byte)
  114. #define RT_CONSOLEBUF_SIZE 128
  115. // </h>
  116. #include "finsh_config.h"
  117. #if defined(RT_USING_FINSH)
  118. #define FINSH_USING_MSH
  119. #define FINSH_USING_MSH_ONLY
  120. // <h>Finsh Configuration
  121. // <o>the priority of finsh thread <1-7>
  122. // <i>the priority of finsh thread
  123. // <i>Default: 6
  124. #define __FINSH_THREAD_PRIORITY 5
  125. #define FINSH_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 8 * __FINSH_THREAD_PRIORITY + 1)
  126. // <o>the stack of finsh thread <1-4096>
  127. // <i>the stack of finsh thread
  128. // <i>Default: 4096 (4096Byte)
  129. #define FINSH_THREAD_STACK_SIZE 512
  130. // <o>the history lines of finsh thread <1-32>
  131. // <i>the history lines of finsh thread
  132. // <i>Default: 5
  133. #define FINSH_HISTORY_LINES 1
  134. #define FINSH_USING_SYMTAB
  135. // </h>
  136. #endif
  137. // <<< end of configuration section >>>
  138. #endif