rtconfig.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. /* RT_NAME_MAX*/
  5. #define RT_NAME_MAX 4
  6. /* RT_ALIGN_SIZE*/
  7. #define RT_ALIGN_SIZE 4
  8. /* PRIORITY_MAX*/
  9. #define RT_THREAD_PRIORITY_MAX 32
  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 Faset Event*/
  25. /* #define RT_USING_FASTEVENT */
  26. /* Using MailBox*/
  27. #define RT_USING_MAILBOX
  28. /* Using Message Queue*/
  29. #define RT_USING_MESSAGEQUEUE
  30. /* SECTION: Memory Management */
  31. /* Using Memory Pool Management*/
  32. #define RT_USING_MEMPOOL
  33. /* Using Dynamic Heap Management*/
  34. #define RT_USING_HEAP
  35. /* Using Small MM*/
  36. #define RT_USING_SMALL_MEM
  37. /* Using SLAB Allocator*/
  38. /* #define RT_USING_SLAB */
  39. /* SECTION: Device System */
  40. /* Using Device System*/
  41. #define RT_USING_DEVICE
  42. /* buffer size for UART reception*/
  43. #define RT_UART_RX_BUFFER_SIZE 64
  44. /* buffer size for UART transmission*/
  45. #define RT_UART_TX_BUFFER_SIZE 64
  46. /* Using UART1*/
  47. #define RT_USING_UART1
  48. /* Using UART1*/
  49. /* #define RT_USING_UART2 */
  50. /* Using UART1*/
  51. /* #define RT_USING_UART3 */
  52. /* SECTION: Console options */
  53. /* the buffer size of console*/
  54. #define RT_CONSOLEBUF_SIZE 128
  55. /* SECTION: FinSH shell options */
  56. /* Using FinSH as Shell*/
  57. #define RT_USING_FINSH
  58. /* use symbol table */
  59. #define FINSH_USING_SYMTAB
  60. #define FINSH_USING_DESCRIPTION
  61. /* SECTION: a runtime libc library */
  62. /* a runtime libc library*/
  63. /* #define RT_USING_NEWLIB */
  64. /* SECTION: C++ support */
  65. /* Using C++ support*/
  66. /* #define RT_USING_CPLUSPLUS */
  67. /* SECTION: RTGUI support */
  68. /* using RTGUI support*/
  69. /* #define RT_USING_RTGUI */
  70. /* SECTION: Device filesystem support */
  71. /* using DFS support*/
  72. /* #define RT_USING_DFS */
  73. /* SECTION: EFSL filesystem support */
  74. /* using EFSL filesystem support*/
  75. /* #define RT_USING_EFSL */
  76. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  77. /* Using lighweight TCP/IP protocol stack*/
  78. /* #define RT_USING_LWIP */
  79. /* Using webserver goahead support*/
  80. /* #define RT_USING_WEBSERVER */
  81. /* Using ftpserver support*/
  82. /* #define RT_USING_FTPSERVER */
  83. /* Trace LwIP protocol*/
  84. /* #define RT_LWIP_DEBUG */
  85. /* Enable ICMP protocol*/
  86. #define RT_LWIP_ICMP
  87. /* Enable IGMP protocol*/
  88. #define RT_LWIP_IGMP
  89. /* Enable UDP protocol*/
  90. #define RT_LWIP_UDP
  91. /* Enable TCP protocol*/
  92. #define RT_LWIP_TCP
  93. /* the number of simulatenously active TCP connections*/
  94. #define RT_LWIP_TCP_PCB_NUM 5
  95. /* TCP sender buffer space*/
  96. #define RT_LWIP_TCP_SND_BUF 10240
  97. /* Enable SNMP protocol*/
  98. /* #define RT_LWIP_SNMP */
  99. /* Using DHCP*/
  100. /* #define RT_LWIP_DHCP */
  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