rtconfig.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. // <<< Use Configuration Wizard in Context Menu >>>
  5. // <h>Basic Configuration
  6. // <o>Maximal level of thread priority <8-256>
  7. // <i>Default: 32
  8. #define RT_THREAD_PRIORITY_MAX 8
  9. // <o>OS tick per second
  10. // <i>Default: 1000 (1ms)
  11. #define RT_TICK_PER_SECOND 100
  12. // <o>Alignment size for CPU architecture data access
  13. // <i>Default: 4
  14. #define RT_ALIGN_SIZE 4
  15. // <o>the max length of object name<2-16>
  16. // <i>Default: 8
  17. #define RT_NAME_MAX 8
  18. // <c1>Using RT-Thread components initialization
  19. // <i>Using RT-Thread components initialization
  20. #define RT_USING_COMPONENTS_INIT
  21. // </c>
  22. // <c1>Using user main
  23. // <i>Using user main
  24. //#define RT_USING_USER_MAIN
  25. // </c>
  26. // <o>the size of main thread<1-4086>
  27. // <i>Default: 512
  28. #define RT_MAIN_THREAD_STACK_SIZE 256
  29. // </h>
  30. // <h>Debug Configuration
  31. // <c1>enable kernel debug configuration
  32. // <i>Default: enable kernel debug configuration
  33. //#define RT_DEBUG
  34. // </c>
  35. // <o>enable components initialization debug configuration<0-1>
  36. // <i>Default: 0
  37. #define RT_DEBUG_INIT 0
  38. // <c1>thread stack over flow detect
  39. // <i> Diable Thread stack over flow detect
  40. //#define RT_USING_OVERFLOW_CHECK
  41. // </c>
  42. // </h>
  43. // <h>Hook Configuration
  44. // <c1>using hook
  45. // <i>using hook
  46. //#define RT_USING_HOOK
  47. // </c>
  48. // <c1>using idle hook
  49. // <i>using idle hook
  50. //#define RT_USING_IDLE_HOOK
  51. // </c>
  52. // </h>
  53. // <e>Software timers Configuration
  54. // <i> Enables user timers
  55. #define RT_USING_TIMER_SOFT 0
  56. #if RT_USING_TIMER_SOFT == 0
  57. #undef RT_USING_TIMER_SOFT
  58. #endif
  59. // <o>The priority level of timer thread <0-31>
  60. // <i>Default: 4
  61. #define RT_TIMER_THREAD_PRIO 4
  62. // <o>The stack size of timer thread <0-8192>
  63. // <i>Default: 512
  64. #define RT_TIMER_THREAD_STACK_SIZE 512
  65. // <o>The soft-timer tick per second <0-1000>
  66. // <i>Default: 100
  67. #define RT_TIMER_TICK_PER_SECOND 100
  68. // </e>
  69. // <h>IPC(Inter-process communication) Configuration
  70. // <c1>Using Semaphore
  71. // <i>Using Semaphore
  72. #define RT_USING_SEMAPHORE
  73. // </c>
  74. // <c1>Using Mutex
  75. // <i>Using Mutex
  76. #define RT_USING_MUTEX
  77. // </c>
  78. // <c1>Using Event
  79. // <i>Using Event
  80. //#define RT_USING_EVENT
  81. // </c>
  82. // <c1>Using MailBox
  83. // <i>Using MailBox
  84. #define RT_USING_MAILBOX
  85. // </c>
  86. // <c1>Using Message Queue
  87. // <i>Using Message Queue
  88. //#define RT_USING_MESSAGEQUEUE
  89. // </c>
  90. // </h>
  91. // <h>Memory Management Configuration
  92. // <c1>Using Memory Pool Management
  93. // <i>Using Memory Pool Management
  94. //#define RT_USING_MEMPOOL
  95. // </c>
  96. // <c1>Dynamic Heap Management
  97. // <i>Dynamic Heap Management
  98. #define RT_USING_HEAP
  99. // </c>
  100. // <c1>using small memory
  101. // <i>using small memory
  102. #define RT_USING_SMALL_MEM
  103. // </c>
  104. // <c1>using tiny size of memory
  105. // <i>using tiny size of memory
  106. #define RT_USING_TINY_SIZE
  107. // </c>
  108. // </h>
  109. // <h>Device System Configuration
  110. // <c1>Using Device System
  111. // <i>Using Device System
  112. #define RT_USING_DEVICE
  113. // </c>
  114. // <c1>Using device communication
  115. // <i>Using device communication
  116. #define RT_USING_DEVICE_IPC
  117. // </c>
  118. // <c1>Using Serial
  119. // <i>Using Serial
  120. //#define RT_USING_SERIAL
  121. #define RT_SERIAL_USING_DMA
  122. // </c>
  123. // </h>
  124. // <h>Console Configuration
  125. // <c1>Using console
  126. // <i>Using console
  127. #define RT_USING_CONSOLE
  128. // </c>
  129. // <o>the buffer size of console <1-1024>
  130. // <i>the buffer size of console
  131. // <i>Default: 128 (128Byte)
  132. #define RT_CONSOLEBUF_SIZE 128
  133. // <s>The device name for console
  134. // <i>The device name for console
  135. // <i>Default: uart1
  136. #define RT_CONSOLE_DEVICE_NAME "uart1"
  137. // </h>
  138. // <h>Finsh Configuration
  139. // <c1>Using finsh as shell, which is a C-Express shell
  140. // <i>Using finsh as shell, which is a C-Express shell
  141. #define RT_USING_FINSH
  142. // </c>
  143. // <o>the priority of finsh thread <1-7>
  144. // <i>the priority of finsh thread
  145. // <i>Default: 6
  146. #define FINSH_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 8 * 5 + 1)
  147. // <o>the stack of finsh thread <1-4096>
  148. // <i>the stack of finsh thread
  149. // <i>Default: 4096 (4096Byte)
  150. #define FINSH_THREAD_STACK_SIZE 512
  151. // <o>the history lines of finsh thread <1-32>
  152. // <i>the history lines of finsh thread
  153. // <i>Default: 5
  154. #define FINSH_HISTORY_LINES 1
  155. // <c1>Using symbol table in finsh shell
  156. // <i>Using symbol table in finsh shell
  157. #define FINSH_USING_SYMTAB
  158. // </c>
  159. // <c1>Using module shell in finsh
  160. // <i>Using module shell in finsh
  161. #define FINSH_USING_MSH
  162. // </c>
  163. // <c1>Only using module shell in finsh
  164. // <i>Only using module shell in finsh
  165. #define FINSH_USING_MSH_ONLY
  166. // </c>
  167. // </h>
  168. // <<< end of configuration section >>>
  169. #define RT_USING_UART
  170. #define RT_USING_UART1
  171. #endif