rtconfig.h 3.9 KB

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