rtconfig.h 6.8 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. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. #define RT_DEBUG
  21. /* Inter-Thread communication */
  22. #define RT_USING_SEMAPHORE
  23. #define RT_USING_MUTEX
  24. #define RT_USING_EVENT
  25. #define RT_USING_MAILBOX
  26. #define RT_USING_MESSAGEQUEUE
  27. /* end of Inter-Thread communication */
  28. /* Memory Management */
  29. #define RT_USING_MEMPOOL
  30. #define RT_USING_SMALL_MEM
  31. #define RT_USING_SMALL_MEM_AS_HEAP
  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 "uart2"
  39. /* end of Kernel Device Object */
  40. #define RT_VER_NUM 0x40100
  41. /* end of RT-Thread Kernel */
  42. #define ARCH_ARM
  43. #define RT_USING_CPU_FFS
  44. #define ARCH_ARM_CORTEX_M
  45. #define ARCH_ARM_CORTEX_M3
  46. /* RT-Thread Components */
  47. #define RT_USING_COMPONENTS_INIT
  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. #define RT_USING_DFS
  67. #define DFS_USING_POSIX
  68. #define DFS_USING_WORKDIR
  69. #define DFS_FILESYSTEMS_MAX 4
  70. #define DFS_FILESYSTEM_TYPES_MAX 4
  71. #define DFS_FD_MAX 16
  72. #define RT_USING_DFS_ELMFAT
  73. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  74. #define RT_DFS_ELM_CODE_PAGE 437
  75. #define RT_DFS_ELM_WORD_ACCESS
  76. #define RT_DFS_ELM_USE_LFN_3
  77. #define RT_DFS_ELM_USE_LFN 3
  78. #define RT_DFS_ELM_LFN_UNICODE_0
  79. #define RT_DFS_ELM_LFN_UNICODE 0
  80. #define RT_DFS_ELM_MAX_LFN 255
  81. #define RT_DFS_ELM_DRIVES 2
  82. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  83. #define RT_DFS_ELM_REENTRANT
  84. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  85. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  86. /* end of Device virtual file system */
  87. /* Device Drivers */
  88. #define RT_USING_DEVICE_IPC
  89. #define RT_USING_SERIAL
  90. #define RT_USING_SERIAL_V1
  91. #define RT_SERIAL_USING_DMA
  92. #define RT_SERIAL_RB_BUFSZ 64
  93. #define RT_USING_PIN
  94. /* Using USB */
  95. /* end of Using USB */
  96. /* end of Device Drivers */
  97. /* POSIX layer and C standard library */
  98. #define RT_USING_LIBC
  99. #define RT_LIBC_USING_TIME
  100. #define RT_LIBC_DEFAULT_TIMEZONE 8
  101. /* POSIX (Portable Operating System Interface) layer */
  102. /* Interprocess Communication (IPC) */
  103. /* Socket is in the 'Network' category */
  104. /* end of Interprocess Communication (IPC) */
  105. /* end of POSIX (Portable Operating System Interface) layer */
  106. /* end of POSIX layer and C standard library */
  107. /* Network */
  108. /* Socket abstraction layer */
  109. /* end of Socket abstraction layer */
  110. /* Network interface device */
  111. #define NETDEV_USING_PING
  112. /* end of Network interface device */
  113. /* light weight TCP/IP stack */
  114. #define RT_USING_LWIP
  115. #define RT_USING_LWIP203
  116. #define RT_LWIP_MEM_ALIGNMENT 4
  117. #define RT_LWIP_IGMP
  118. #define RT_LWIP_ICMP
  119. #define RT_LWIP_DNS
  120. #define RT_LWIP_DHCP
  121. #define IP_SOF_BROADCAST 1
  122. #define IP_SOF_BROADCAST_RECV 1
  123. /* Static IPv4 Address */
  124. #define RT_LWIP_IPADDR "192.168.1.30"
  125. #define RT_LWIP_GWADDR "192.168.1.1"
  126. #define RT_LWIP_MSKADDR "255.255.255.0"
  127. /* end of Static IPv4 Address */
  128. #define RT_LWIP_UDP
  129. #define RT_LWIP_TCP
  130. #define RT_LWIP_RAW
  131. #define RT_MEMP_NUM_NETCONN 12
  132. #define RT_LWIP_PBUF_NUM 3
  133. #define RT_LWIP_RAW_PCB_NUM 2
  134. #define RT_LWIP_UDP_PCB_NUM 4
  135. #define RT_LWIP_TCP_PCB_NUM 8
  136. #define RT_LWIP_TCP_SEG_NUM 40
  137. #define RT_LWIP_TCP_SND_BUF 4380
  138. #define RT_LWIP_TCP_WND 4380
  139. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  140. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  141. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  142. #define RT_LWIP_ETHTHREAD_PRIORITY 15
  143. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  144. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  145. #define LWIP_NETIF_STATUS_CALLBACK 1
  146. #define LWIP_NETIF_LINK_CALLBACK 1
  147. #define SO_REUSE 1
  148. #define LWIP_SO_RCVTIMEO 1
  149. #define LWIP_SO_SNDTIMEO 1
  150. #define LWIP_SO_RCVBUF 1
  151. #define LWIP_SO_LINGER 0
  152. #define LWIP_NETIF_LOOPBACK 0
  153. #define RT_LWIP_USING_PING
  154. /* end of light weight TCP/IP stack */
  155. /* AT commands */
  156. /* end of AT commands */
  157. /* end of Network */
  158. /* VBUS(Virtual Software BUS) */
  159. /* end of VBUS(Virtual Software BUS) */
  160. /* Utilities */
  161. /* end of Utilities */
  162. /* end of RT-Thread Components */
  163. /* RT-Thread Utestcases */
  164. /* end of RT-Thread Utestcases */
  165. /* RT-Thread online packages */
  166. /* IoT - internet of things */
  167. /* Wi-Fi */
  168. /* Marvell WiFi */
  169. /* end of Marvell WiFi */
  170. /* Wiced WiFi */
  171. /* end of Wiced WiFi */
  172. /* end of Wi-Fi */
  173. /* IoT Cloud */
  174. /* end of IoT Cloud */
  175. /* end of IoT - internet of things */
  176. /* security packages */
  177. /* end of security packages */
  178. /* language packages */
  179. /* end of language packages */
  180. /* multimedia packages */
  181. /* LVGL: powerful and easy-to-use embedded GUI library */
  182. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  183. /* u8g2: a monochrome graphic library */
  184. /* end of u8g2: a monochrome graphic library */
  185. /* PainterEngine: A cross-platform graphics application framework written in C language */
  186. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  187. /* end of multimedia packages */
  188. /* tools packages */
  189. /* end of tools packages */
  190. /* system packages */
  191. /* enhanced kernel services */
  192. /* end of enhanced kernel services */
  193. /* acceleration: Assembly language or algorithmic acceleration packages */
  194. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  195. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  196. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  197. /* Micrium: Micrium software products porting for RT-Thread */
  198. /* end of Micrium: Micrium software products porting for RT-Thread */
  199. /* end of system packages */
  200. /* peripheral libraries and drivers */
  201. /* end of peripheral libraries and drivers */
  202. /* AI packages */
  203. /* end of AI packages */
  204. /* miscellaneous packages */
  205. /* samples: kernel and components samples */
  206. /* end of samples: kernel and components samples */
  207. /* entertainment: terminal games and other interesting software packages */
  208. /* end of entertainment: terminal games and other interesting software packages */
  209. /* end of miscellaneous packages */
  210. /* end of RT-Thread online packages */
  211. #define SOC_CME_M7
  212. #endif