rtconfig.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* #define RT_DEBUG_IRQ 1 */
  5. /* #define RT_DEBUG_TIMER 1 */
  6. /* #define RT_DEBUG_MEM 1 */
  7. /* #define RT_DEBUG_MEMHEAP 1 */
  8. /* #define RT_DEBUG_MODULE 1 */
  9. /* #define RT_DEBUG_SCHEDULER 1 */
  10. /* #define RT_DEBUG_SLAB 1 */
  11. /* #define RT_DEBUG_THREAD 1 */
  12. /* #define RT_DEBUG_IPC 1 */
  13. /* RT_NAME_MAX*/
  14. #define RT_NAME_MAX 8
  15. /* RT_ALIGN_SIZE*/
  16. #define RT_ALIGN_SIZE 8
  17. /* PRIORITY_MAX */
  18. #define RT_THREAD_PRIORITY_MAX 256
  19. /* Tick per Second */
  20. #define RT_TICK_PER_SECOND 100
  21. /* SECTION: RT_DEBUG */
  22. /* Thread Debug */
  23. #define RT_DEBUG
  24. #define RT_DEBUG_COLOR
  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. /* SECTION: a mini libc */
  69. /* SECTION: C++ support */
  70. /* Using C++ support */
  71. /* #define RT_USING_CPLUSPLUS */
  72. /* SECTION: Device filesystem support */
  73. /* using DFS support */
  74. /* #define RT_USING_DFS */
  75. /* #define RT_USING_DFS_ELMFAT */
  76. /* #define RT_USING_DFS_YAFFS2 */
  77. /* #define DFS_USING_WORKDIR */
  78. /* the max number of mounted filesystem */
  79. #define DFS_FILESYSTEMS_MAX 2
  80. /* the max number of opened files */
  81. #define DFS_FD_MAX 16
  82. /* the max number of cached sector */
  83. #define DFS_CACHE_MAX_NUM 4
  84. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  85. /* Using lighweight TCP/IP protocol stack */
  86. /* #define RT_USING_LWIP */
  87. /* #define RT_LWIP_DNS */
  88. /* Trace LwIP protocol */
  89. /* #define RT_LWIP_DEBUG */
  90. /* Enable ICMP protocol */
  91. #define RT_LWIP_ICMP
  92. /* Enable IGMP protocol */
  93. #define RT_LWIP_IGMP
  94. /* Enable UDP protocol */
  95. #define RT_LWIP_UDP
  96. /* Enable TCP protocol */
  97. #define RT_LWIP_TCP
  98. /* the number of simulatenously active TCP connections*/
  99. #define RT_LWIP_TCP_PCB_NUM 5
  100. /* TCP sender buffer space */
  101. #define RT_LWIP_TCP_SND_BUF 1024*10
  102. /* TCP receive window. */
  103. #define RT_LWIP_TCP_WND 1024
  104. /* Enable SNMP protocol */
  105. /* #define RT_LWIP_SNMP */
  106. /* Using DHCP */
  107. /* #define RT_LWIP_DHCP */
  108. /* ip address of target */
  109. #define RT_LWIP_IPADDR0 192
  110. #define RT_LWIP_IPADDR1 168
  111. #define RT_LWIP_IPADDR2 1
  112. #define RT_LWIP_IPADDR3 30
  113. /* gateway address of target */
  114. #define RT_LWIP_GWADDR0 192
  115. #define RT_LWIP_GWADDR1 168
  116. #define RT_LWIP_GWADDR2 1
  117. #define RT_LWIP_GWADDR3 1
  118. /* mask address of target */
  119. #define RT_LWIP_MSKADDR0 255
  120. #define RT_LWIP_MSKADDR1 255
  121. #define RT_LWIP_MSKADDR2 255
  122. #define RT_LWIP_MSKADDR3 0
  123. /* the number of blocks for pbuf */
  124. #define RT_LWIP_PBUF_NUM 16
  125. /* thread priority of tcpip thread */
  126. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  127. /* mail box size of tcpip thread to wait for */
  128. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  129. /* thread stack size of tcpip thread */
  130. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  131. /* thread priority of ethnetif thread */
  132. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  133. /* mail box size of ethnetif thread to wait for */
  134. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  135. /* thread stack size of ethnetif thread */
  136. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  137. /* SECTION: RTGUI support */
  138. /* using RTGUI support */
  139. /* #define RT_USING_RTGUI */
  140. /* name length of RTGUI object */
  141. #define RTGUI_NAME_MAX 16
  142. /* support 16 weight font */
  143. #define RTGUI_USING_FONT16
  144. /* support 16 weight font */
  145. #define RTGUI_USING_FONT12
  146. /* support Chinese font */
  147. #define RTGUI_USING_FONTHZ
  148. /* use DFS as file interface */
  149. #define RTGUI_USING_DFS_FILERW
  150. /* use font file as Chinese font */
  151. /* #define RTGUI_USING_HZ_FILE */
  152. /* use Chinese bitmap font */
  153. #define RTGUI_USING_HZ_BMP
  154. /* use small size in RTGUI */
  155. /* #define RTGUI_USING_SMALL_SIZE */
  156. /* use mouse cursor */
  157. /* #define RTGUI_USING_MOUSE_CURSOR */
  158. #endif