rtconfig.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. // <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
  5. // <integer name="RT_NAME_MAX" description="Maximal size of kernel object name length" default="6" />
  6. #define RT_NAME_MAX 8
  7. // <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
  8. #define RT_ALIGN_SIZE 8
  9. // <integer name="RT_THREAD_PRIORITY_MAX" description="Maximal level of thread priority" default="32">
  10. // <item description="8">8</item>
  11. // <item description="32">32</item>
  12. // <item description="256">256</item>
  13. // </integer>
  14. #define RT_THREAD_PRIORITY_MAX 32
  15. // <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
  16. #define RT_TICK_PER_SECOND 100
  17. // <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
  18. // #define RT_DEBUG
  19. // <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" />
  20. // #define RT_THREAD_DEBUG
  21. // <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" />
  22. #define RT_USING_OVERFLOW_CHECK
  23. // </section>
  24. // <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
  25. #define RT_USING_HOOK
  26. // <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" >
  27. // #define RT_USING_TIMER_SOFT
  28. // <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" />
  29. #define RT_TIMER_THREAD_PRIO 8
  30. // <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
  31. #define RT_TIMER_THREAD_STACK_SIZE 512
  32. // <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
  33. #define RT_TIMER_TICK_PER_SECOND 10
  34. // </section>
  35. // <section name="IPC" description="Inter-Thread communication" default="always" >
  36. // <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
  37. #define RT_USING_SEMAPHORE
  38. // <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
  39. #define RT_USING_MUTEX
  40. // <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
  41. #define RT_USING_EVENT
  42. // <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
  43. #define RT_USING_MAILBOX
  44. // <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
  45. #define RT_USING_MESSAGEQUEUE
  46. // </section>
  47. // <section name="MM" description="Memory Management" default="always" >
  48. // <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
  49. #define RT_USING_MEMPOOL
  50. // <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Management in the system" default="true" />
  51. #define RT_USING_MEMHEAP
  52. // <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
  53. #define RT_USING_HEAP
  54. // <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
  55. #define RT_USING_SMALL_MEM
  56. // <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
  57. // #define RT_USING_SLAB
  58. // </section>
  59. // <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
  60. #define RT_USING_DEVICE
  61. // <bool name=RT_USING_DEVICE_IPC description="Using IPC in Device Driver Framework" default="true" />
  62. #define RT_USING_DEVICE_IPC
  63. // <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
  64. #define RT_USING_SERIAL
  65. // <bool name="RT_USING_UART0_0" description="Using UART0_0" default="true" />
  66. #define RT_USING_UART0_0
  67. // <bool name="RT_USING_UART0_1" description="Using UART0_1" default="false" />
  68. // #define RT_USING_UART0_1
  69. // <bool name="RT_USING_UART1_0" description="Using UART1_0" default="false" />
  70. // #define RT_USING_UART1_0
  71. // <bool name="RT_USING_UART1_1" description="Using UART1_1" default="false" />
  72. // #define RT_USING_UART1_1
  73. // <bool name="RT_USING_UART2_0" description="Using UART2_0" default="false" />
  74. // #define RT_USING_UART2_0
  75. // <bool name="RT_USING_UART2_1" description="Using UART2_1" default="false" />
  76. // #define RT_USING_UART2_1
  77. // <bool name="RT_USING_UART2_2" description="Using UART2_2" default="false" />
  78. // #define RT_USING_UART2_2
  79. // <bool name="RT_USING_UART3_0" description="Using UART3_0" default="false" />
  80. // #define RT_USING_UART3_0
  81. // <bool name="RT_USING_UART3_1" description="Using UART3_1" default="false" />
  82. // #define RT_USING_UART3_1
  83. // <bool name="RT_USING_UART3_2" description="Using UART3_2" default="false" />
  84. // #define RT_USING_UART3_2
  85. // <bool name="RT_USING_UART4_0" description="Using UART4_0" default="false" />
  86. // #define RT_USING_UART4_0
  87. // <bool name="RT_USING_UART4_1" description="Using UART4_1" default="false" />
  88. // #define RT_USING_UART4_1
  89. // <bool name="RT_USING_UART4_2" description="Using UART4_2" default="false" />
  90. #define RT_USING_UART4_2
  91. // <bool name="RT_USING_UART5_0" description="Using UART5_0" default="false" />
  92. // #define RT_USING_UART5_0
  93. // <bool name="RT_USING_UART5_1" description="Using UART5_1" default="false" />
  94. // #define RT_USING_UART5_1
  95. // <bool name="RT_USING_UART5_2" description="Using UART5_2" default="false" />
  96. // #define RT_USING_UART5_2
  97. // <bool name="RT_USING_UART6_0" description="Using UART6_0" default="false" />
  98. // #define RT_USING_UART6_0
  99. // <bool name="RT_USING_UART6_1" description="Using UART6_1" default="false" />
  100. // #define RT_USING_UART6_1
  101. // <bool name="RT_USING_UART7_0" description="Using UART7_0" default="false" />
  102. #define RT_USING_UART7_0
  103. // <bool name="RT_USING_UART7_1" description="Using UART7_1" default="false" />
  104. // #define RT_USING_UART7_1
  105. // <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
  106. #define RT_UART_RX_BUFFER_SIZE 64
  107. // </section>
  108. // <section name="RT_USING_CONSOLE" description="Using console" default="true" >
  109. #define RT_USING_CONSOLE
  110. // <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
  111. #define RT_CONSOLEBUF_SIZE 128
  112. // <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
  113. #define RT_CONSOLE_DEVICE_NAME "uart0"
  114. // </section>
  115. // <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
  116. #define RT_USING_COMPONENTS_INIT
  117. // <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
  118. #define RT_USING_FINSH
  119. // <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
  120. #define FINSH_USING_SYMTAB
  121. // <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
  122. #define FINSH_USING_DESCRIPTION
  123. // <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
  124. #define FINSH_THREAD_STACK_SIZE 4096
  125. // </section>
  126. // <section name="LIBC" description="C Runtime library setting" default="always" >
  127. // <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" />
  128. // #define RT_USING_NEWLIB
  129. // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
  130. // #define RT_USING_PTHREADS
  131. // </section>
  132. // <section name="RT_USING_DFS" description="Device file system" default="true" >
  133. // #define RT_USING_DFS
  134. // <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
  135. // #define DFS_USING_WORKDIR
  136. // <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
  137. #define DFS_FILESYSTEMS_MAX 2
  138. // <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
  139. #define DFS_FD_MAX 4
  140. // <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
  141. #define RT_USING_DFS_ELMFAT
  142. // <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0">
  143. // <item description="LFN1">1</item>
  144. // <item description="LFN1">2</item>
  145. // </integer>
  146. #define RT_DFS_ELM_USE_LFN 1
  147. // <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="255" />
  148. #define RT_DFS_ELM_MAX_LFN 64
  149. // <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
  150. // #define RT_USING_DFS_YAFFS2
  151. // <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
  152. // #define RT_USING_DFS_UFFS
  153. // <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" />
  154. // #define RT_USING_DFS_DEVFS
  155. // <bool name="RT_USING_DFS_NFS" description="Using NFS v3 client file system" default="false" />
  156. // #define RT_USING_DFS_NFS
  157. // <string name="RT_NFS_HOST_EXPORT" description="NFSv3 host export" default="192.168.1.5:/" />
  158. #define RT_NFS_HOST_EXPORT "192.168.1.5:/"
  159. // </section>
  160. // <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
  161. // #define RT_USING_CMSIS_OS
  162. // <bool name="RT_USING_RTT_CMSIS" description="Using CMSIS in RTT" default="true" />
  163. #define RT_USING_RTT_CMSIS
  164. // <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
  165. // #define RT_USING_BSP_CMSIS
  166. // </RDTConfigurator>
  167. #endif