rtconfig.h 4.3 KB

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