rtconfig.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 8
  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_DEBUG_COLOR
  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: Device System */
  47. /* Using Device System */
  48. #define RT_USING_DEVICE
  49. #define RT_USING_DEVICE_IPC
  50. /* SECTION: Console options */
  51. /* the buffer size of console */
  52. #define RT_CONSOLEBUF_SIZE 128
  53. /* SECTION: finsh, a C-Express shell */
  54. /* Using FinSH as Shell*/
  55. #define RT_USING_FINSH
  56. #define FINSH_USING_SYMTAB
  57. #define FINSH USING DESCRIPTION
  58. /* SECTION: a runtime libc library */
  59. /* a runtime libc library */
  60. /* SECTION: a mini libc */
  61. /* SECTION: C++ support */
  62. /* Using C++ support */
  63. /* #define RT_USING_CPLUSPLUS */
  64. /* SECTION: Device filesystem support */
  65. /* using DFS support */
  66. #define RT_USING_DFS
  67. #define RT_USING_DFS_ELMFAT
  68. /* #define RT_USING_DFS_YAFFS2 */
  69. /* #define DFS_USING_WORKDIR */
  70. /* the max number of mounted filesystem */
  71. #define DFS_FILESYSTEMS_MAX 2
  72. /* the max number of opened files */
  73. #define DFS_FD_MAX 16
  74. /* the max number of cached sector */
  75. #define DFS_CACHE_MAX_NUM 4
  76. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  77. /* Using lighweight TCP/IP protocol stack */
  78. #define RT_USING_LWIP
  79. #define RT_LWIP_DNS
  80. /* Trace LwIP protocol */
  81. /* #define RT_LWIP_DEBUG */
  82. /* Enable ICMP protocol */
  83. #define RT_LWIP_ICMP
  84. /* Enable IGMP protocol */
  85. #define RT_LWIP_IGMP
  86. /* Enable UDP protocol */
  87. #define RT_LWIP_UDP
  88. /* Enable TCP protocol */
  89. #define RT_LWIP_TCP
  90. /* the number of simulatenously active TCP connections*/
  91. #define RT_LWIP_TCP_PCB_NUM 5
  92. /* TCP sender buffer space */
  93. #define RT_LWIP_TCP_SND_BUF 1024*10
  94. /* TCP receive window. */
  95. #define RT_LWIP_TCP_WND 1024
  96. /* Enable SNMP protocol */
  97. /* #define RT_LWIP_SNMP */
  98. /* Using DHCP */
  99. /* #define RT_LWIP_DHCP */
  100. /* ip address of target */
  101. #define RT_LWIP_IPADDR0 192
  102. #define RT_LWIP_IPADDR1 168
  103. #define RT_LWIP_IPADDR2 1
  104. #define RT_LWIP_IPADDR3 30
  105. /* gateway address of target */
  106. #define RT_LWIP_GWADDR0 192
  107. #define RT_LWIP_GWADDR1 168
  108. #define RT_LWIP_GWADDR2 1
  109. #define RT_LWIP_GWADDR3 1
  110. /* mask address of target */
  111. #define RT_LWIP_MSKADDR0 255
  112. #define RT_LWIP_MSKADDR1 255
  113. #define RT_LWIP_MSKADDR2 255
  114. #define RT_LWIP_MSKADDR3 0
  115. /* the number of blocks for pbuf */
  116. #define RT_LWIP_PBUF_NUM 16
  117. /* thread priority of tcpip thread */
  118. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  119. /* mail box size of tcpip thread to wait for */
  120. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  121. /* thread stack size of tcpip thread */
  122. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  123. /* thread priority of ethnetif thread */
  124. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  125. /* mail box size of ethnetif thread to wait for */
  126. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  127. /* thread stack size of ethnetif thread */
  128. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  129. /* SECTION: RTGUI support */
  130. /* using RTGUI support */
  131. /* #define RT_USING_RTGUI */
  132. /* name length of RTGUI object */
  133. #define RTGUI_NAME_MAX 16
  134. /* support 16 weight font */
  135. #define RTGUI_USING_FONT16
  136. /* support 16 weight font */
  137. #define RTGUI_USING_FONT12
  138. /* support Chinese font */
  139. #define RTGUI_USING_FONTHZ
  140. /* use DFS as file interface */
  141. #define RTGUI_USING_DFS_FILERW
  142. /* use font file as Chinese font */
  143. /* #define RTGUI_USING_HZ_FILE */
  144. /* use Chinese bitmap font */
  145. #define RTGUI_USING_HZ_BMP
  146. /* use small size in RTGUI */
  147. /* #define RTGUI_USING_SMALL_SIZE */
  148. /* use mouse cursor */
  149. /* #define RTGUI_USING_MOUSE_CURSOR */
  150. #endif