rtconfig.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 20
  6. #define RT_ALIGN_SIZE 4
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_OVERFLOW_CHECK
  11. #define RT_USING_HOOK
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 512
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. #define RT_DEBUG
  21. /* Inter-Thread communication */
  22. #define RT_USING_SEMAPHORE
  23. #define RT_USING_MUTEX
  24. #define RT_USING_EVENT
  25. #define RT_USING_MAILBOX
  26. #define RT_USING_MESSAGEQUEUE
  27. /* end of Inter-Thread communication */
  28. /* Memory Management */
  29. #define RT_USING_MEMPOOL
  30. #define RT_USING_SLAB
  31. #define RT_USING_HEAP
  32. /* end of Memory Management */
  33. /* Kernel Device Object */
  34. #define RT_USING_DEVICE
  35. #define RT_USING_CONSOLE
  36. #define RT_CONSOLEBUF_SIZE 128
  37. #define RT_CONSOLE_DEVICE_NAME "uart0"
  38. /* end of Kernel Device Object */
  39. #define RT_VER_NUM 0x40004
  40. /* end of RT-Thread Kernel */
  41. /* RT-Thread Components */
  42. #define RT_USING_COMPONENTS_INIT
  43. #define RT_USING_USER_MAIN
  44. #define RT_MAIN_THREAD_STACK_SIZE 2048
  45. #define RT_MAIN_THREAD_PRIORITY 10
  46. /* C++ features */
  47. /* end of C++ features */
  48. /* Command shell */
  49. #define RT_USING_FINSH
  50. #define RT_USING_MSH
  51. #define FINSH_USING_MSH
  52. #define FINSH_THREAD_NAME "tshell"
  53. #define FINSH_THREAD_PRIORITY 20
  54. #define FINSH_THREAD_STACK_SIZE 4096
  55. #define FINSH_USING_HISTORY
  56. #define FINSH_HISTORY_LINES 5
  57. #define FINSH_USING_SYMTAB
  58. #define FINSH_CMD_SIZE 80
  59. #define MSH_USING_BUILT_IN_COMMANDS
  60. #define FINSH_USING_DESCRIPTION
  61. #define FINSH_ARG_MAX 10
  62. /* end of Command shell */
  63. /* Device virtual file system */
  64. #define RT_USING_DFS
  65. #define DFS_USING_WORKDIR
  66. #define DFS_FILESYSTEMS_MAX 2
  67. #define DFS_FILESYSTEM_TYPES_MAX 2
  68. #define DFS_FD_MAX 16
  69. #define RT_USING_DFS_ELMFAT
  70. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  71. #define RT_DFS_ELM_CODE_PAGE 437
  72. #define RT_DFS_ELM_WORD_ACCESS
  73. #define RT_DFS_ELM_USE_LFN_3
  74. #define RT_DFS_ELM_USE_LFN 3
  75. #define RT_DFS_ELM_LFN_UNICODE_0
  76. #define RT_DFS_ELM_LFN_UNICODE 0
  77. #define RT_DFS_ELM_MAX_LFN 255
  78. #define RT_DFS_ELM_DRIVES 2
  79. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  80. #define RT_DFS_ELM_REENTRANT
  81. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  82. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  83. #define RT_USING_DFS_DEVFS
  84. /* end of Device virtual file system */
  85. /* Device Drivers */
  86. #define RT_USING_DEVICE_IPC
  87. #define RT_PIPE_BUFSZ 512
  88. #define RT_USING_SYSTEM_WORKQUEUE
  89. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  90. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  91. #define RT_USING_SERIAL
  92. #define RT_USING_SERIAL_V1
  93. #define RT_SERIAL_USING_DMA
  94. #define RT_SERIAL_RB_BUFSZ 64
  95. #define RT_USING_PIN
  96. /* Using USB */
  97. /* end of Using USB */
  98. /* end of Device Drivers */
  99. /* POSIX layer and C standard library */
  100. #define RT_USING_LIBC
  101. #define RT_USING_POSIX
  102. #define RT_LIBC_USING_TIME
  103. #define RT_LIBC_DEFAULT_TIMEZONE 8
  104. /* end of POSIX layer and C standard library */
  105. /* Network */
  106. /* Socket abstraction layer */
  107. #define RT_USING_SAL
  108. #define SAL_INTERNET_CHECK
  109. /* protocol stack implement */
  110. #define SAL_USING_LWIP
  111. /* end of protocol stack implement */
  112. #define SAL_USING_POSIX
  113. /* end of Socket abstraction layer */
  114. /* Network interface device */
  115. #define RT_USING_NETDEV
  116. #define NETDEV_USING_IFCONFIG
  117. #define NETDEV_USING_PING
  118. #define NETDEV_USING_NETSTAT
  119. #define NETDEV_USING_AUTO_DEFAULT
  120. #define NETDEV_IPV4 1
  121. #define NETDEV_IPV6 0
  122. /* end of Network interface device */
  123. /* light weight TCP/IP stack */
  124. #define RT_USING_LWIP
  125. #define RT_USING_LWIP202
  126. #define RT_LWIP_MEM_ALIGNMENT 32
  127. #define RT_LWIP_IGMP
  128. #define RT_LWIP_ICMP
  129. #define RT_LWIP_DNS
  130. #define RT_LWIP_DHCP
  131. #define IP_SOF_BROADCAST 1
  132. #define IP_SOF_BROADCAST_RECV 1
  133. /* Static IPv4 Address */
  134. #define RT_LWIP_IPADDR "192.168.1.30"
  135. #define RT_LWIP_GWADDR "192.168.1.1"
  136. #define RT_LWIP_MSKADDR "255.255.255.0"
  137. /* end of Static IPv4 Address */
  138. #define RT_LWIP_UDP
  139. #define RT_LWIP_TCP
  140. #define RT_LWIP_RAW
  141. #define RT_MEMP_NUM_NETCONN 8
  142. #define RT_LWIP_PBUF_NUM 256
  143. #define RT_LWIP_RAW_PCB_NUM 4
  144. #define RT_LWIP_UDP_PCB_NUM 4
  145. #define RT_LWIP_TCP_PCB_NUM 4
  146. #define RT_LWIP_TCP_SEG_NUM 40
  147. #define RT_LWIP_TCP_SND_BUF 8196
  148. #define RT_LWIP_TCP_WND 8196
  149. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  150. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  151. #define RT_LWIP_TCPTHREAD_STACKSIZE 2048
  152. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  153. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  154. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  155. #define LWIP_NETIF_STATUS_CALLBACK 1
  156. #define LWIP_NETIF_LINK_CALLBACK 1
  157. #define SO_REUSE 1
  158. #define LWIP_SO_RCVTIMEO 1
  159. #define LWIP_SO_SNDTIMEO 1
  160. #define LWIP_SO_RCVBUF 1
  161. #define LWIP_SO_LINGER 0
  162. #define LWIP_NETIF_LOOPBACK 0
  163. #define RT_LWIP_USING_PING
  164. /* end of light weight TCP/IP stack */
  165. /* AT commands */
  166. /* end of AT commands */
  167. /* end of Network */
  168. /* VBUS(Virtual Software BUS) */
  169. /* end of VBUS(Virtual Software BUS) */
  170. /* Utilities */
  171. /* end of Utilities */
  172. /* end of RT-Thread Components */
  173. /* RT-Thread Utestcases */
  174. /* end of RT-Thread Utestcases */
  175. /* RT-Thread online packages */
  176. /* IoT - internet of things */
  177. /* Wi-Fi */
  178. /* Marvell WiFi */
  179. /* end of Marvell WiFi */
  180. /* Wiced WiFi */
  181. /* end of Wiced WiFi */
  182. /* end of Wi-Fi */
  183. /* IoT Cloud */
  184. /* end of IoT Cloud */
  185. /* end of IoT - internet of things */
  186. /* security packages */
  187. /* end of security packages */
  188. /* language packages */
  189. /* end of language packages */
  190. /* multimedia packages */
  191. /* lvgl: powerful and easy-to-use embedded GUI library */
  192. /* end of lvgl: powerful and easy-to-use embedded GUI library */
  193. /* u8g2: a monochrome graphic library */
  194. /* end of u8g2: a monochrome graphic library */
  195. /* end of multimedia packages */
  196. /* tools packages */
  197. /* end of tools packages */
  198. /* system packages */
  199. /* acceleration: Assembly language or algorithmic acceleration packages */
  200. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  201. /* Micrium: Micrium software products porting for RT-Thread */
  202. /* end of Micrium: Micrium software products porting for RT-Thread */
  203. /* end of system packages */
  204. /* peripheral libraries and drivers */
  205. /* end of peripheral libraries and drivers */
  206. /* AI packages */
  207. /* end of AI packages */
  208. /* miscellaneous packages */
  209. /* samples: kernel and components samples */
  210. /* end of samples: kernel and components samples */
  211. /* entertainment: terminal games and other interesting software packages */
  212. /* end of entertainment: terminal games and other interesting software packages */
  213. /* end of miscellaneous packages */
  214. /* end of RT-Thread online packages */
  215. #define SOC_ZYNQMP_R5
  216. /* Hardware Drivers Config */
  217. /* Onboard Peripheral Drivers */
  218. /* On-chip Peripheral Drivers */
  219. #define BSP_USING_UART
  220. #define BSP_USING_UART0
  221. #define BSP_USING_SDIO
  222. #define BSP_USING_SD0
  223. /* Please set RT_LWIP_PBUF_NUM is at least 256 if Enable Ethernet! */
  224. /* Please set RT_LWIP_MEM_ALIGNMENT is at 32 if Enable Ethernet! */
  225. #define BSP_USING_ETH
  226. #define RT_LWIP_PBUF_POOL_BUFSIZE 1700
  227. /* end of On-chip Peripheral Drivers */
  228. /* Board extended module Drivers */
  229. /* end of Hardware Drivers Config */
  230. #endif