rtconfig.h 11 KB

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