rtconfig.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* RT_NAME_MAX*/
  5. #define RT_NAME_MAX 8
  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 RT_THREAD_DEBUG */
  16. #define RT_USING_OVERFLOW_CHECK
  17. /* Using Hook */
  18. #define RT_USING_HOOK
  19. /* Using Software Timer */
  20. #define RT_USING_TIMER_SOFT
  21. #define RT_TIMER_THREAD_PRIO 8
  22. #define RT_TIMER_THREAD_STACK_SIZE 512
  23. #define RT_TIMER_TICK_PER_SECOND 10
  24. /* SECTION: IPC */
  25. /* Using Semaphore */
  26. #define RT_USING_SEMAPHORE
  27. /* Using Mutex */
  28. #define RT_USING_MUTEX
  29. /* Using Event */
  30. #define RT_USING_EVENT
  31. /* Using MailBox */
  32. #define RT_USING_MAILBOX
  33. /* Using Message Queue */
  34. #define RT_USING_MESSAGEQUEUE
  35. /* SECTION: Memory Management */
  36. /* Using Memory Pool Management*/
  37. #define RT_USING_MEMPOOL
  38. /* Using Dynamic Heap Management */
  39. #define RT_USING_HEAP
  40. /* Using Small MM */
  41. #define RT_USING_SMALL_MEM
  42. /* Using SLAB Allocator */
  43. /* #define RT_USING_SLAB */
  44. /* SECTION: Device System */
  45. /* Using Device System */
  46. #define RT_USING_DEVICE
  47. /* Using Module System */
  48. #define RT_USING_MODULE
  49. /* SECTION: Console options */
  50. /* the buffer size of console */
  51. #define RT_CONSOLEBUF_SIZE 128
  52. /* SECTION: finsh, a C-Express shell */
  53. /* Using FinSH as Shell*/
  54. #define RT_USING_FINSH
  55. /* Using symbol table */
  56. #define FINSH_USING_SYMTAB
  57. #define FINSH_USING_DESCRIPTION
  58. #define FINSH_THREAD_STACK_SIZE 4096
  59. /* SECTION: a runtime libc library */
  60. /* a runtime libc library */
  61. /* #define RT_USING_NEWLIB */
  62. /* SECTION: C++ support */
  63. /* Using C++ support */
  64. /* #define RT_USING_CPLUSPLUS */
  65. /* SECTION: Device filesystem support */
  66. /* using DFS support */
  67. #define RT_USING_DFS
  68. #define RT_USING_DFS_ELMFAT
  69. /* use long file name feature */
  70. #define RT_DFS_ELM_USE_LFN 1
  71. /* the max number of file length */
  72. #define RT_DFS_ELM_MAX_LFN 32
  73. /* #define RT_USING_DFS_YAFFS2 */
  74. #define RT_USING_DFS_NFS
  75. #define RT_NFS_HOST_EXPORT "192.168.1.5:/"
  76. /* #define DFS_USING_WORKDIR */
  77. /* the max number of mounted filesystem */
  78. #define DFS_FILESYSTEMS_MAX 2
  79. /* the max number of opened files */
  80. #define DFS_FD_MAX 16
  81. /* the max number of cached sector */
  82. #define DFS_CACHE_MAX_NUM 4
  83. /* Enable freemodbus protocal stack*/
  84. /* #define RT_USING_MODBUS */
  85. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  86. /* Using lighweight TCP/IP protocol stack */
  87. #define RT_USING_LWIP
  88. #define RT_LWIP_DNS
  89. /* Trace LwIP protocol */
  90. /* #define RT_LWIP_DEBUG */
  91. /* Enable ICMP protocol */
  92. #define RT_LWIP_ICMP
  93. /* Enable IGMP protocol */
  94. #define RT_LWIP_IGMP
  95. /* Enable UDP protocol */
  96. #define RT_LWIP_UDP
  97. /* Enable TCP protocol */
  98. #define RT_LWIP_TCP
  99. /* the number of simulatenously active TCP connections*/
  100. #define RT_LWIP_TCP_PCB_NUM 5
  101. /* TCP sender buffer space */
  102. #define RT_LWIP_TCP_SND_BUF 1024*10
  103. /* TCP receive window. */
  104. #define RT_LWIP_TCP_WND 1024
  105. /* Enable SNMP protocol */
  106. /* #define RT_LWIP_SNMP */
  107. /* Using DHCP */
  108. /* #define RT_LWIP_DHCP */
  109. #define RT_LWIP_DNS
  110. /* ip address of target */
  111. #define RT_LWIP_IPADDR0 192
  112. #define RT_LWIP_IPADDR1 168
  113. #define RT_LWIP_IPADDR2 1
  114. #define RT_LWIP_IPADDR3 30
  115. /* gateway address of target */
  116. #define RT_LWIP_GWADDR0 192
  117. #define RT_LWIP_GWADDR1 168
  118. #define RT_LWIP_GWADDR2 1
  119. #define RT_LWIP_GWADDR3 1
  120. /* mask address of target */
  121. #define RT_LWIP_MSKADDR0 255
  122. #define RT_LWIP_MSKADDR1 255
  123. #define RT_LWIP_MSKADDR2 255
  124. #define RT_LWIP_MSKADDR3 0
  125. /* the number of blocks for pbuf */
  126. #define RT_LWIP_PBUF_NUM 16
  127. /* thread priority of tcpip thread */
  128. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  129. /* mail box size of tcpip thread to wait for */
  130. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 32
  131. /* thread stack size of tcpip thread */
  132. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  133. /* thread priority of ethnetif thread */
  134. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  135. /* mail box size of ethnetif thread to wait for */
  136. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  137. /* thread stack size of ethnetif thread */
  138. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  139. /* SECTION: RTGUI support */
  140. /* using RTGUI support */
  141. #define RT_USING_RTGUI
  142. /* name length of RTGUI object */
  143. #define RTGUI_NAME_MAX 16
  144. /* support 16 weight font */
  145. #define RTGUI_USING_FONT16
  146. /* support 16 weight font */
  147. #define RTGUI_USING_FONT12
  148. /* support Chinese font */
  149. #define RTGUI_USING_FONTHZ
  150. /* use DFS as file interface */
  151. #define RTGUI_USING_DFS_FILERW
  152. /* use font file as Chinese font */
  153. /* #define RTGUI_USING_HZ_FILE */
  154. /* use Chinese bitmap font */
  155. #define RTGUI_USING_HZ_BMP
  156. /* use small size in RTGUI */
  157. /* #define RTGUI_USING_SMALL_SIZE */
  158. /* use mouse cursor */
  159. /* #define RTGUI_USING_MOUSE_CURSOR */
  160. #endif