rtconfig.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_ALIGN_SIZE 4
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 100
  11. #define RT_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_IDEL_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  15. #define RT_DEBUG
  16. /* Inter-Thread communication */
  17. #define RT_USING_SEMAPHORE
  18. #define RT_USING_MUTEX
  19. #define RT_USING_EVENT
  20. #define RT_USING_MAILBOX
  21. #define RT_USING_MESSAGEQUEUE
  22. /* Memory Management */
  23. #define RT_USING_MEMPOOL
  24. #define RT_USING_SMALL_MEM
  25. #define RT_USING_HEAP
  26. /* Kernel Device Object */
  27. #define RT_USING_DEVICE
  28. #define RT_USING_CONSOLE
  29. #define RT_CONSOLEBUF_SIZE 128
  30. #define RT_CONSOLE_DEVICE_NAME "uart0"
  31. /* RT-Thread Components */
  32. #define RT_USING_COMPONENTS_INIT
  33. #define RT_USING_USER_MAIN
  34. #define RT_MAIN_THREAD_STACK_SIZE 2048
  35. /* C++ features */
  36. /* Command shell */
  37. #define RT_USING_FINSH
  38. #define FINSH_THREAD_NAME "tshell"
  39. #define FINSH_USING_HISTORY
  40. #define FINSH_HISTORY_LINES 5
  41. #define FINSH_USING_SYMTAB
  42. #define FINSH_USING_DESCRIPTION
  43. #define FINSH_THREAD_PRIORITY 20
  44. #define FINSH_THREAD_STACK_SIZE 4096
  45. #define FINSH_CMD_SIZE 80
  46. #define FINSH_USING_MSH
  47. #define FINSH_USING_MSH_DEFAULT
  48. #define FINSH_ARG_MAX 10
  49. /* Device virtual file system */
  50. #define RT_USING_DFS
  51. #define DFS_USING_WORKDIR
  52. #define DFS_FILESYSTEMS_MAX 4
  53. #define DFS_FILESYSTEM_TYPES_MAX 4
  54. #define DFS_FD_MAX 16
  55. #define RT_USING_DFS_ELMFAT
  56. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  57. #define RT_DFS_ELM_CODE_PAGE 437
  58. #define RT_DFS_ELM_WORD_ACCESS
  59. #define RT_DFS_ELM_USE_LFN_0
  60. #define RT_DFS_ELM_USE_LFN 0
  61. #define RT_DFS_ELM_MAX_LFN 255
  62. #define RT_DFS_ELM_DRIVES 2
  63. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  64. #define RT_DFS_ELM_REENTRANT
  65. #define RT_USING_DFS_DEVFS
  66. /* Device Drivers */
  67. #define RT_USING_DEVICE_IPC
  68. #define RT_PIPE_BUFSZ 512
  69. #define RT_USING_SERIAL
  70. #define RT_USING_PIN
  71. /* Using USB */
  72. /* POSIX layer and C standard library */
  73. #define RT_USING_LIBC
  74. #define RT_USING_POSIX
  75. /* Network */
  76. /* Socket abstraction layer */
  77. #define RT_USING_SAL
  78. /* protocol stack implement */
  79. #define SAL_USING_LWIP
  80. #define SAL_USING_POSIX
  81. #define SAL_PROTO_FAMILIES_NUM 4
  82. /* light weight TCP/IP stack */
  83. #define RT_USING_LWIP
  84. #define RT_USING_LWIP202
  85. #define RT_LWIP_IGMP
  86. #define RT_LWIP_ICMP
  87. #define RT_LWIP_DNS
  88. #define RT_LWIP_DHCP
  89. #define IP_SOF_BROADCAST 1
  90. #define IP_SOF_BROADCAST_RECV 1
  91. /* Static IPv4 Address */
  92. #define RT_LWIP_IPADDR "192.168.1.30"
  93. #define RT_LWIP_GWADDR "192.168.1.1"
  94. #define RT_LWIP_MSKADDR "255.255.255.0"
  95. #define RT_LWIP_UDP
  96. #define RT_LWIP_TCP
  97. #define RT_MEMP_NUM_NETCONN 8
  98. #define RT_LWIP_PBUF_NUM 16
  99. #define RT_LWIP_RAW_PCB_NUM 4
  100. #define RT_LWIP_UDP_PCB_NUM 4
  101. #define RT_LWIP_TCP_PCB_NUM 4
  102. #define RT_LWIP_TCP_SEG_NUM 40
  103. #define RT_LWIP_TCP_SND_BUF 8196
  104. #define RT_LWIP_TCP_WND 8196
  105. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  106. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  107. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  108. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  109. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  110. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  111. #define LWIP_NETIF_STATUS_CALLBACK 1
  112. #define SO_REUSE 1
  113. #define LWIP_SO_RCVTIMEO 1
  114. #define LWIP_SO_SNDTIMEO 1
  115. #define LWIP_SO_RCVBUF 1
  116. #define LWIP_NETIF_LOOPBACK 0
  117. /* Modbus master and slave stack */
  118. /* VBUS(Virtual Software BUS) */
  119. /* Utilities */
  120. /* RT-Thread online packages */
  121. /* IoT - internet of things */
  122. /* Wi-Fi */
  123. /* Marvell WiFi */
  124. /* Wiced WiFi */
  125. /* security packages */
  126. /* language packages */
  127. /* multimedia packages */
  128. /* tools packages */
  129. /* system packages */
  130. /* peripheral libraries and drivers */
  131. /* miscellaneous packages */
  132. /* sample package */
  133. /* example package: hello */
  134. #define BSP_USING_SDRAM
  135. #define BSP_USING_UART0
  136. #endif