rtconfig.h 3.2 KB

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