rtconfig.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32F407ZG
  4. #define BOARD_STM32F407_ATK_EXPLORER
  5. /* RT-Thread Kernel */
  6. /* klibc options */
  7. /* rt_vsnprintf options */
  8. /* end of rt_vsnprintf options */
  9. /* rt_vsscanf options */
  10. /* end of rt_vsscanf options */
  11. /* rt_memset options */
  12. /* end of rt_memset options */
  13. /* rt_memcpy options */
  14. /* end of rt_memcpy options */
  15. /* rt_memmove options */
  16. /* end of rt_memmove options */
  17. /* rt_memcmp options */
  18. /* end of rt_memcmp options */
  19. /* rt_strstr options */
  20. /* end of rt_strstr options */
  21. /* rt_strcasecmp options */
  22. /* end of rt_strcasecmp options */
  23. /* rt_strncpy options */
  24. /* end of rt_strncpy options */
  25. /* rt_strcpy options */
  26. /* end of rt_strcpy options */
  27. /* rt_strncmp options */
  28. /* end of rt_strncmp options */
  29. /* rt_strcmp options */
  30. /* end of rt_strcmp options */
  31. /* rt_strlen options */
  32. /* end of rt_strlen options */
  33. /* rt_strnlen options */
  34. /* end of rt_strnlen options */
  35. /* end of klibc options */
  36. #define RT_NAME_MAX 8
  37. #define RT_CPUS_NR 1
  38. #define RT_ALIGN_SIZE 8
  39. #define RT_THREAD_PRIORITY_32
  40. #define RT_THREAD_PRIORITY_MAX 32
  41. #define RT_TICK_PER_SECOND 1000
  42. #define RT_USING_OVERFLOW_CHECK
  43. #define RT_USING_HOOK
  44. #define RT_HOOK_USING_FUNC_PTR
  45. #define RT_USING_IDLE_HOOK
  46. #define RT_IDLE_HOOK_LIST_SIZE 4
  47. #define IDLE_THREAD_STACK_SIZE 1024
  48. /* kservice options */
  49. /* end of kservice options */
  50. #define RT_USING_DEBUG
  51. #define RT_DEBUGING_ASSERT
  52. #define RT_DEBUGING_COLOR
  53. #define RT_DEBUGING_CONTEXT
  54. /* Inter-Thread communication */
  55. #define RT_USING_SEMAPHORE
  56. #define RT_USING_MUTEX
  57. #define RT_USING_EVENT
  58. #define RT_USING_MAILBOX
  59. #define RT_USING_MESSAGEQUEUE
  60. /* end of Inter-Thread communication */
  61. /* Memory Management */
  62. #define RT_USING_MEMPOOL
  63. #define RT_USING_SMALL_MEM
  64. #define RT_USING_SMALL_MEM_AS_HEAP
  65. #define RT_USING_HEAP
  66. /* end of Memory Management */
  67. #define RT_USING_DEVICE
  68. #define RT_USING_CONSOLE
  69. #define RT_CONSOLEBUF_SIZE 128
  70. #define RT_CONSOLE_DEVICE_NAME "uart1"
  71. #define RT_VER_NUM 0x50200
  72. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  73. /* end of RT-Thread Kernel */
  74. #define RT_USING_HW_ATOMIC
  75. #define RT_USING_CPU_FFS
  76. #define ARCH_ARM
  77. #define ARCH_ARM_CORTEX_M
  78. #define ARCH_ARM_CORTEX_M4
  79. /* RT-Thread Components */
  80. #define RT_USING_COMPONENTS_INIT
  81. #define RT_USING_USER_MAIN
  82. #define RT_MAIN_THREAD_STACK_SIZE 2048
  83. #define RT_MAIN_THREAD_PRIORITY 10
  84. #define RT_USING_MSH
  85. #define RT_USING_FINSH
  86. #define FINSH_USING_MSH
  87. #define FINSH_THREAD_NAME "tshell"
  88. #define FINSH_THREAD_PRIORITY 20
  89. #define FINSH_THREAD_STACK_SIZE 4096
  90. #define FINSH_USING_HISTORY
  91. #define FINSH_HISTORY_LINES 5
  92. #define FINSH_USING_SYMTAB
  93. #define FINSH_CMD_SIZE 80
  94. #define MSH_USING_BUILT_IN_COMMANDS
  95. #define FINSH_USING_DESCRIPTION
  96. #define FINSH_ARG_MAX 10
  97. #define FINSH_USING_OPTION_COMPLETION
  98. /* DFS: device virtual file system */
  99. #define RT_USING_DFS
  100. #define DFS_USING_POSIX
  101. #define DFS_USING_WORKDIR
  102. #define DFS_FD_MAX 16
  103. #define RT_USING_DFS_V1
  104. #define DFS_FILESYSTEMS_MAX 4
  105. #define DFS_FILESYSTEM_TYPES_MAX 4
  106. #define RT_USING_DFS_DEVFS
  107. /* end of DFS: device virtual file system */
  108. /* Device Drivers */
  109. #define RT_USING_DEVICE_IPC
  110. #define RT_UNAMED_PIPE_NUMBER 64
  111. #define RT_USING_SYSTEM_WORKQUEUE
  112. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  113. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  114. #define RT_USING_SERIAL
  115. #define RT_USING_SERIAL_V1
  116. #define RT_SERIAL_USING_DMA
  117. #define RT_SERIAL_RB_BUFSZ 64
  118. #define RT_USING_I2C
  119. #define RT_USING_I2C_BITOPS
  120. #define RT_USING_PIN
  121. /* end of Device Drivers */
  122. /* C/C++ and POSIX layer */
  123. /* ISO-ANSI C layer */
  124. /* Timezone and Daylight Saving Time */
  125. #define RT_LIBC_USING_LIGHT_TZ_DST
  126. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  127. #define RT_LIBC_TZ_DEFAULT_MIN 0
  128. #define RT_LIBC_TZ_DEFAULT_SEC 0
  129. /* end of Timezone and Daylight Saving Time */
  130. /* end of ISO-ANSI C layer */
  131. /* POSIX (Portable Operating System Interface) layer */
  132. #define RT_USING_POSIX_FS
  133. #define RT_USING_POSIX_POLL
  134. #define RT_USING_POSIX_SELECT
  135. #define RT_USING_POSIX_SOCKET
  136. /* Interprocess Communication (IPC) */
  137. /* Socket is in the 'Network' category */
  138. /* end of Interprocess Communication (IPC) */
  139. /* end of POSIX (Portable Operating System Interface) layer */
  140. /* end of C/C++ and POSIX layer */
  141. /* Network */
  142. #define RT_USING_SAL
  143. #define SAL_INTERNET_CHECK
  144. /* Docking with protocol stacks */
  145. #define SAL_USING_LWIP
  146. /* end of Docking with protocol stacks */
  147. #define SAL_USING_POSIX
  148. #define RT_USING_NETDEV
  149. #define NETDEV_USING_IFCONFIG
  150. #define NETDEV_USING_PING
  151. #define NETDEV_USING_NETSTAT
  152. #define NETDEV_USING_AUTO_DEFAULT
  153. #define NETDEV_IPV4 1
  154. #define NETDEV_IPV6 0
  155. #define RT_USING_LWIP
  156. #define RT_USING_LWIP203
  157. #define RT_USING_LWIP_VER_NUM 0x20003
  158. #define RT_LWIP_MEM_ALIGNMENT 4
  159. #define RT_LWIP_IGMP
  160. #define RT_LWIP_ICMP
  161. #define RT_LWIP_DNS
  162. #define RT_LWIP_DHCP
  163. #define IP_SOF_BROADCAST 1
  164. #define IP_SOF_BROADCAST_RECV 1
  165. /* Static IPv4 Address */
  166. #define RT_LWIP_IPADDR "192.168.1.30"
  167. #define RT_LWIP_GWADDR "192.168.1.1"
  168. #define RT_LWIP_MSKADDR "255.255.255.0"
  169. /* end of Static IPv4 Address */
  170. #define RT_LWIP_UDP
  171. #define RT_LWIP_TCP
  172. #define RT_LWIP_RAW
  173. #define RT_MEMP_NUM_NETCONN 8
  174. #define RT_LWIP_PBUF_NUM 16
  175. #define RT_LWIP_RAW_PCB_NUM 4
  176. #define RT_LWIP_UDP_PCB_NUM 4
  177. #define RT_LWIP_TCP_PCB_NUM 4
  178. #define RT_LWIP_TCP_SEG_NUM 40
  179. #define RT_LWIP_TCP_SND_BUF 8196
  180. #define RT_LWIP_TCP_WND 8196
  181. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  182. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  183. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  184. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  185. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  186. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  187. #define LWIP_NETIF_STATUS_CALLBACK 1
  188. #define LWIP_NETIF_LINK_CALLBACK 1
  189. #define RT_LWIP_NETIF_NAMESIZE 6
  190. #define SO_REUSE 1
  191. #define LWIP_SO_RCVTIMEO 1
  192. #define LWIP_SO_SNDTIMEO 1
  193. #define LWIP_SO_RCVBUF 1
  194. #define LWIP_SO_LINGER 0
  195. #define LWIP_NETIF_LOOPBACK 0
  196. #define RT_LWIP_USING_HW_CHECKSUM
  197. #define RT_LWIP_USING_PING
  198. /* end of Network */
  199. /* Memory protection */
  200. /* end of Memory protection */
  201. /* Utilities */
  202. /* end of Utilities */
  203. /* Using USB legacy version */
  204. /* end of Using USB legacy version */
  205. /* end of RT-Thread Components */
  206. /* RT-Thread Utestcases */
  207. /* end of RT-Thread Utestcases */
  208. /* RT-Thread online packages */
  209. /* IoT - internet of things */
  210. /* Wi-Fi */
  211. /* Marvell WiFi */
  212. /* end of Marvell WiFi */
  213. /* Wiced WiFi */
  214. /* end of Wiced WiFi */
  215. /* CYW43012 WiFi */
  216. /* end of CYW43012 WiFi */
  217. /* BL808 WiFi */
  218. /* end of BL808 WiFi */
  219. /* CYW43439 WiFi */
  220. /* end of CYW43439 WiFi */
  221. /* end of Wi-Fi */
  222. /* IoT Cloud */
  223. /* end of IoT Cloud */
  224. /* end of IoT - internet of things */
  225. /* security packages */
  226. /* end of security packages */
  227. /* language packages */
  228. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  229. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  230. /* XML: Extensible Markup Language */
  231. /* end of XML: Extensible Markup Language */
  232. /* end of language packages */
  233. /* multimedia packages */
  234. /* LVGL: powerful and easy-to-use embedded GUI library */
  235. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  236. /* u8g2: a monochrome graphic library */
  237. /* end of u8g2: a monochrome graphic library */
  238. /* end of multimedia packages */
  239. /* tools packages */
  240. /* end of tools packages */
  241. /* system packages */
  242. /* enhanced kernel services */
  243. /* end of enhanced kernel services */
  244. /* acceleration: Assembly language or algorithmic acceleration packages */
  245. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  246. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  247. #define PKG_USING_CMSIS_CORE
  248. #define PKG_USING_CMSIS_CORE_LATEST_VERSION
  249. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  250. /* Micrium: Micrium software products porting for RT-Thread */
  251. /* end of Micrium: Micrium software products porting for RT-Thread */
  252. /* end of system packages */
  253. /* peripheral libraries and drivers */
  254. /* HAL & SDK Drivers */
  255. /* STM32 HAL & SDK Drivers */
  256. #define PKG_USING_STM32F4_HAL_DRIVER
  257. #define PKG_USING_STM32F4_HAL_DRIVER_LATEST_VERSION
  258. #define PKG_USING_STM32F4_CMSIS_DRIVER
  259. #define PKG_USING_STM32F4_CMSIS_DRIVER_LATEST_VERSION
  260. /* end of STM32 HAL & SDK Drivers */
  261. /* Infineon HAL Packages */
  262. /* end of Infineon HAL Packages */
  263. /* Kendryte SDK */
  264. /* end of Kendryte SDK */
  265. /* WCH HAL & SDK Drivers */
  266. /* end of WCH HAL & SDK Drivers */
  267. /* AT32 HAL & SDK Drivers */
  268. /* end of AT32 HAL & SDK Drivers */
  269. /* end of HAL & SDK Drivers */
  270. /* sensors drivers */
  271. /* end of sensors drivers */
  272. /* touch drivers */
  273. /* end of touch drivers */
  274. /* end of peripheral libraries and drivers */
  275. /* AI packages */
  276. /* end of AI packages */
  277. /* Signal Processing and Control Algorithm Packages */
  278. /* end of Signal Processing and Control Algorithm Packages */
  279. /* miscellaneous packages */
  280. /* project laboratory */
  281. /* end of project laboratory */
  282. /* samples: kernel and components samples */
  283. /* end of samples: kernel and components samples */
  284. /* entertainment: terminal games and other interesting software packages */
  285. /* end of entertainment: terminal games and other interesting software packages */
  286. /* end of miscellaneous packages */
  287. /* Arduino libraries */
  288. /* Projects and Demos */
  289. /* end of Projects and Demos */
  290. /* Sensors */
  291. /* end of Sensors */
  292. /* Display */
  293. /* end of Display */
  294. /* Timing */
  295. /* end of Timing */
  296. /* Data Processing */
  297. /* end of Data Processing */
  298. /* Data Storage */
  299. /* Communication */
  300. /* end of Communication */
  301. /* Device Control */
  302. /* end of Device Control */
  303. /* Other */
  304. /* end of Other */
  305. /* Signal IO */
  306. /* end of Signal IO */
  307. /* Uncategorized */
  308. /* end of Arduino libraries */
  309. /* end of RT-Thread online packages */
  310. #define SOC_FAMILY_STM32
  311. #define SOC_SERIES_STM32F4
  312. /* Hardware Drivers Config */
  313. /* Onboard Peripheral Drivers */
  314. #define BSP_USING_USB_TO_USART
  315. /* end of Onboard Peripheral Drivers */
  316. /* On-chip Peripheral Drivers */
  317. #define BSP_USING_GPIO
  318. #define BSP_USING_UART
  319. #define BSP_STM32_UART_V1_TX_TIMEOUT 2000
  320. #define BSP_USING_UART1
  321. #define BSP_USING_I2C2
  322. #define BSP_I2C2_SCL_PIN 16
  323. #define BSP_I2C2_SDA_PIN 91
  324. /* end of On-chip Peripheral Drivers */
  325. /* Board extended module Drivers */
  326. /* end of Board extended module Drivers */
  327. /* end of Hardware Drivers Config */
  328. #endif