rtconfig.h 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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 16
  6. #define RT_CPUS_NR 1
  7. #define RT_ALIGN_SIZE 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 1000
  11. #define RT_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_HOOK_USING_FUNC_PTR
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 1024
  17. /* kservice optimization */
  18. /* end of kservice optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_COLOR
  21. #define RT_DEBUGING_CONTEXT
  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_SMALL_MEM_AS_HEAP
  33. #define RT_USING_HEAP
  34. /* end of Memory Management */
  35. #define RT_USING_DEVICE
  36. #define RT_USING_CONSOLE
  37. #define RT_CONSOLEBUF_SIZE 512
  38. #define RT_CONSOLE_DEVICE_NAME "uart0"
  39. #define RT_VER_NUM 0x50100
  40. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  41. /* end of RT-Thread Kernel */
  42. #define RT_USING_HW_ATOMIC
  43. #define ARCH_ARM
  44. #define ARCH_ARM_CORTEX_R
  45. #define ARCH_ARM_CORTEX_R52
  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. #define RT_USING_MSH
  52. #define RT_USING_FINSH
  53. #define FINSH_USING_MSH
  54. #define FINSH_THREAD_NAME "tshell"
  55. #define FINSH_THREAD_PRIORITY 20
  56. #define FINSH_THREAD_STACK_SIZE 4096
  57. #define FINSH_USING_HISTORY
  58. #define FINSH_HISTORY_LINES 5
  59. #define FINSH_USING_SYMTAB
  60. #define FINSH_CMD_SIZE 80
  61. #define MSH_USING_BUILT_IN_COMMANDS
  62. #define FINSH_USING_DESCRIPTION
  63. #define FINSH_ARG_MAX 10
  64. #define FINSH_USING_OPTION_COMPLETION
  65. /* DFS: device virtual file system */
  66. #define RT_USING_DFS
  67. #define DFS_USING_POSIX
  68. #define DFS_USING_WORKDIR
  69. #define DFS_FD_MAX 16
  70. #define RT_USING_DFS_V1
  71. #define DFS_FILESYSTEMS_MAX 4
  72. #define DFS_FILESYSTEM_TYPES_MAX 4
  73. #define RT_USING_DFS_DEVFS
  74. /* end of DFS: device virtual file system */
  75. /* Device Drivers */
  76. #define RT_USING_DEVICE_IPC
  77. #define RT_UNAMED_PIPE_NUMBER 64
  78. #define RT_USING_SYSTEM_WORKQUEUE
  79. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  80. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  81. #define RT_USING_SERIAL
  82. #define RT_USING_SERIAL_V2
  83. #define RT_SERIAL_USING_DMA
  84. #define RT_USING_PIN
  85. /* Using USB */
  86. /* end of Using USB */
  87. /* end of Device Drivers */
  88. /* C/C++ and POSIX layer */
  89. /* ISO-ANSI C layer */
  90. /* Timezone and Daylight Saving Time */
  91. /* end of Timezone and Daylight Saving Time */
  92. /* end of ISO-ANSI C layer */
  93. /* POSIX (Portable Operating System Interface) layer */
  94. #define RT_USING_POSIX_FS
  95. #define RT_USING_POSIX_POLL
  96. #define RT_USING_POSIX_SELECT
  97. #define RT_USING_POSIX_SOCKET
  98. /* Interprocess Communication (IPC) */
  99. /* Socket is in the 'Network' category */
  100. /* end of Interprocess Communication (IPC) */
  101. /* end of POSIX (Portable Operating System Interface) layer */
  102. /* end of C/C++ and POSIX layer */
  103. /* Network */
  104. #define RT_USING_SAL
  105. #define SAL_INTERNET_CHECK
  106. /* Docking with protocol stacks */
  107. #define SAL_USING_LWIP
  108. /* end of Docking with protocol stacks */
  109. #define SAL_USING_POSIX
  110. #define RT_USING_NETDEV
  111. #define NETDEV_USING_IFCONFIG
  112. #define NETDEV_USING_PING
  113. #define NETDEV_USING_NETSTAT
  114. #define NETDEV_USING_AUTO_DEFAULT
  115. #define NETDEV_IPV4 1
  116. #define NETDEV_IPV6 0
  117. #define RT_USING_LWIP
  118. #define RT_USING_LWIP203
  119. #define RT_USING_LWIP_VER_NUM 0x20003
  120. #define RT_LWIP_MEM_ALIGNMENT 4
  121. #define RT_LWIP_IGMP
  122. #define RT_LWIP_ICMP
  123. #define RT_LWIP_DNS
  124. #define RT_LWIP_DHCP
  125. #define IP_SOF_BROADCAST 1
  126. #define IP_SOF_BROADCAST_RECV 1
  127. /* Static IPv4 Address */
  128. #define RT_LWIP_IPADDR "192.168.1.30"
  129. #define RT_LWIP_GWADDR "192.168.1.1"
  130. #define RT_LWIP_MSKADDR "255.255.255.0"
  131. /* end of Static IPv4 Address */
  132. #define RT_LWIP_UDP
  133. #define RT_LWIP_TCP
  134. #define RT_LWIP_RAW
  135. #define RT_MEMP_NUM_NETCONN 8
  136. #define RT_LWIP_PBUF_NUM 16
  137. #define RT_LWIP_RAW_PCB_NUM 4
  138. #define RT_LWIP_UDP_PCB_NUM 4
  139. #define RT_LWIP_TCP_PCB_NUM 4
  140. #define RT_LWIP_TCP_SEG_NUM 40
  141. #define RT_LWIP_TCP_SND_BUF 8196
  142. #define RT_LWIP_TCP_WND 8196
  143. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  144. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  145. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  146. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  147. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  148. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  149. #define LWIP_NETIF_STATUS_CALLBACK 1
  150. #define LWIP_NETIF_LINK_CALLBACK 1
  151. #define RT_LWIP_NETIF_NAMESIZE 6
  152. #define SO_REUSE 1
  153. #define LWIP_SO_RCVTIMEO 1
  154. #define LWIP_SO_SNDTIMEO 1
  155. #define LWIP_SO_RCVBUF 1
  156. #define LWIP_SO_LINGER 0
  157. #define LWIP_NETIF_LOOPBACK 0
  158. #define RT_LWIP_USING_PING
  159. /* end of Network */
  160. /* Memory protection */
  161. /* end of Memory protection */
  162. /* Utilities */
  163. /* end of Utilities */
  164. /* end of RT-Thread Components */
  165. /* RT-Thread Utestcases */
  166. /* end of RT-Thread Utestcases */
  167. /* RT-Thread online packages */
  168. /* IoT - internet of things */
  169. #define PKG_USING_KAWAII_MQTT
  170. #define KAWAII_MQTT_NETSOCKET_USE_SAL
  171. #define KAWAII_MQTT_LOG_IS_SALOF
  172. #define SALOF_USING_LOG
  173. #define SALOF_USING_SALOF
  174. #define SALOF_BUFF_SIZE 512
  175. #define SALOF_FIFO_SIZE 2048
  176. #define SALOF_TASK_STACK_SIZE 2048
  177. #define SALOF_TASK_TICK 50
  178. #define SALOF_LOG_LEVEL 4
  179. #define KAWAII_MQTT_LOG_LEVEL 4
  180. #define KAWAII_MQTT_VERSION 4
  181. #define KAWAII_MQTT_KEEP_ALIVE_INTERVAL 100
  182. #define KAWAII_MQTT_THREAD_STACK_SIZE 4096
  183. #define KAWAII_MQTT_THREAD_PRIO 5
  184. #define KAWAII_MQTT_THREAD_TICK 50
  185. #define KAWAII_MQTT_MAX_PACKET_ID 0xFFFE
  186. #define KAWAII_MQTT_TOPIC_LEN_MAX 64
  187. #define KAWAII_MQTT_ACK_HANDLER_NUM_MAX 64
  188. #define KAWAII_MQTT_DEFAULT_BUF_SIZE 1024
  189. #define KAWAII_MQTT_DEFAULT_CMD_TIMEOUT 4000
  190. #define KAWAII_MQTT_MAX_CMD_TIMEOUT 20000
  191. #define KAWAII_MQTT_MIN_CMD_TIMEOUT 1000
  192. #define KAWAII_MQTT_RECONNECT_DEFAULT_DURATION 1000
  193. #define PKG_USING_KAWAII_MQTT_LATEST_VERSION
  194. /* Wi-Fi */
  195. /* Marvell WiFi */
  196. /* end of Marvell WiFi */
  197. /* Wiced WiFi */
  198. /* end of Wiced WiFi */
  199. /* CYW43012 WiFi */
  200. /* end of CYW43012 WiFi */
  201. /* BL808 WiFi */
  202. /* end of BL808 WiFi */
  203. /* CYW43439 WiFi */
  204. /* end of CYW43439 WiFi */
  205. /* end of Wi-Fi */
  206. /* IoT Cloud */
  207. /* end of IoT Cloud */
  208. /* end of IoT - internet of things */
  209. /* security packages */
  210. /* end of security packages */
  211. /* language packages */
  212. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  213. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  214. /* XML: Extensible Markup Language */
  215. /* end of XML: Extensible Markup Language */
  216. /* end of language packages */
  217. /* multimedia packages */
  218. /* LVGL: powerful and easy-to-use embedded GUI library */
  219. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  220. /* u8g2: a monochrome graphic library */
  221. /* end of u8g2: a monochrome graphic library */
  222. /* end of multimedia packages */
  223. /* tools packages */
  224. /* end of tools packages */
  225. /* system packages */
  226. /* enhanced kernel services */
  227. /* end of enhanced kernel services */
  228. /* acceleration: Assembly language or algorithmic acceleration packages */
  229. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  230. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  231. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  232. /* Micrium: Micrium software products porting for RT-Thread */
  233. /* end of Micrium: Micrium software products porting for RT-Thread */
  234. /* end of system packages */
  235. /* peripheral libraries and drivers */
  236. /* HAL & SDK Drivers */
  237. /* STM32 HAL & SDK Drivers */
  238. /* end of STM32 HAL & SDK Drivers */
  239. /* Infineon HAL Packages */
  240. /* end of Infineon HAL Packages */
  241. /* Kendryte SDK */
  242. /* end of Kendryte SDK */
  243. /* WCH HAL & SDK Drivers */
  244. /* end of WCH HAL & SDK Drivers */
  245. /* AT32 HAL & SDK Drivers */
  246. /* end of AT32 HAL & SDK Drivers */
  247. /* HC32 DDL Drivers */
  248. /* end of HC32 DDL Drivers */
  249. /* NXP HAL & SDK Drivers */
  250. /* end of NXP HAL & SDK Drivers */
  251. /* end of HAL & SDK Drivers */
  252. /* sensors drivers */
  253. /* end of sensors drivers */
  254. /* touch drivers */
  255. /* end of touch drivers */
  256. /* end of peripheral libraries and drivers */
  257. /* AI packages */
  258. /* end of AI packages */
  259. /* Signal Processing and Control Algorithm Packages */
  260. /* end of Signal Processing and Control Algorithm Packages */
  261. /* miscellaneous packages */
  262. /* project laboratory */
  263. /* end of project laboratory */
  264. /* samples: kernel and components samples */
  265. /* end of samples: kernel and components samples */
  266. /* entertainment: terminal games and other interesting software packages */
  267. /* end of entertainment: terminal games and other interesting software packages */
  268. /* end of miscellaneous packages */
  269. /* Arduino libraries */
  270. /* Projects and Demos */
  271. /* end of Projects and Demos */
  272. /* Sensors */
  273. /* end of Sensors */
  274. /* Display */
  275. /* end of Display */
  276. /* Timing */
  277. /* end of Timing */
  278. /* Data Processing */
  279. /* end of Data Processing */
  280. /* Data Storage */
  281. /* Communication */
  282. /* end of Communication */
  283. /* Device Control */
  284. /* end of Device Control */
  285. /* Other */
  286. /* end of Other */
  287. /* Signal IO */
  288. /* end of Signal IO */
  289. /* Uncategorized */
  290. /* end of Arduino libraries */
  291. /* end of RT-Thread online packages */
  292. #define SOC_FAMILY_RENESAS_RZ
  293. #define SOC_SERIES_R9A07G0
  294. /* Hardware Drivers Config */
  295. #define SOC_R9A07G084
  296. /* Onboard Peripheral Drivers */
  297. /* On-chip Peripheral Drivers */
  298. #define BSP_USING_GPIO
  299. #define BSP_USING_UART
  300. #define BSP_USING_UART0
  301. #define BSP_UART0_RX_BUFSIZE 256
  302. #define BSP_UART0_TX_BUFSIZE 0
  303. #define BSP_USING_ETH
  304. /* end of On-chip Peripheral Drivers */
  305. /* Board extended module Drivers */
  306. /* end of Board extended module Drivers */
  307. /* end of Hardware Drivers Config */
  308. #endif