rtconfig.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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 8
  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 256
  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. #define RT_DEBUG_COLOR
  22. /* Inter-Thread communication */
  23. #define RT_USING_SEMAPHORE
  24. #define RT_USING_MUTEX
  25. #define RT_USING_EVENT
  26. #define RT_USING_MAILBOX
  27. #define RT_USING_MESSAGEQUEUE
  28. /* end of Inter-Thread communication */
  29. /* Memory Management */
  30. #define RT_USING_MEMPOOL
  31. #define RT_USING_SMALL_MEM
  32. #define RT_USING_HEAP
  33. /* end of Memory Management */
  34. /* Kernel Device Object */
  35. #define RT_USING_DEVICE
  36. #define RT_USING_CONSOLE
  37. #define RT_CONSOLEBUF_SIZE 256
  38. #define RT_CONSOLE_DEVICE_NAME "uart3"
  39. /* end of Kernel Device Object */
  40. #define RT_VER_NUM 0x40004
  41. /* end of RT-Thread Kernel */
  42. #define ARCH_ARM
  43. #define RT_USING_CPU_FFS
  44. #define ARCH_ARM_CORTEX_M
  45. #define ARCH_ARM_CORTEX_M7
  46. /* RT-Thread Components */
  47. #define RT_USING_COMPONENTS_INIT
  48. #define RT_USING_USER_MAIN
  49. #define RT_MAIN_THREAD_STACK_SIZE 2048
  50. #define RT_MAIN_THREAD_PRIORITY 10
  51. /* C++ features */
  52. /* end of C++ features */
  53. /* Command shell */
  54. #define RT_USING_FINSH
  55. #define FINSH_THREAD_NAME "tshell"
  56. #define FINSH_USING_HISTORY
  57. #define FINSH_HISTORY_LINES 5
  58. #define FINSH_USING_SYMTAB
  59. #define FINSH_USING_DESCRIPTION
  60. #define FINSH_THREAD_PRIORITY 20
  61. #define FINSH_THREAD_STACK_SIZE 4096
  62. #define FINSH_CMD_SIZE 80
  63. #define FINSH_USING_MSH
  64. #define FINSH_USING_MSH_DEFAULT
  65. #define FINSH_ARG_MAX 10
  66. /* end of Command shell */
  67. /* Device virtual file system */
  68. #define RT_USING_DFS
  69. #define DFS_USING_WORKDIR
  70. #define DFS_FILESYSTEMS_MAX 2
  71. #define DFS_FILESYSTEM_TYPES_MAX 2
  72. #define DFS_FD_MAX 16
  73. #define RT_USING_DFS_DEVFS
  74. /* end of Device virtual file system */
  75. /* Device Drivers */
  76. #define RT_USING_DEVICE_IPC
  77. #define RT_PIPE_BUFSZ 512
  78. #define RT_USING_SERIAL
  79. #define RT_USING_SERIAL_V1
  80. #define RT_SERIAL_USING_DMA
  81. #define RT_SERIAL_RB_BUFSZ 64
  82. #define RT_USING_PIN
  83. #define RT_USING_RTC
  84. #define RT_USING_SOFT_RTC
  85. #define RT_USING_SPI
  86. /* Using USB */
  87. /* end of Using USB */
  88. /* end of Device Drivers */
  89. /* POSIX layer and C standard library */
  90. #define RT_USING_LIBC
  91. #define RT_USING_POSIX
  92. #define RT_LIBC_DEFAULT_TIMEZONE 8
  93. /* end of POSIX layer and C standard library */
  94. /* Network */
  95. /* Socket abstraction layer */
  96. /* end of Socket abstraction layer */
  97. /* Network interface device */
  98. #define NETDEV_USING_PING
  99. /* end of Network interface device */
  100. /* light weight TCP/IP stack */
  101. #define RT_USING_LWIP
  102. #define RT_USING_LWIP212
  103. #define RT_LWIP_MEM_ALIGNMENT 4
  104. #define RT_LWIP_IGMP
  105. #define RT_LWIP_ICMP
  106. #define RT_LWIP_DNS
  107. #define RT_LWIP_DHCP
  108. #define IP_SOF_BROADCAST 1
  109. #define IP_SOF_BROADCAST_RECV 1
  110. /* Static IPv4 Address */
  111. #define RT_LWIP_IPADDR "192.168.1.30"
  112. #define RT_LWIP_GWADDR "192.168.1.1"
  113. #define RT_LWIP_MSKADDR "255.255.255.0"
  114. /* end of Static IPv4 Address */
  115. #define RT_LWIP_UDP
  116. #define RT_LWIP_TCP
  117. #define RT_LWIP_RAW
  118. #define RT_MEMP_NUM_NETCONN 8
  119. #define RT_LWIP_PBUF_NUM 16
  120. #define RT_LWIP_RAW_PCB_NUM 4
  121. #define RT_LWIP_UDP_PCB_NUM 4
  122. #define RT_LWIP_TCP_PCB_NUM 4
  123. #define RT_LWIP_TCP_SEG_NUM 40
  124. #define RT_LWIP_TCP_SND_BUF 8196
  125. #define RT_LWIP_TCP_WND 8196
  126. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  127. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  128. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  129. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  130. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  131. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  132. #define LWIP_NETIF_STATUS_CALLBACK 1
  133. #define LWIP_NETIF_LINK_CALLBACK 1
  134. #define SO_REUSE 1
  135. #define LWIP_SO_RCVTIMEO 1
  136. #define LWIP_SO_SNDTIMEO 1
  137. #define LWIP_SO_RCVBUF 1
  138. #define LWIP_SO_LINGER 0
  139. #define LWIP_NETIF_LOOPBACK 0
  140. #define RT_LWIP_USING_PING
  141. /* end of light weight TCP/IP stack */
  142. /* AT commands */
  143. /* end of AT commands */
  144. /* end of Network */
  145. /* VBUS(Virtual Software BUS) */
  146. /* end of VBUS(Virtual Software BUS) */
  147. /* Utilities */
  148. /* end of Utilities */
  149. /* end of RT-Thread Components */
  150. /* RT-Thread online packages */
  151. /* IoT - internet of things */
  152. /* Wi-Fi */
  153. /* Marvell WiFi */
  154. /* end of Marvell WiFi */
  155. /* Wiced WiFi */
  156. /* end of Wiced WiFi */
  157. /* end of Wi-Fi */
  158. /* IoT Cloud */
  159. /* end of IoT Cloud */
  160. /* end of IoT - internet of things */
  161. /* security packages */
  162. /* end of security packages */
  163. /* language packages */
  164. /* end of language packages */
  165. /* multimedia packages */
  166. /* end of multimedia packages */
  167. /* tools packages */
  168. /* end of tools packages */
  169. /* system packages */
  170. /* acceleration: Assembly language or algorithmic acceleration packages */
  171. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  172. /* Micrium: Micrium software products porting for RT-Thread */
  173. /* end of Micrium: Micrium software products porting for RT-Thread */
  174. /* end of system packages */
  175. /* peripheral libraries and drivers */
  176. /* end of peripheral libraries and drivers */
  177. /* AI packages */
  178. /* end of AI packages */
  179. /* miscellaneous packages */
  180. /* samples: kernel and components samples */
  181. /* end of samples: kernel and components samples */
  182. /* entertainment: terminal games and other interesting software packages */
  183. /* end of entertainment: terminal games and other interesting software packages */
  184. /* end of miscellaneous packages */
  185. /* end of RT-Thread online packages */
  186. #define SOC_FAMILY_STM32
  187. #define SOC_SERIES_STM32F7
  188. /* Hardware Drivers Config */
  189. #define SOC_STM32F746ZG
  190. /* Onboard Peripheral Drivers */
  191. #define BSP_USING_USB_TO_USART
  192. /* end of Onboard Peripheral Drivers */
  193. /* On-chip Peripheral Drivers */
  194. #define BSP_USING_GPIO
  195. #define BSP_USING_UART
  196. #define BSP_USING_UART3
  197. /* end of On-chip Peripheral Drivers */
  198. /* Board extended module Drivers */
  199. /* end of Hardware Drivers Config */
  200. #endif