rtconfig.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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_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 128
  38. #define RT_CONSOLE_DEVICE_NAME "dbg"
  39. /* end of Kernel Device Object */
  40. #define RT_VER_NUM 0x40100
  41. /* end of RT-Thread Kernel */
  42. /* RT-Thread Components */
  43. #define RT_USING_COMPONENTS_INIT
  44. #define RT_USING_USER_MAIN
  45. #define RT_MAIN_THREAD_STACK_SIZE 2048
  46. #define RT_MAIN_THREAD_PRIORITY 10
  47. /* C++ features */
  48. /* end of C++ features */
  49. /* Command shell */
  50. #define RT_USING_FINSH
  51. #define RT_USING_MSH
  52. #define FINSH_USING_MSH
  53. #define FINSH_THREAD_NAME "tshell"
  54. #define FINSH_THREAD_PRIORITY 20
  55. #define FINSH_THREAD_STACK_SIZE 4096
  56. #define FINSH_USING_HISTORY
  57. #define FINSH_HISTORY_LINES 5
  58. #define FINSH_USING_SYMTAB
  59. #define FINSH_CMD_SIZE 80
  60. #define MSH_USING_BUILT_IN_COMMANDS
  61. #define FINSH_USING_DESCRIPTION
  62. #define FINSH_ARG_MAX 10
  63. /* end of Command shell */
  64. /* Device virtual file system */
  65. /* end of Device virtual file system */
  66. /* Device Drivers */
  67. #define RT_USING_DEVICE_IPC
  68. #define RT_PIPE_BUFSZ 512
  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. /* end of POSIX (Portable Operating System Interface) layer */
  109. /* end of POSIX layer and C standard library */
  110. /* Network */
  111. /* Socket abstraction layer */
  112. /* end of Socket abstraction layer */
  113. /* Network interface device */
  114. #define NETDEV_USING_PING
  115. /* end of Network interface device */
  116. /* light weight TCP/IP stack */
  117. #define RT_USING_LWIP
  118. #define RT_USING_LWIP202
  119. #define RT_LWIP_MEM_ALIGNMENT 4
  120. #define RT_LWIP_IGMP
  121. #define RT_LWIP_ICMP
  122. #define RT_LWIP_DNS
  123. #define RT_LWIP_DHCP
  124. #define IP_SOF_BROADCAST 1
  125. #define IP_SOF_BROADCAST_RECV 1
  126. /* Static IPv4 Address */
  127. #define RT_LWIP_IPADDR "192.168.1.30"
  128. #define RT_LWIP_GWADDR "192.168.1.1"
  129. #define RT_LWIP_MSKADDR "255.255.255.0"
  130. /* end of Static IPv4 Address */
  131. #define RT_LWIP_UDP
  132. #define RT_LWIP_TCP
  133. #define RT_LWIP_RAW
  134. #define RT_MEMP_NUM_NETCONN 8
  135. #define RT_LWIP_PBUF_NUM 16
  136. #define RT_LWIP_RAW_PCB_NUM 4
  137. #define RT_LWIP_UDP_PCB_NUM 4
  138. #define RT_LWIP_TCP_PCB_NUM 4
  139. #define RT_LWIP_TCP_SEG_NUM 40
  140. #define RT_LWIP_TCP_SND_BUF 8196
  141. #define RT_LWIP_TCP_WND 8196
  142. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  143. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  144. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  145. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  146. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  147. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  148. #define LWIP_NETIF_STATUS_CALLBACK 1
  149. #define LWIP_NETIF_LINK_CALLBACK 1
  150. #define SO_REUSE 1
  151. #define LWIP_SO_RCVTIMEO 1
  152. #define LWIP_SO_SNDTIMEO 1
  153. #define LWIP_SO_RCVBUF 1
  154. #define LWIP_SO_LINGER 0
  155. #define LWIP_NETIF_LOOPBACK 0
  156. #define RT_LWIP_USING_PING
  157. /* end of light weight TCP/IP stack */
  158. /* AT commands */
  159. /* end of AT commands */
  160. #define LWIP_USING_DHCPD
  161. #define DHCPD_SERVER_IP "192.168.169.1"
  162. #define DHCPD_USING_ROUTER
  163. /* end of Network */
  164. /* VBUS(Virtual Software BUS) */
  165. /* end of VBUS(Virtual Software BUS) */
  166. /* Utilities */
  167. /* end of Utilities */
  168. /* end of RT-Thread Components */
  169. /* RT-Thread Utestcases */
  170. /* end of RT-Thread Utestcases */
  171. /* RT-Thread online packages */
  172. /* IoT - internet of things */
  173. /* Wi-Fi */
  174. /* Marvell WiFi */
  175. /* end of Marvell WiFi */
  176. /* Wiced WiFi */
  177. /* end of Wiced WiFi */
  178. /* end of Wi-Fi */
  179. /* IoT Cloud */
  180. /* end of IoT Cloud */
  181. /* end of IoT - internet of things */
  182. /* security packages */
  183. /* end of security packages */
  184. /* language packages */
  185. /* end of language packages */
  186. /* multimedia packages */
  187. /* LVGL: powerful and easy-to-use embedded GUI library */
  188. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  189. /* u8g2: a monochrome graphic library */
  190. /* end of u8g2: a monochrome graphic library */
  191. /* PainterEngine: A cross-platform graphics application framework written in C language */
  192. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  193. /* end of multimedia packages */
  194. /* tools packages */
  195. /* end of tools packages */
  196. /* system packages */
  197. /* acceleration: Assembly language or algorithmic acceleration packages */
  198. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  199. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  200. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  201. /* Micrium: Micrium software products porting for RT-Thread */
  202. /* end of Micrium: Micrium software products porting for RT-Thread */
  203. /* end of system packages */
  204. /* peripheral libraries and drivers */
  205. #define PKG_USING_REALTEK_AMEBA
  206. #define PKG_USING_REALTEK_AMEBA_LATEST_VERSION
  207. /* end of peripheral libraries and drivers */
  208. /* AI packages */
  209. /* end of AI packages */
  210. /* miscellaneous packages */
  211. /* samples: kernel and components samples */
  212. /* end of samples: kernel and components samples */
  213. /* entertainment: terminal games and other interesting software packages */
  214. /* end of entertainment: terminal games and other interesting software packages */
  215. /* end of miscellaneous packages */
  216. /* end of RT-Thread online packages */
  217. /* Env config */
  218. /* end of Env config */
  219. /* External Libraries */
  220. #define RT_USING_SMARTCONFIG_LIB
  221. /* end of External Libraries */
  222. #define BSP_USING_WIFI
  223. #define SOC_AMEBAZ
  224. #endif