rtconfig.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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_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. #define RT_MEM_STATS
  38. /* Using SLAB Allocator*/
  39. /* #define RT_USING_SLAB */
  40. /* SECTION: Device System */
  41. /* Using Device System*/
  42. #define RT_USING_DEVICE
  43. #define RT_USING_UART1
  44. #define RT_UART_RX_BUFFER_SIZE 128
  45. /* SECTION: Console options */
  46. #define RT_USING_CONSOLE
  47. /* the buffer size of console*/
  48. #define RT_CONSOLEBUF_SIZE 128
  49. /* SECTION: FinSH shell options */
  50. /* Using FinSH as Shell*/
  51. #define RT_USING_FINSH
  52. /* use symbol table */
  53. #define FINSH_USING_SYMTAB
  54. #define FINSH_USING_DESCRIPTION
  55. /* SECTION: a mini libc */
  56. /* Using mini libc library*/
  57. /* #define RT_USING_MINILIBC */
  58. /* SECTION: C++ support */
  59. /* Using C++ support*/
  60. /* #define RT_USING_CPLUSPLUS */
  61. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  62. /* Using lighweight TCP/IP protocol stack*/
  63. #define RT_USING_LWIP
  64. #define RT_LWIP_USING_RT_MEM
  65. /* Trace LwIP protocol*/
  66. /* #define RT_LWIP_DEBUG */
  67. /* LwIP tcp thread option */
  68. #define RT_LWIP_TCPTHREAD_PRIORITY 8
  69. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  70. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 32
  71. /* LwIP eth thread option */
  72. #define RT_LWIP_ETHTHREAD_PRIORITY 15
  73. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  74. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  75. /* Enable ICMP protocol*/
  76. #define RT_LWIP_ICMP
  77. /* Enable IGMP protocol*/
  78. //#define RT_LWIP_IGMP
  79. /* Enable UDP protocol*/
  80. #define RT_LWIP_UDP
  81. /* Enable TCP protocol*/
  82. #define RT_LWIP_TCP
  83. /* the number of simulatenously active TCP connections*/
  84. #define RT_LWIP_TCP_PCB_NUM 5
  85. /* Enable SNMP protocol*/
  86. /* #define RT_LWIP_SNMP */
  87. /* Using DHCP*/
  88. /* #define RT_LWIP_DHCP */
  89. /* ip address of target*/
  90. #define RT_LWIP_IPADDR0 192
  91. #define RT_LWIP_IPADDR1 168
  92. #define RT_LWIP_IPADDR2 1
  93. #define RT_LWIP_IPADDR3 30
  94. /* gateway address of target*/
  95. #define RT_LWIP_GWADDR0 192
  96. #define RT_LWIP_GWADDR1 168
  97. #define RT_LWIP_GWADDR2 1
  98. #define RT_LWIP_GWADDR3 1
  99. /* mask address of target*/
  100. #define RT_LWIP_MSKADDR0 255
  101. #define RT_LWIP_MSKADDR1 255
  102. #define RT_LWIP_MSKADDR2 255
  103. #define RT_LWIP_MSKADDR3 0
  104. /* SECTION: DFS options */
  105. //#define RT_USING_DFS
  106. /* the max number of mounted filesystem */
  107. #define DFS_FILESYSTEMS_MAX 1
  108. /* the max number of opened files */
  109. #define DFS_FD_MAX 2
  110. /* the max number of cached sector */
  111. #define DFS_CACHE_MAX_NUM 4
  112. #endif