rtconfig.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* RT_NAME_MAX*/
  5. #define RT_NAME_MAX 32
  6. /* RT_ALIGN_SIZE*/
  7. #define RT_ALIGN_SIZE 4
  8. /* PRIORITY_MAX */
  9. #define RT_THREAD_PRIORITY_MAX 256
  10. /* Tick per Second */
  11. #define RT_TICK_PER_SECOND 100
  12. /* SECTION: RT_DEBUG */
  13. /* Thread Debug */
  14. #define RT_DEBUG
  15. //#define SCHEDULER_DEBUG
  16. /* #define RT_THREAD_DEBUG */
  17. #define RT_USING_OVERFLOW_CHECK
  18. #define RT_USING_INTERRUPT_INFO
  19. /* Using Hook */
  20. #define RT_USING_HOOK
  21. /* Using Software Timer */
  22. #define RT_USING_TIMER_SOFT
  23. #define RT_TIMER_THREAD_PRIO 8
  24. #define RT_TIMER_THREAD_STACK_SIZE 512
  25. #define RT_TIMER_TICK_PER_SECOND 10
  26. /* SECTION: IPC */
  27. /* Using Semaphore */
  28. #define RT_USING_SEMAPHORE
  29. /* Using Mutex */
  30. #define RT_USING_MUTEX
  31. /* Using Event */
  32. #define RT_USING_EVENT
  33. /* Using MailBox */
  34. #define RT_USING_MAILBOX
  35. /* Using Message Queue */
  36. #define RT_USING_MESSAGEQUEUE
  37. /* SECTION: Memory Management */
  38. /* Using Memory Pool Management*/
  39. #define RT_USING_MEMPOOL
  40. /* Using Dynamic Heap Management */
  41. #define RT_USING_HEAP
  42. /* Using Small MM */
  43. /* #define RT_USING_SMALL_MEM */
  44. /* Using SLAB Allocator */
  45. #define RT_USING_SLAB
  46. /* SECTION: the runtime libc library */
  47. /* the runtime libc library */
  48. #define RT_USING_LIBC
  49. #define RT_USING_PTHREADS
  50. /* Using Module System */
  51. #define RT_USING_MODULE
  52. #define RT_USING_LIBDL
  53. /* SECTION: Device System */
  54. /* Using Device System */
  55. #define RT_USING_DEVICE
  56. #define RT_USING_DEVICE_IPC
  57. #define RT_USING_SERIAL
  58. /* SECTION: Console options */
  59. #define RT_USING_CONSOLE
  60. /* the buffer size of console */
  61. #define RT_CONSOLEBUF_SIZE 128
  62. #define RT_CONSOLE_DEVICE_NAME "dbgu"
  63. /* SECTION: finsh, a C-Express shell */
  64. /* Using FinSH as Shell*/
  65. #define RT_USING_FINSH
  66. /* Using symbol table */
  67. #define FINSH_USING_SYMTAB
  68. #define FINSH_USING_DESCRIPTION
  69. #define FINSH_THREAD_STACK_SIZE 4096
  70. #define FINSH_USING_MSH
  71. /* SECTION: C++ support */
  72. /* Using C++ support */
  73. /* #define RT_USING_CPLUSPLUS */
  74. /* SECTION: Device filesystem support */
  75. /* using DFS support */
  76. #define RT_USING_DFS
  77. #define RT_USING_DFS_ELMFAT
  78. /* use long file name feature */
  79. #define RT_DFS_ELM_USE_LFN 2
  80. #define RT_DFS_ELM_REENTRANT
  81. /* define OEM code page */
  82. #define RT_DFS_ELM_CODE_PAGE 936
  83. /* Using OEM code page file */
  84. // #define RT_DFS_ELM_CODE_PAGE_FILE
  85. /* the max number of file length */
  86. #define RT_DFS_ELM_MAX_LFN 128
  87. /* #define RT_USING_DFS_YAFFS2 */
  88. #define RT_USING_DFS_DEVFS
  89. #define RT_USING_DFS_NFS
  90. #define RT_NFS_HOST_EXPORT "192.168.1.5:/"
  91. #define DFS_USING_WORKDIR
  92. /* the max number of mounted filesystem */
  93. #define DFS_FILESYSTEMS_MAX 4
  94. /* the max number of opened files */
  95. #define DFS_FD_MAX 16
  96. /* the max number of cached sector */
  97. #define DFS_CACHE_MAX_NUM 4
  98. /* Enable freemodbus protocol stack*/
  99. /* #define RT_USING_MODBUS */
  100. //#define RT_USING_LED
  101. #define RT_USING_SDIO
  102. #define RT_USING_I2C
  103. #define RT_USING_I2C_BITOPS
  104. #define RT_USING_DBGU
  105. /* #define RT_USING_UART0 */
  106. /* #define RT_USING_UART1 */
  107. /* #define RT_USING_UART2 */
  108. /* #define RT_USING_UART3 */
  109. /* SECTION: lwip, a lightweight TCP/IP protocol stack */
  110. /* Using lightweight TCP/IP protocol stack */
  111. #define RT_USING_LWIP
  112. #define RT_LWIP_DNS
  113. /* Trace LwIP protocol */
  114. // #define RT_LWIP_DEBUG
  115. /* Enable ICMP protocol */
  116. #define RT_LWIP_ICMP
  117. /* Enable IGMP protocol */
  118. #define RT_LWIP_IGMP
  119. /* Enable UDP protocol */
  120. #define RT_LWIP_UDP
  121. /* Enable TCP protocol */
  122. #define RT_LWIP_TCP
  123. /* the number of simulatenously active TCP connections*/
  124. #define RT_LWIP_TCP_PCB_NUM 5
  125. /* TCP sender buffer space */
  126. #define RT_LWIP_TCP_SND_BUF 1024*10
  127. /* TCP receive window. */
  128. #define RT_LWIP_TCP_WND 1024*8
  129. /* Enable SNMP protocol */
  130. /* #define RT_LWIP_SNMP */
  131. /* Using DHCP */
  132. /* #define RT_LWIP_DHCP */
  133. /* ip address of target */
  134. #define RT_LWIP_IPADDR "192.168.1.30"
  135. /* gateway address of target */
  136. #define RT_LWIP_GWADDR "192.168.1.1"
  137. /* mask address of target */
  138. #define RT_LWIP_MSKADDR "255.255.255.0"
  139. /* the number of blocks for pbuf */
  140. #define RT_LWIP_PBUF_NUM 16
  141. /* the number of simultaneously queued TCP */
  142. #define RT_LWIP_TCP_SEG_NUM 40
  143. /* thread priority of tcpip thread */
  144. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  145. /* mail box size of tcpip thread to wait for */
  146. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 32
  147. /* thread stack size of tcpip thread */
  148. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  149. /* thread priority of ethnetif thread */
  150. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  151. /* mail box size of ethnetif thread to wait for */
  152. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  153. /* thread stack size of ethnetif thread */
  154. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  155. /* SECTION: RTGUI support */
  156. /* using RTGUI support */
  157. /* #define RT_USING_RTGUI */
  158. /* name length of RTGUI object */
  159. //#define RTGUI_NAME_MAX 16
  160. /* support 16 weight font */
  161. //#define RTGUI_USING_FONT16
  162. /* support 16 weight font */
  163. //#define RTGUI_USING_FONT12
  164. /* support Chinese font */
  165. //#define RTGUI_USING_FONTHZ
  166. /* use DFS as file interface */
  167. //#define RTGUI_USING_DFS_FILERW
  168. /* use font file as Chinese font */
  169. /* #define RTGUI_USING_HZ_FILE */
  170. /* use Chinese bitmap font */
  171. //#define RTGUI_USING_HZ_BMP
  172. /* use small size in RTGUI */
  173. /* #define RTGUI_USING_SMALL_SIZE */
  174. /* use mouse cursor */
  175. /* #define RTGUI_USING_MOUSE_CURSOR */
  176. /* SECTION: FTK support */
  177. /* using FTK support */
  178. /* #define RT_USING_FTK */
  179. /*
  180. * Note on FTK:
  181. *
  182. * FTK depends :
  183. * #define RT_USING_NEWLIB
  184. * #define DFS_USING_WORKDIR
  185. *
  186. * And the maximal length must great than 64
  187. * #define RT_DFS_ELM_MAX_LFN 128
  188. */
  189. #define RT_USING_COMPONENTS_INIT
  190. #define RT_USING_USER_MAIN
  191. #endif