rtconfig.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. #define RT_DEBUG
  5. /* #define RT_DEBUG_IRQ 1 */
  6. /* #define RT_DEBUG_TIMER 1 */
  7. /* #define RT_DEBUG_MEM 1 */
  8. /* #define RT_DEBUG_MEMHEAP 1 */
  9. /* #define RT_DEBUG_MODULE 1 */
  10. /* #define RT_DEBUG_SCHEDULER 1 */
  11. /* #define RT_DEBUG_SLAB 1 */
  12. /* #define RT_DEBUG_THREAD 1 */
  13. /* #define RT_DEBUG_IPC 1 */
  14. /* RT_NAME_MAX*/
  15. #define RT_NAME_MAX 8
  16. /* RT_ALIGN_SIZE*/
  17. #define RT_ALIGN_SIZE 4
  18. /* PRIORITY_MAX */
  19. #define RT_THREAD_PRIORITY_MAX 256
  20. /* Tick per Second */
  21. #define RT_TICK_PER_SECOND 100
  22. /* SECTION: RT_DEBUG */
  23. /* Thread Debug */
  24. #define RT_DEBUG
  25. /* #define RT_THREAD_DEBUG */
  26. #define RT_USING_OVERFLOW_CHECK
  27. /* Using Hook */
  28. #define RT_USING_HOOK
  29. /* Using Software Timer */
  30. #define RT_USING_TIMER_SOFT
  31. #define RT_TIMER_THREAD_PRIO 8
  32. #define RT_TIMER_THREAD_STACK_SIZE 512
  33. #define RT_TIMER_TICK_PER_SECOND 10
  34. /* SECTION: IPC */
  35. /* Using Semaphore */
  36. #define RT_USING_SEMAPHORE
  37. /* Using Mutex */
  38. #define RT_USING_MUTEX
  39. /* Using Event */
  40. #define RT_USING_EVENT
  41. /* Using MailBox */
  42. #define RT_USING_MAILBOX
  43. /* Using Message Queue */
  44. #define RT_USING_MESSAGEQUEUE
  45. /* SECTION: Memory Management */
  46. /* Using Memory Pool Management*/
  47. #define RT_USING_MEMPOOL
  48. /* Using Dynamic Heap Management */
  49. #define RT_USING_HEAP
  50. /* Using Small MM */
  51. /* #define RT_USING_SMALL_MEM */
  52. /* Using SLAB Allocator */
  53. #define RT_USING_SLAB
  54. #define RT_USING_CONSOLE
  55. /* SECTION: Device System */
  56. /* Using Device System */
  57. #define RT_USING_DEVICE
  58. /* SECTION: Console options */
  59. /* the buffer size of console */
  60. #define RT_CONSOLEBUF_SIZE 128
  61. /* SECTION: finsh, a C-Express shell */
  62. /* Using FinSH as Shell*/
  63. #define RT_USING_FINSH
  64. #define FINSH_USING_SYMTAB
  65. #define FINSH USING DESCRIPTION
  66. /* SECTION: a runtime libc library */
  67. /* a runtime libc library */
  68. /* #define RT_USING_NEWLIB */
  69. /* SECTION: a mini libc */
  70. /* SECTION: C++ support */
  71. /* Using C++ support */
  72. /* #define RT_USING_CPLUSPLUS */
  73. /* SECTION: Device filesystem support */
  74. /* using DFS support */
  75. /* #define RT_USING_DFS */
  76. /* #define RT_USING_DFS_ELMFAT */
  77. /* #define RT_USING_DFS_YAFFS2 */
  78. /* #define DFS_USING_WORKDIR */
  79. /* the max number of mounted filesystem */
  80. #define DFS_FILESYSTEMS_MAX 2
  81. /* the max number of opened files */
  82. #define DFS_FD_MAX 16
  83. /* the max number of cached sector */
  84. #define DFS_CACHE_MAX_NUM 4
  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. /* ip address of target */
  110. #define RT_LWIP_IPADDR0 192
  111. #define RT_LWIP_IPADDR1 168
  112. #define RT_LWIP_IPADDR2 1
  113. #define RT_LWIP_IPADDR3 30
  114. /* gateway address of target */
  115. #define RT_LWIP_GWADDR0 192
  116. #define RT_LWIP_GWADDR1 168
  117. #define RT_LWIP_GWADDR2 1
  118. #define RT_LWIP_GWADDR3 1
  119. /* mask address of target */
  120. #define RT_LWIP_MSKADDR0 255
  121. #define RT_LWIP_MSKADDR1 255
  122. #define RT_LWIP_MSKADDR2 255
  123. #define RT_LWIP_MSKADDR3 0
  124. /* the number of blocks for pbuf */
  125. #define RT_LWIP_PBUF_NUM 16
  126. /* thread priority of tcpip thread */
  127. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  128. /* mail box size of tcpip thread to wait for */
  129. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  130. /* thread stack size of tcpip thread */
  131. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  132. /* thread priority of ethnetif thread */
  133. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  134. /* mail box size of ethnetif thread to wait for */
  135. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  136. /* thread stack size of ethnetif thread */
  137. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  138. /* SECTION: RTGUI support */
  139. /* using RTGUI support */
  140. /* #define RT_USING_RTGUI */
  141. /* name length of RTGUI object */
  142. #define RTGUI_NAME_MAX 16
  143. /* support 16 weight font */
  144. #define RTGUI_USING_FONT16
  145. /* support 16 weight font */
  146. #define RTGUI_USING_FONT12
  147. /* support Chinese font */
  148. #define RTGUI_USING_FONTHZ
  149. /* use DFS as file interface */
  150. #define RTGUI_USING_DFS_FILERW
  151. /* use font file as Chinese font */
  152. /* #define RTGUI_USING_HZ_FILE */
  153. /* use Chinese bitmap font */
  154. #define RTGUI_USING_HZ_BMP
  155. /* use small size in RTGUI */
  156. /* #define RTGUI_USING_SMALL_SIZE */
  157. /* use mouse cursor */
  158. /* #define RTGUI_USING_MOUSE_CURSOR */
  159. #endif