rtconfig.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 16
  7. // <integer name="RT_ALIGN_SIZE" description="Alignment size for CPU architecture data access" default="4" />
  8. #define RT_ALIGN_SIZE 4
  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 256
  15. // <integer name="RT_TICK_PER_SECOND" description="OS tick per second" default="100" />
  16. #define RT_TICK_PER_SECOND 100
  17. // <integer name="IDLE_THREAD_STACK_SIZE" description="The stack size of idle thread" default="512" />
  18. #define IDLE_THREAD_STACK_SIZE 512
  19. // <bool name="RT_USING_MODULE" description="Using Application Module" default="true" />
  20. // #define RT_USING_MODULE
  21. // <bool name="RT_USING_CPU_FFS" description="Using CPU instructions for ffs function" default="true" />
  22. #define RT_USING_CPU_FFS
  23. // <section name="RT_DEBUG" description="Kernel Debug Configuration" default="true" >
  24. #define RT_DEBUG
  25. #define RT_DEBUG_COLOR
  26. // <bool name="RT_THREAD_DEBUG" description="Thread debug enable" default="false" />
  27. // #define RT_THREAD_DEBUG
  28. // <bool name="RT_USING_OVERFLOW_CHECK" description="Thread stack over flow detect" default="true" />
  29. #define RT_USING_OVERFLOW_CHECK
  30. // </section>
  31. // <bool name="RT_USING_HOOK" description="Using hook functions" default="true" />
  32. #define RT_USING_HOOK
  33. // <section name="RT_USING_TIMER_SOFT" description="Using software timer which will start a thread to handle soft-timer" default="true" >
  34. // #define RT_USING_TIMER_SOFT
  35. // <integer name="RT_TIMER_THREAD_PRIO" description="The priority level of timer thread" default="4" />
  36. #define RT_TIMER_THREAD_PRIO 4
  37. // <integer name="RT_TIMER_THREAD_STACK_SIZE" description="The stack size of timer thread" default="512" />
  38. #define RT_TIMER_THREAD_STACK_SIZE 512
  39. // <integer name="RT_TIMER_TICK_PER_SECOND" description="The soft-timer tick per second" default="10" />
  40. #define RT_TIMER_TICK_PER_SECOND 100
  41. // </section>
  42. // <section name="IPC" description="Inter-Thread communication" default="always" >
  43. // <bool name="RT_USING_SEMAPHORE" description="Using semaphore in the system" default="true" />
  44. #define RT_USING_SEMAPHORE
  45. // <bool name="RT_USING_MUTEX" description="Using mutex in the system" default="true" />
  46. #define RT_USING_MUTEX
  47. // <bool name="RT_USING_EVENT" description="Using event group in the system" default="true" />
  48. #define RT_USING_EVENT
  49. // <bool name="RT_USING_MAILBOX" description="Using mailbox in the system" default="true" />
  50. #define RT_USING_MAILBOX
  51. // <bool name="RT_USING_MESSAGEQUEUE" description="Using message queue in the system" default="true" />
  52. #define RT_USING_MESSAGEQUEUE
  53. // </section>
  54. // <section name="MM" description="Memory Management" default="always" >
  55. // <bool name="RT_USING_MEMPOOL" description="Using Memory Pool Management in the system" default="true" />
  56. #define RT_USING_MEMPOOL
  57. // <bool name="RT_USING_MEMHEAP" description="Using Memory Heap Object in the system" default="true" />
  58. #define RT_USING_MEMHEAP
  59. // <bool name="RT_USING_HEAP" description="Using Dynamic Heap Management in the system" default="true" />
  60. #define RT_USING_HEAP
  61. // <bool name="RT_USING_SMALL_MEM" description="Optimizing for small memory" default="false" />
  62. #define RT_USING_SMALL_MEM
  63. // <bool name="RT_USING_SLAB" description="Using SLAB memory management for large memory" default="false" />
  64. // #define RT_USING_SLAB
  65. // </section>
  66. // <section name="RT_USING_DEVICE" description="Using Device Driver Framework" default="true" >
  67. #define RT_USING_DEVICE
  68. // <bool name=RT_USING_DEVICE_IPC description="Using IPC in Device Driver Framework" default="true" />
  69. #define RT_USING_DEVICE_IPC
  70. // <bool name="RT_USING_SERIAL" description="Using Serial Device Driver Framework" default="true" />
  71. #define RT_USING_SERIAL
  72. #define RT_SERIAL_USING_DMA
  73. // <integer name="RT_UART_RX_BUFFER_SIZE" description="The buffer size for UART reception" default="64" />
  74. #define RT_UART_RX_BUFFER_SIZE 64
  75. // </section>
  76. // <bool name="RT_USING_SPI" description="Using SPI Device Driver Framework" default="true" />
  77. //#define RT_USING_SPI
  78. // <bool name="RT_USING_I2C" description="Using I2C Device Driver Framework" default="true" />
  79. #define RT_USING_I2C
  80. // <bool name="RT_USING_RTC" description="Using RTC Device Driver Framework" default="true" />
  81. //#define RT_USING_RTC
  82. // <integer name="RT_MMCSD_THREAD_PREORITY" description="The prority of mmcsd thread" default="15" />
  83. #define RT_MMCSD_THREAD_PREORITY 15
  84. // <section name="RT_USING_CONSOLE" description="Using console" default="true" >
  85. #define RT_USING_CONSOLE
  86. // <integer name="RT_CONSOLEBUF_SIZE" description="The buffer size for console output" default="128" />
  87. #define RT_CONSOLEBUF_SIZE 128
  88. // <string name="RT_CONSOLE_DEVICE_NAME" description="The device name for console" default="uart" />
  89. #define RT_CONSOLE_DEVICE_NAME "uart1"
  90. // </section>
  91. // <bool name="RT_USING_COMPONENTS_INIT" description="Using RT-Thread components initialization" default="true" />
  92. #define RT_USING_COMPONENTS_INIT
  93. // <section name="RT_USING_FINSH" description="Using finsh as shell, which is a C-Express shell" default="true" >
  94. #define RT_USING_FINSH
  95. #define FINSH_USING_MSH
  96. // <bool name="FINSH_USING_SYMTAB" description="Using symbol table in finsh shell" default="true" />
  97. #define FINSH_USING_SYMTAB
  98. // <bool name="FINSH_USING_DESCRIPTION" description="Keeping description in symbol table" default="true" />
  99. #define FINSH_USING_DESCRIPTION
  100. // <integer name="FINSH_THREAD_STACK_SIZE" description="The stack size for finsh thread" default="4096" />
  101. #define FINSH_THREAD_STACK_SIZE 4096
  102. // </section>
  103. // <section name="LIBC" description="C Runtime library setting" default="always" >
  104. // <bool name="RT_USING_LIBC" description="Using C library" default="true" />
  105. #define RT_USING_LIBC
  106. // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
  107. #define RT_USING_PTHREADS
  108. // <bool name="RT_USING_CPLUSPLUS" description="Support C++ programming language" default="true" />
  109. #define RT_USING_CPLUSPLUS
  110. // </section>
  111. // <section name="RT_USING_DFS" description="Device file system" default="true" >
  112. //#define RT_USING_DFS
  113. // <bool name="DFS_USING_WORKDIR" description="Using working directory" default="true" />
  114. #define DFS_USING_WORKDIR
  115. // <integer name="DFS_FILESYSTEMS_MAX" description="The maximal number of mounted file system" default="4" />
  116. #define DFS_FILESYSTEMS_MAX 2
  117. // <integer name="DFS_FD_MAX" description="The maximal number of opened files" default="4" />
  118. #define DFS_FD_MAX 16
  119. // <bool name="RT_USING_DFS_ELMFAT" description="Using ELM FatFs" default="true" />
  120. #define RT_USING_DFS_ELMFAT
  121. // <integer name="RT_DFS_ELM_DRIVES" description="The maximal number of drives of FatFs" default="4" />
  122. #define RT_DFS_ELM_DRIVES 2
  123. // <bool name="RT_DFS_ELM_REENTRANT" description="Support reentrant" default="true" />
  124. #define RT_DFS_ELM_REENTRANT
  125. // <integer name="RT_DFS_ELM_USE_LFN" description="Support long file name" default="0">
  126. // <item description="LFN with static LFN working buffer">1</item>
  127. // <item description="LFN with dynamic LFN working buffer on the stack">2</item>
  128. // <item description="LFN with dynamic LFN working buffer on the heap">3</item>
  129. // </integer>
  130. #define RT_DFS_ELM_USE_LFN 3
  131. // <integer name="RT_DFS_ELM_CODE_PAGE" description="OEM code page" default="936">
  132. #define RT_DFS_ELM_CODE_PAGE 936
  133. // <bool name="RT_DFS_ELM_CODE_PAGE_FILE" description="Using OEM code page file" default="false" />
  134. #define RT_DFS_ELM_CODE_PAGE_FILE
  135. // <integer name="RT_DFS_ELM_MAX_LFN" description="Maximal size of file name length" default="255" />
  136. #define RT_DFS_ELM_MAX_LFN 255
  137. // <integer name="RT_DFS_ELM_MAX_SECTOR_SIZE" description="Maximal size of sector" default="512" />
  138. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  139. // <bool name="RT_USING_DFS_YAFFS2" description="Using YAFFS2" default="false" />
  140. // #define RT_USING_DFS_YAFFS2
  141. // <bool name="RT_USING_DFS_UFFS" description="Using UFFS" default="false" />
  142. // #define RT_USING_DFS_UFFS
  143. // <bool name="RT_USING_DFS_DEVFS" description="Using devfs for device objects" default="true" />
  144. #define RT_USING_DFS_DEVFS
  145. // <bool name="RT_USING_DFS_ROMFS" description="Using ROMFS" default="false" />
  146. //#define RT_USING_DFS_ROMFS
  147. // </section>
  148. // <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" >
  149. // #define RT_USING_LWIP
  150. // <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" />
  151. #define RT_LWIP_ICMP
  152. // <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" />
  153. // #define RT_LWIP_IGMP
  154. // <bool name="RT_LWIP_UDP" description="Enable UDP protocol" default="true" />
  155. #define RT_LWIP_UDP
  156. // <bool name="RT_LWIP_TCP" description="Enable TCP protocol" default="true" />
  157. #define RT_LWIP_TCP
  158. // <bool name="RT_LWIP_DNS" description="Enable DNS protocol" default="true" />
  159. #define RT_LWIP_DNS
  160. // <bool name="RT_LWIP_SNMP" description="Enable SNMP protocol" default="false" />
  161. // #define RT_LWIP_SNMP
  162. // <bool name="RT_LWIP_DHCP" description="Enable DHCP client to get IP address" default="false" />
  163. #define RT_LWIP_DHCP
  164. // <integer name="RT_LWIP_TCPTHREAD_PRIORITY" description="the thread priority of TCP thread" default="128" />
  165. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  166. // <integer name="RT_LWIP_TCPTHREAD_MBOX_SIZE" description="the mail box size of TCP thread to wait for" default="32" />
  167. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  168. // <integer name="RT_LWIP_TCPTHREAD_STACKSIZE" description="the thread stack size of TCP thread" default="4096" />
  169. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  170. // <integer name="RT_LWIP_ETHTHREAD_PRIORITY" description="the thread priority of ethnetif thread" default="144" />
  171. #define RT_LWIP_ETHTHREAD_PRIORITY 14
  172. // <integer name="RT_LWIP_ETHTHREAD_MBOX_SIZE" description="the mail box size of ethnetif thread to wait for" default="8" />
  173. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  174. // <integer name="RT_LWIP_ETHTHREAD_STACKSIZE" description="the stack size of ethnetif thread" default="512" />
  175. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  176. // <ipaddr name="RT_LWIP_IPADDR" description="IP address of device" default="192.168.1.30" />
  177. #define RT_LWIP_IPADDR "192.168.1.30"
  178. // <ipaddr name="RT_LWIP_GWADDR" description="Gateway address of device" default="192.168.1.1" />
  179. #define RT_LWIP_GWADDR "192.168.1.1"
  180. // <ipaddr name="RT_LWIP_MSKADDR" description="Mask address of device" default="255.255.255.0" />
  181. #define RT_LWIP_MSKADDR "255.255.255.0"
  182. // </section>
  183. // </RDTConfigurator>
  184. #define CONFIG_BOARD_IOTCAM
  185. #define CONFIG_CHIP_FH8620
  186. #define CONFIG_PLAT_V2
  187. #define RT_USING_DMA_MEM
  188. #endif