rtconfig.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /* RT-Thread config file */
  2. #ifndef __RTTHREAD_CFG_H__
  3. #define __RTTHREAD_CFG_H__
  4. #define IDLE_THREAD_STACK_SIZE 2048
  5. /* RT_NAME_MAX*/
  6. #define RT_NAME_MAX 32
  7. /* RT_ALIGN_SIZE*/
  8. #define RT_ALIGN_SIZE 4
  9. /* PRIORITY_MAX*/
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. /* Tick per Second*/
  12. #define RT_TICK_PER_SECOND 100
  13. /* SECTION: RT_DEBUG */
  14. /* Thread Debug*/
  15. /* #define RT_THREAD_DEBUG */
  16. /* Using Hook*/
  17. #define RT_USING_HOOK
  18. /* SECTION: IPC */
  19. /* Using Semaphore*/
  20. #define RT_USING_SEMAPHORE
  21. /* Using Mutex*/
  22. #define RT_USING_MUTEX
  23. /* Using Event*/
  24. #define RT_USING_EVENT
  25. /* Using Faset Event*/
  26. /* #define RT_USING_FASTEVENT */
  27. /* Using MailBox*/
  28. #define RT_USING_MAILBOX
  29. /* Using Message Queue*/
  30. #define RT_USING_MESSAGEQUEUE
  31. /* SECTION: Memory Management */
  32. /* Using Memory Pool Management*/
  33. #define RT_USING_MEMPOOL
  34. /* Using Dynamic Heap Management*/
  35. #define RT_USING_HEAP
  36. /* Using Small MM*/
  37. #define RT_USING_SMALL_MEM
  38. /* Using SLAB Allocator*/
  39. /* #define RT_USING_SLAB */
  40. /* SECTION: Device System */
  41. /* Using Device System*/
  42. #define RT_USING_DEVICE
  43. /* buffer size for UART reception*/
  44. #define RT_UART_RX_BUFFER_SIZE 64
  45. /* buffer size for UART transmission*/
  46. #define RT_UART_TX_BUFFER_SIZE 64
  47. /* Using UART1*/
  48. #define RT_USING_UART1
  49. /* Using UART1*/
  50. /* #define RT_USING_UART2 */
  51. /* Using UART1*/
  52. /* #define RT_USING_UART3 */
  53. /* SECTION: Console options */
  54. #define RT_USING_CONSOLE
  55. /* the buffer size of console*/
  56. #define RT_CONSOLEBUF_SIZE 256
  57. /* SECTION: FinSH shell options */
  58. /* Using FinSH as Shell*/
  59. #define RT_USING_FINSH
  60. /* use symbol table */
  61. #define FINSH_USING_SYMTAB
  62. #define FINSH_USING_DESCRIPTION
  63. #define FINSH_THREAD_STACK_SIZE 8192
  64. /* SECTION: a runtime libc library */
  65. /* a runtime libc library*/
  66. /* #define RT_USING_NEWLIB */
  67. /* SECTION: C++ support */
  68. /* Using C++ support*/
  69. /* #define RT_USING_CPLUSPLUS */
  70. /* SECTION: RTGUI support */
  71. /* using RTGUI support*/
  72. /* #define RT_USING_RTGUI */
  73. /* SECTION: Device filesystem support */
  74. /* using DFS support*/
  75. /* #define RT_USING_DFS */
  76. /* SECTION: EFSL filesystem support */
  77. /* using EFSL filesystem support*/
  78. /* #define RT_USING_EFSL */
  79. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  80. /* Using lighweight TCP/IP protocol stack*/
  81. /* #define RT_USING_LWIP */
  82. /* Using webserver goahead support*/
  83. /* #define RT_USING_WEBSERVER */
  84. /* Using ftpserver support*/
  85. /* #define RT_USING_FTPSERVER */
  86. /* Trace LwIP protocol*/
  87. /* #define RT_LWIP_DEBUG */
  88. /* Enable ICMP protocol*/
  89. #define RT_LWIP_ICMP
  90. /* Enable IGMP protocol*/
  91. #define RT_LWIP_IGMP
  92. /* Enable UDP protocol*/
  93. #define RT_LWIP_UDP
  94. /* Enable TCP protocol*/
  95. #define RT_LWIP_TCP
  96. /* the number of simulatenously active TCP connections*/
  97. #define RT_LWIP_TCP_PCB_NUM 5
  98. /* TCP sender buffer space*/
  99. #define RT_LWIP_TCP_SND_BUF 10240
  100. /* Enable SNMP protocol*/
  101. /* #define RT_LWIP_SNMP */
  102. /* Using DHCP*/
  103. /* #define RT_LWIP_DHCP */
  104. /* ip address of target*/
  105. #define RT_LWIP_IPADDR0 192
  106. #define RT_LWIP_IPADDR1 168
  107. #define RT_LWIP_IPADDR2 0
  108. #define RT_LWIP_IPADDR3 30
  109. /* gateway address of target*/
  110. #define RT_LWIP_GWADDR0 192
  111. #define RT_LWIP_GWADDR1 168
  112. #define RT_LWIP_GWADDR2 0
  113. #define RT_LWIP_GWADDR3 1
  114. /* mask address of target*/
  115. #define RT_LWIP_MSKADDR0 255
  116. #define RT_LWIP_MSKADDR1 255
  117. #define RT_LWIP_MSKADDR2 255
  118. #define RT_LWIP_MSKADDR3 0
  119. /* the number of blocks for pbuf*/
  120. #define RT_LWIP_PBUF_NUM 16
  121. /* thread priority of tcpip thread*/
  122. #define RT_LWIP_TCPTHREAD_PRIORITY 128
  123. /* mail box size of tcpip thread to wait for*/
  124. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  125. /* thread stack size of tcpip thread*/
  126. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  127. /* thread priority of ethnetif thread*/
  128. #define RT_LWIP_ETHTHREAD_PRIORITY 144
  129. /* mail box size of ethnetif thread to wait for*/
  130. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  131. /* thread stack size of ethnetif thread*/
  132. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  133. #endif