rtconfig.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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_THREAD_DEBUG */
  15. /* Using Hook*/
  16. #define RT_USING_HOOK
  17. /* SECTION: IPC */
  18. /* Using Semaphore*/
  19. #define RT_USING_SEMAPHORE
  20. /* Using Mutex*/
  21. #define RT_USING_MUTEX
  22. /* Using Event*/
  23. #define RT_USING_EVENT
  24. /* Using MailBox*/
  25. #define RT_USING_MAILBOX
  26. /* Using Message Queue*/
  27. #define RT_USING_MESSAGEQUEUE
  28. /* SECTION: Memory Management */
  29. /* Using Memory Pool Management*/
  30. #define RT_USING_MEMPOOL
  31. /* Using Dynamic Heap Management*/
  32. #define RT_USING_HEAP
  33. /* Using Small MM*/
  34. /* #define RT_USING_SMALL_MEM */
  35. /* Using SLAB Allocator*/
  36. #define RT_USING_SLAB
  37. /* SECTION: Device System */
  38. /* Using Device System*/
  39. #define RT_USING_DEVICE
  40. /* SECTION: Console options */
  41. /* the buffer size of console*/
  42. #define RT_CONSOLEBUF_SIZE 128
  43. /* SECTION: FinSH shell options */
  44. /* Using FinSH as Shell*/
  45. #define RT_USING_FINSH
  46. /* Using symbol table */
  47. #define FINSH_USING_SYMTAB
  48. #define FINSH_USING_DESCRIPTION
  49. /* SECTION: a runtime libc library */
  50. /* a runtime libc library*/
  51. /* #define RT_USING_NEWLIB */
  52. /* SECTION: a mini libc */
  53. /* Using mini libc library*/
  54. /* #define RT_USING_MINILIBC */
  55. /* SECTION: C++ support */
  56. /* Using C++ support*/
  57. /* #define RT_USING_CPLUSPLUS */
  58. /* SECTION: RTGUI support */
  59. /* using RTGUI support*/
  60. /* #define RT_USING_RTGUI */
  61. /* SECTION: Device filesystem support */
  62. /* using DFS support*/
  63. #define RT_USING_DFS
  64. #define RT_USING_DFS_EFSL
  65. #define RT_USING_DFS_YAFFS2
  66. #define RT_USING_WORKDIR
  67. /* SECTION: DFS options */
  68. /* the max number of mounted filesystem */
  69. #define DFS_FILESYSTEMS_MAX 2
  70. /* the max number of opened files */
  71. #define DFS_FD_MAX 16
  72. /* the max number of cached sector */
  73. #define DFS_CACHE_MAX_NUM 4
  74. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  75. /* Using lighweight TCP/IP protocol stack*/
  76. #define RT_USING_LWIP
  77. #define RT_LWIP_DNS
  78. /* Using webserver goahead support*/
  79. #define RT_USING_WEBSERVER
  80. /* Using ftpserver support*/
  81. #define RT_USING_FTPSERVER
  82. /* Trace LwIP protocol*/
  83. /* #define RT_LWIP_DEBUG */
  84. /* Enable ICMP protocol*/
  85. #define RT_LWIP_ICMP
  86. /* Enable IGMP protocol*/
  87. #define RT_LWIP_IGMP
  88. /* Enable UDP protocol*/
  89. #define RT_LWIP_UDP
  90. /* Enable TCP protocol*/
  91. #define RT_LWIP_TCP
  92. /* the number of simulatenously active TCP connections*/
  93. #define RT_LWIP_TCP_PCB_NUM 5
  94. /* TCP sender buffer space*/
  95. #define RT_LWIP_TCP_SND_BUF 10240
  96. /* Enable SNMP protocol*/
  97. /* #define RT_LWIP_SNMP */
  98. /* Using DHCP*/
  99. /* #define RT_LWIP_DHCP */
  100. #define RT_LWIP_DNS
  101. /* ip address of target*/
  102. #define RT_LWIP_IPADDR0 192
  103. #define RT_LWIP_IPADDR1 168
  104. #define RT_LWIP_IPADDR2 0
  105. #define RT_LWIP_IPADDR3 30
  106. /* gateway address of target*/
  107. #define RT_LWIP_GWADDR0 192
  108. #define RT_LWIP_GWADDR1 168
  109. #define RT_LWIP_GWADDR2 0
  110. #define RT_LWIP_GWADDR3 1
  111. /* mask address of target*/
  112. #define RT_LWIP_MSKADDR0 255
  113. #define RT_LWIP_MSKADDR1 255
  114. #define RT_LWIP_MSKADDR2 255
  115. #define RT_LWIP_MSKADDR3 0
  116. /* the number of blocks for pbuf*/
  117. #define RT_LWIP_PBUF_NUM 16
  118. /* thread priority of tcpip thread*/
  119. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  120. /* mail box size of tcpip thread to wait for*/
  121. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  122. /* thread stack size of tcpip thread*/
  123. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  124. /* thread priority of ethnetif thread*/
  125. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  126. /* mail box size of ethnetif thread to wait for*/
  127. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  128. /* thread stack size of ethnetif thread*/
  129. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  130. #endif