rtconfig.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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 100
  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. /* kservice optimization */
  16. /* end of kservice optimization */
  17. #define RT_DEBUG
  18. #define RT_DEBUG_COLOR
  19. /* Inter-Thread communication */
  20. #define RT_USING_SEMAPHORE
  21. #define RT_USING_MUTEX
  22. #define RT_USING_EVENT
  23. #define RT_USING_MAILBOX
  24. #define RT_USING_MESSAGEQUEUE
  25. /* end of Inter-Thread communication */
  26. /* Memory Management */
  27. #define RT_USING_MEMPOOL
  28. #define RT_USING_SMALL_MEM
  29. #define RT_USING_SMALL_MEM_AS_HEAP
  30. #define RT_USING_HEAP
  31. /* end of Memory Management */
  32. /* Kernel Device Object */
  33. #define RT_USING_DEVICE
  34. #define RT_USING_CONSOLE
  35. #define RT_CONSOLEBUF_SIZE 128
  36. #define RT_CONSOLE_DEVICE_NAME "uart1"
  37. /* end of Kernel Device Object */
  38. #define RT_VER_NUM 0x40100
  39. /* end of RT-Thread Kernel */
  40. /* RT-Thread Components */
  41. #define RT_USING_COMPONENTS_INIT
  42. #define RT_USING_USER_MAIN
  43. #define RT_MAIN_THREAD_STACK_SIZE 2048
  44. #define RT_MAIN_THREAD_PRIORITY 10
  45. /* C++ features */
  46. /* end of C++ features */
  47. /* Command shell */
  48. #define RT_USING_FINSH
  49. #define RT_USING_MSH
  50. #define FINSH_USING_MSH
  51. #define FINSH_THREAD_NAME "tshell"
  52. #define FINSH_THREAD_PRIORITY 20
  53. #define FINSH_THREAD_STACK_SIZE 4096
  54. #define FINSH_USING_HISTORY
  55. #define FINSH_HISTORY_LINES 5
  56. #define FINSH_USING_SYMTAB
  57. #define FINSH_CMD_SIZE 80
  58. #define MSH_USING_BUILT_IN_COMMANDS
  59. #define FINSH_USING_DESCRIPTION
  60. #define FINSH_ARG_MAX 10
  61. /* end of Command shell */
  62. /* Device virtual file system */
  63. #define RT_USING_DFS
  64. #define DFS_USING_POSIX
  65. #define DFS_USING_WORKDIR
  66. #define DFS_FILESYSTEMS_MAX 2
  67. #define DFS_FILESYSTEM_TYPES_MAX 2
  68. #define DFS_FD_MAX 16
  69. #define RT_USING_DFS_DEVFS
  70. /* end of Device virtual file system */
  71. /* Device Drivers */
  72. #define RT_USING_DEVICE_IPC
  73. #define RT_USING_SYSTEM_WORKQUEUE
  74. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  75. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  76. #define RT_USING_SERIAL
  77. #define RT_USING_SERIAL_V1
  78. #define RT_SERIAL_USING_DMA
  79. #define RT_SERIAL_RB_BUFSZ 64
  80. #define RT_USING_PIN
  81. /* Using USB */
  82. /* end of Using USB */
  83. /* end of Device Drivers */
  84. /* POSIX layer and C standard library */
  85. #define RT_USING_LIBC
  86. #define RT_LIBC_USING_TIME
  87. #define RT_LIBC_DEFAULT_TIMEZONE 8
  88. /* POSIX (Portable Operating System Interface) layer */
  89. /* Interprocess Communication (IPC) */
  90. /* Socket is in the 'Network' category */
  91. /* end of Interprocess Communication (IPC) */
  92. /* end of POSIX (Portable Operating System Interface) layer */
  93. /* end of POSIX layer and C standard library */
  94. /* Network */
  95. /* Socket abstraction layer */
  96. #define RT_USING_SAL
  97. #define SAL_INTERNET_CHECK
  98. /* protocol stack implement */
  99. #define SAL_USING_LWIP
  100. /* end of protocol stack implement */
  101. #define SAL_SOCKETS_NUM 16
  102. /* end of Socket abstraction layer */
  103. /* Network interface device */
  104. #define RT_USING_NETDEV
  105. #define NETDEV_USING_IFCONFIG
  106. #define NETDEV_USING_PING
  107. #define NETDEV_USING_NETSTAT
  108. #define NETDEV_USING_AUTO_DEFAULT
  109. #define NETDEV_IPV4 1
  110. #define NETDEV_IPV6 0
  111. /* end of Network interface device */
  112. /* light weight TCP/IP stack */
  113. #define RT_USING_LWIP
  114. #define RT_USING_LWIP202
  115. #define RT_LWIP_MEM_ALIGNMENT 4
  116. #define RT_LWIP_IGMP
  117. #define RT_LWIP_ICMP
  118. #define RT_LWIP_DNS
  119. #define RT_LWIP_DHCP
  120. #define IP_SOF_BROADCAST 1
  121. #define IP_SOF_BROADCAST_RECV 1
  122. /* Static IPv4 Address */
  123. #define RT_LWIP_IPADDR "192.168.1.30"
  124. #define RT_LWIP_GWADDR "192.168.1.1"
  125. #define RT_LWIP_MSKADDR "255.255.255.0"
  126. /* end of Static IPv4 Address */
  127. #define RT_LWIP_UDP
  128. #define RT_LWIP_TCP
  129. #define RT_LWIP_RAW
  130. #define RT_MEMP_NUM_NETCONN 8
  131. #define RT_LWIP_PBUF_NUM 16
  132. #define RT_LWIP_RAW_PCB_NUM 4
  133. #define RT_LWIP_UDP_PCB_NUM 4
  134. #define RT_LWIP_TCP_PCB_NUM 4
  135. #define RT_LWIP_TCP_SEG_NUM 40
  136. #define RT_LWIP_TCP_SND_BUF 8196
  137. #define RT_LWIP_TCP_WND 8196
  138. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  139. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  140. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  141. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  142. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  143. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  144. #define LWIP_NETIF_STATUS_CALLBACK 1
  145. #define LWIP_NETIF_LINK_CALLBACK 1
  146. #define SO_REUSE 1
  147. #define LWIP_SO_RCVTIMEO 1
  148. #define LWIP_SO_SNDTIMEO 1
  149. #define LWIP_SO_RCVBUF 1
  150. #define LWIP_SO_LINGER 0
  151. #define LWIP_NETIF_LOOPBACK 0
  152. #define RT_LWIP_USING_PING
  153. /* end of light weight TCP/IP stack */
  154. /* AT commands */
  155. /* end of AT commands */
  156. /* end of Network */
  157. /* VBUS(Virtual Software BUS) */
  158. /* end of VBUS(Virtual Software BUS) */
  159. /* Utilities */
  160. /* end of Utilities */
  161. /* end of RT-Thread Components */
  162. /* RT-Thread Utestcases */
  163. /* end of RT-Thread Utestcases */
  164. /* RT-Thread online packages */
  165. /* IoT - internet of things */
  166. /* Wi-Fi */
  167. /* Marvell WiFi */
  168. /* end of Marvell WiFi */
  169. /* Wiced WiFi */
  170. /* end of Wiced WiFi */
  171. /* end of Wi-Fi */
  172. /* IoT Cloud */
  173. /* end of IoT Cloud */
  174. /* end of IoT - internet of things */
  175. /* security packages */
  176. /* end of security packages */
  177. /* language packages */
  178. /* end of language packages */
  179. /* multimedia packages */
  180. /* LVGL: powerful and easy-to-use embedded GUI library */
  181. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  182. /* u8g2: a monochrome graphic library */
  183. /* end of u8g2: a monochrome graphic library */
  184. /* PainterEngine: A cross-platform graphics application framework written in C language */
  185. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  186. /* end of multimedia packages */
  187. /* tools packages */
  188. /* end of tools packages */
  189. /* system packages */
  190. /* enhanced kernel services */
  191. /* end of enhanced kernel services */
  192. /* acceleration: Assembly language or algorithmic acceleration packages */
  193. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  194. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  195. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  196. /* Micrium: Micrium software products porting for RT-Thread */
  197. /* end of Micrium: Micrium software products porting for RT-Thread */
  198. /* end of system packages */
  199. /* peripheral libraries and drivers */
  200. /* end of peripheral libraries and drivers */
  201. /* AI packages */
  202. /* end of AI packages */
  203. /* miscellaneous packages */
  204. /* samples: kernel and components samples */
  205. /* end of samples: kernel and components samples */
  206. /* entertainment: terminal games and other interesting software packages */
  207. /* end of entertainment: terminal games and other interesting software packages */
  208. /* end of miscellaneous packages */
  209. /* end of RT-Thread online packages */
  210. #define SOC_MCIMX6X4
  211. #define RT_USING_UART1
  212. #endif