rtconfig.h 3.0 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_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. #define RT_USING_DEVICE_IPC
  44. #define RT_USING_UART1
  45. // #define RT_USING_UART2
  46. // #define RT_USING_UART3
  47. /* SECTION: Console options */
  48. #define RT_USING_CONSOLE
  49. /* the buffer size of console*/
  50. #define RT_CONSOLEBUF_SIZE 128
  51. /* SECTION: FinSH shell options */
  52. /* Using FinSH as Shell*/
  53. #define RT_USING_FINSH
  54. /* Using symbol table */
  55. #define FINSH_USING_SYMTAB
  56. #define FINSH_USING_DESCRIPTION
  57. #define RT_USING_DFS
  58. /* SECTION: DFS options */
  59. #define RT_USING_DFS_ELMFAT
  60. #define RT_DFS_ELM_WORD_ACCESS
  61. /* the max number of mounted filesystem */
  62. #define DFS_FILESYSTEMS_MAX 1
  63. /* the max number of opened files */
  64. #define DFS_FD_MAX 4
  65. /* the max number of cached sector */
  66. #define DFS_CACHE_MAX_NUM 4
  67. /* SECTION: lwip, a lighwight TCP/IP protocol stack */
  68. /* Using lighweight TCP/IP protocol stack*/
  69. #define RT_USING_LWIP
  70. /* Trace LwIP protocol*/
  71. /* #define RT_LWIP_DEBUG */
  72. /* Enable ICMP protocol*/
  73. #define RT_LWIP_ICMP
  74. /* Enable IGMP protocol*/
  75. #define RT_LWIP_IGMP
  76. /* Enable UDP protocol*/
  77. #define RT_LWIP_UDP
  78. /* Enable TCP protocol*/
  79. #define RT_LWIP_TCP
  80. /* the number of simulatenously active TCP connections*/
  81. #define RT_LWIP_TCP_PCB_NUM 5
  82. /* Ethernet padding size */
  83. #define RT_LWIP_ETH_PAD_SIZE 2
  84. /* TCP sender buffer space*/
  85. #define RT_LWIP_TCP_SND_BUF 1024*8
  86. /* Enable SNMP protocol*/
  87. #define RT_LWIP_SNMP
  88. /* Using DHCP*/
  89. /* #define RT_LWIP_DHCP */
  90. #define RT_LWIP_DNS
  91. /* ip address of target */
  92. #define RT_LWIP_IPADDR "192.168.1.30"
  93. /* gateway address of target */
  94. #define RT_LWIP_GWADDR "192.168.1.1"
  95. /* mask address of target */
  96. #define RT_LWIP_MSKADDR "255.255.255.0"
  97. /* tcp thread options */
  98. #define RT_LWIP_TCPTHREAD_PRIORITY 22
  99. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  100. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  101. /* ethernet if thread options */
  102. #define RT_LWIP_ETHTHREAD_PRIORITY 23
  103. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  104. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  105. /* the size of each pbuf in the pbuf pool. */
  106. #define RT_LWIP_PBUF_POOL_BUFSIZE 1500
  107. #define RT_USING_LIBC
  108. #define RT_USING_LWIP141
  109. #endif