rtconfig.h 10 KB

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