rtconfig.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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 1000
  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 1024
  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_SMALL_MEM_AS_HEAP
  33. #define RT_USING_HEAP
  34. /* end of Memory Management */
  35. /* Kernel Device Object */
  36. #define RT_USING_DEVICE
  37. #define RT_USING_CONSOLE
  38. #define RT_CONSOLEBUF_SIZE 128
  39. #define RT_CONSOLE_DEVICE_NAME "dbg"
  40. /* end of Kernel Device Object */
  41. #define RT_VER_NUM 0x40100
  42. /* end of RT-Thread Kernel */
  43. /* RT-Thread Components */
  44. #define RT_USING_COMPONENTS_INIT
  45. #define RT_USING_USER_MAIN
  46. #define RT_MAIN_THREAD_STACK_SIZE 2048
  47. #define RT_MAIN_THREAD_PRIORITY 10
  48. /* C++ features */
  49. /* end of C++ features */
  50. /* Command shell */
  51. #define RT_USING_FINSH
  52. #define RT_USING_MSH
  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. /* end of Command shell */
  65. /* Device virtual file system */
  66. /* end of Device virtual file system */
  67. /* Device Drivers */
  68. #define RT_USING_DEVICE_IPC
  69. #define RT_USING_SERIAL
  70. #define RT_USING_SERIAL_V1
  71. #define RT_SERIAL_USING_DMA
  72. #define RT_SERIAL_RB_BUFSZ 64
  73. #define RT_USING_WIFI
  74. #define RT_WLAN_DEVICE_STA_NAME "wlan0"
  75. #define RT_WLAN_DEVICE_AP_NAME "wlan1"
  76. #define RT_WLAN_SSID_MAX_LENGTH 32
  77. #define RT_WLAN_PASSWORD_MAX_LENGTH 32
  78. #define RT_WLAN_DEV_EVENT_NUM 2
  79. #define RT_WLAN_MANAGE_ENABLE
  80. #define RT_WLAN_SCAN_WAIT_MS 10000
  81. #define RT_WLAN_CONNECT_WAIT_MS 10000
  82. #define RT_WLAN_SCAN_SORT
  83. #define RT_WLAN_MSH_CMD_ENABLE
  84. #define RT_WLAN_AUTO_CONNECT_ENABLE
  85. #define AUTO_CONNECTION_PERIOD_MS 2000
  86. #define RT_WLAN_CFG_ENABLE
  87. #define RT_WLAN_CFG_INFO_MAX 3
  88. #define RT_WLAN_PROT_ENABLE
  89. #define RT_WLAN_PROT_NAME_LEN 8
  90. #define RT_WLAN_PROT_MAX 2
  91. #define RT_WLAN_DEFAULT_PROT "lwip"
  92. #define RT_WLAN_PROT_LWIP_ENABLE
  93. #define RT_WLAN_PROT_LWIP_NAME "lwip"
  94. #define RT_WLAN_WORK_THREAD_ENABLE
  95. #define RT_WLAN_WORKQUEUE_THREAD_NAME "wlan_job"
  96. #define RT_WLAN_WORKQUEUE_THREAD_SIZE 2048
  97. #define RT_WLAN_WORKQUEUE_THREAD_PRIO 22
  98. #define RT_WLAN_DEBUG
  99. #define RT_WLAN_CMD_DEBUG
  100. /* Using USB */
  101. /* end of Using USB */
  102. /* end of Device Drivers */
  103. /* POSIX layer and C standard library */
  104. #define RT_USING_LIBC
  105. #define RT_LIBC_USING_TIME
  106. #define RT_LIBC_DEFAULT_TIMEZONE 8
  107. /* POSIX (Portable Operating System Interface) layer */
  108. /* Interprocess Communication (IPC) */
  109. /* Socket is in the 'Network' category */
  110. /* end of Interprocess Communication (IPC) */
  111. /* end of POSIX (Portable Operating System Interface) layer */
  112. /* end of POSIX layer and C standard library */
  113. /* Network */
  114. /* Socket abstraction layer */
  115. /* end of Socket abstraction layer */
  116. /* Network interface device */
  117. #define NETDEV_USING_PING
  118. /* end of Network interface device */
  119. /* light weight TCP/IP stack */
  120. #define RT_USING_LWIP
  121. #define RT_USING_LWIP202
  122. #define RT_LWIP_MEM_ALIGNMENT 4
  123. #define RT_LWIP_IGMP
  124. #define RT_LWIP_ICMP
  125. #define RT_LWIP_DNS
  126. #define RT_LWIP_DHCP
  127. #define IP_SOF_BROADCAST 1
  128. #define IP_SOF_BROADCAST_RECV 1
  129. /* Static IPv4 Address */
  130. #define RT_LWIP_IPADDR "192.168.1.30"
  131. #define RT_LWIP_GWADDR "192.168.1.1"
  132. #define RT_LWIP_MSKADDR "255.255.255.0"
  133. /* end of Static IPv4 Address */
  134. #define RT_LWIP_UDP
  135. #define RT_LWIP_TCP
  136. #define RT_LWIP_RAW
  137. #define RT_MEMP_NUM_NETCONN 8
  138. #define RT_LWIP_PBUF_NUM 16
  139. #define RT_LWIP_RAW_PCB_NUM 4
  140. #define RT_LWIP_UDP_PCB_NUM 4
  141. #define RT_LWIP_TCP_PCB_NUM 4
  142. #define RT_LWIP_TCP_SEG_NUM 40
  143. #define RT_LWIP_TCP_SND_BUF 8196
  144. #define RT_LWIP_TCP_WND 8196
  145. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  146. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  147. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  148. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  149. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  150. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  151. #define LWIP_NETIF_STATUS_CALLBACK 1
  152. #define LWIP_NETIF_LINK_CALLBACK 1
  153. #define SO_REUSE 1
  154. #define LWIP_SO_RCVTIMEO 1
  155. #define LWIP_SO_SNDTIMEO 1
  156. #define LWIP_SO_RCVBUF 1
  157. #define LWIP_SO_LINGER 0
  158. #define LWIP_NETIF_LOOPBACK 0
  159. #define RT_LWIP_USING_PING
  160. /* end of light weight TCP/IP stack */
  161. /* AT commands */
  162. /* end of AT commands */
  163. #define LWIP_USING_DHCPD
  164. #define DHCPD_SERVER_IP "192.168.169.1"
  165. #define DHCPD_USING_ROUTER
  166. /* end of Network */
  167. /* VBUS(Virtual Software BUS) */
  168. /* end of VBUS(Virtual Software BUS) */
  169. /* Utilities */
  170. /* end of Utilities */
  171. /* end of RT-Thread Components */
  172. /* RT-Thread Utestcases */
  173. /* end of RT-Thread Utestcases */
  174. /* RT-Thread online packages */
  175. /* IoT - internet of things */
  176. /* Wi-Fi */
  177. /* Marvell WiFi */
  178. /* end of Marvell WiFi */
  179. /* Wiced WiFi */
  180. /* end of Wiced WiFi */
  181. /* end of Wi-Fi */
  182. /* IoT Cloud */
  183. /* end of IoT Cloud */
  184. /* end of IoT - internet of things */
  185. /* security packages */
  186. /* end of security packages */
  187. /* language packages */
  188. /* end of language packages */
  189. /* multimedia packages */
  190. /* LVGL: powerful and easy-to-use embedded GUI library */
  191. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  192. /* u8g2: a monochrome graphic library */
  193. /* end of u8g2: a monochrome graphic library */
  194. /* PainterEngine: A cross-platform graphics application framework written in C language */
  195. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  196. /* end of multimedia packages */
  197. /* tools packages */
  198. /* end of tools packages */
  199. /* system packages */
  200. /* enhanced kernel services */
  201. /* end of enhanced kernel services */
  202. /* acceleration: Assembly language or algorithmic acceleration packages */
  203. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  204. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  205. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  206. /* Micrium: Micrium software products porting for RT-Thread */
  207. /* end of Micrium: Micrium software products porting for RT-Thread */
  208. /* end of system packages */
  209. /* peripheral libraries and drivers */
  210. #define PKG_USING_REALTEK_AMEBA
  211. #define PKG_USING_REALTEK_AMEBA_LATEST_VERSION
  212. /* end of peripheral libraries and drivers */
  213. /* AI packages */
  214. /* end of AI packages */
  215. /* miscellaneous packages */
  216. /* samples: kernel and components samples */
  217. /* end of samples: kernel and components samples */
  218. /* entertainment: terminal games and other interesting software packages */
  219. /* end of entertainment: terminal games and other interesting software packages */
  220. /* end of miscellaneous packages */
  221. /* end of RT-Thread online packages */
  222. /* Env config */
  223. /* end of Env config */
  224. /* External Libraries */
  225. #define RT_USING_SMARTCONFIG_LIB
  226. /* end of External Libraries */
  227. #define BSP_USING_WIFI
  228. #define SOC_AMEBAZ
  229. #endif