rtconfig.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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 10
  6. #define RT_ALIGN_SIZE 8
  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_HOOK_USING_FUNC_PTR
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 8192
  16. /* kservice optimization */
  17. /* end of kservice optimization */
  18. #define RT_DEBUG
  19. #define RT_DEBUG_COLOR
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. #define RT_USING_MAILBOX
  25. #define RT_USING_MESSAGEQUEUE
  26. /* end of Inter-Thread communication */
  27. /* Memory Management */
  28. #define RT_USING_MEMPOOL
  29. #define RT_USING_SMALL_MEM
  30. #define RT_USING_MEMHEAP
  31. #define RT_MEMHEAP_FAST_MODE
  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_INTERRUPT_INFO
  38. #define RT_USING_CONSOLE
  39. #define RT_CONSOLEBUF_SIZE 128
  40. #define RT_CONSOLE_DEVICE_NAME "uart2"
  41. /* end of Kernel Device Object */
  42. #define RT_VER_NUM 0x50001
  43. /* end of RT-Thread Kernel */
  44. /* RT-Thread Components */
  45. #define RT_USING_COMPONENTS_INIT
  46. #define RT_USING_USER_MAIN
  47. #define RT_MAIN_THREAD_STACK_SIZE 8192
  48. #define RT_MAIN_THREAD_PRIORITY 10
  49. #define RT_USING_MSH
  50. #define RT_USING_FINSH
  51. #define FINSH_USING_MSH
  52. #define FINSH_THREAD_NAME "tshell"
  53. #define FINSH_THREAD_PRIORITY 20
  54. #define FINSH_THREAD_STACK_SIZE 8192
  55. #define FINSH_USING_HISTORY
  56. #define FINSH_HISTORY_LINES 5
  57. #define FINSH_USING_SYMTAB
  58. #define FINSH_CMD_SIZE 80
  59. #define MSH_USING_BUILT_IN_COMMANDS
  60. #define FINSH_USING_DESCRIPTION
  61. #define FINSH_ARG_MAX 10
  62. /* DFS: device virtual file system */
  63. #define RT_USING_DFS
  64. #define DFS_USING_POSIX
  65. #define DFS_USING_WORKDIR
  66. #define DFS_FD_MAX 4
  67. #define RT_USING_DFS_V1
  68. #define DFS_FILESYSTEMS_MAX 2
  69. #define DFS_FILESYSTEM_TYPES_MAX 2
  70. #define RT_USING_DFS_ELMFAT
  71. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  72. #define RT_DFS_ELM_CODE_PAGE 936
  73. #define RT_DFS_ELM_WORD_ACCESS
  74. #define RT_DFS_ELM_USE_LFN_0
  75. #define RT_DFS_ELM_USE_LFN 0
  76. #define RT_DFS_ELM_LFN_UNICODE_0
  77. #define RT_DFS_ELM_LFN_UNICODE 0
  78. #define RT_DFS_ELM_MAX_LFN 64
  79. #define RT_DFS_ELM_DRIVES 2
  80. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  81. #define RT_DFS_ELM_REENTRANT
  82. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  83. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  84. #define RT_USING_DFS_DEVFS
  85. /* end of DFS: device virtual file system */
  86. /* Device Drivers */
  87. #define RT_USING_DEVICE_IPC
  88. #define RT_UNAMED_PIPE_NUMBER 64
  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_CAN
  94. #define RT_USING_I2C
  95. #define RT_USING_I2C_BITOPS
  96. #define RT_USING_PIN
  97. #define RT_USING_SPI
  98. #define RT_USING_SPI_MSD
  99. /* Using USB */
  100. /* end of Using USB */
  101. /* end of Device Drivers */
  102. /* C/C++ and POSIX layer */
  103. #define RT_LIBC_DEFAULT_TIMEZONE 8
  104. /* POSIX (Portable Operating System Interface) layer */
  105. #define RT_USING_POSIX_DELAY
  106. #define RT_USING_POSIX_CLOCK
  107. #define RT_USING_PTHREADS
  108. #define PTHREAD_NUM_MAX 8
  109. /* Interprocess Communication (IPC) */
  110. /* Socket is in the 'Network' category */
  111. /* end of Interprocess Communication (IPC) */
  112. /* end of POSIX (Portable Operating System Interface) layer */
  113. /* end of C/C++ and POSIX layer */
  114. /* Network */
  115. #define NETDEV_USING_PING
  116. #define RT_USING_LWIP
  117. #define RT_USING_LWIP141
  118. #define RT_USING_LWIP_VER_NUM 0x10401
  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.254"
  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 4
  136. #define RT_LWIP_RAW_PCB_NUM 4
  137. #define RT_LWIP_UDP_PCB_NUM 4
  138. #define RT_LWIP_TCP_PCB_NUM 3
  139. #define RT_LWIP_TCP_SEG_NUM 40
  140. #define RT_LWIP_TCP_SND_BUF 4096
  141. #define RT_LWIP_TCP_WND 2048
  142. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  143. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  144. #define RT_LWIP_TCPTHREAD_STACKSIZE 8192
  145. #define RT_LWIP_ETHTHREAD_PRIORITY 14
  146. #define RT_LWIP_ETHTHREAD_STACKSIZE 8192
  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 Network */
  158. /* Utilities */
  159. /* end of Utilities */
  160. /* end of RT-Thread Components */
  161. /* RT-Thread Utestcases */
  162. /* end of RT-Thread Utestcases */
  163. /* RT-Thread MIPS CPU */
  164. /* end of RT-Thread MIPS CPU */
  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. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  180. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  181. /* XML: Extensible Markup Language */
  182. /* end of XML: Extensible Markup Language */
  183. /* end of language packages */
  184. /* multimedia packages */
  185. /* LVGL: powerful and easy-to-use embedded GUI library */
  186. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  187. /* u8g2: a monochrome graphic library */
  188. /* end of u8g2: a monochrome graphic library */
  189. /* end of multimedia packages */
  190. /* tools packages */
  191. /* end of tools packages */
  192. /* system packages */
  193. /* enhanced kernel services */
  194. /* end of enhanced kernel services */
  195. /* acceleration: Assembly language or algorithmic acceleration packages */
  196. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  197. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  198. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  199. /* Micrium: Micrium software products porting for RT-Thread */
  200. /* end of Micrium: Micrium software products porting for RT-Thread */
  201. /* end of system packages */
  202. /* peripheral libraries and drivers */
  203. /* sensors drivers */
  204. /* end of sensors drivers */
  205. /* touch drivers */
  206. /* end of touch drivers */
  207. /* Kendryte SDK */
  208. /* end of Kendryte SDK */
  209. /* end of peripheral libraries and drivers */
  210. /* AI packages */
  211. /* end of AI packages */
  212. /* Signal Processing and Control Algorithm Packages */
  213. /* end of Signal Processing and Control Algorithm Packages */
  214. /* miscellaneous packages */
  215. /* project laboratory */
  216. /* end of project laboratory */
  217. /* samples: kernel and components samples */
  218. /* end of samples: kernel and components samples */
  219. /* entertainment: terminal games and other interesting software packages */
  220. /* end of entertainment: terminal games and other interesting software packages */
  221. /* end of miscellaneous packages */
  222. /* Arduino libraries */
  223. /* Projects */
  224. /* end of Projects */
  225. /* Sensors */
  226. /* end of Sensors */
  227. /* Display */
  228. /* end of Display */
  229. /* Timing */
  230. /* end of Timing */
  231. /* Data Processing */
  232. /* end of Data Processing */
  233. /* Data Storage */
  234. /* Communication */
  235. /* end of Communication */
  236. /* Device Control */
  237. /* end of Device Control */
  238. /* Other */
  239. /* end of Other */
  240. /* Signal IO */
  241. /* end of Signal IO */
  242. /* Uncategorized */
  243. /* end of Arduino libraries */
  244. /* end of RT-Thread online packages */
  245. /* Privated Packages of RealThread */
  246. /* Network Utilities */
  247. /* end of Network Utilities */
  248. /* RT-Thread Smart */
  249. /* end of RT-Thread Smart */
  250. /* end of Privated Packages of RealThread */
  251. #define SOC_LS1C300
  252. #define RT_LS1C_OPENLOONGSON
  253. #define RT_USING_UART2
  254. #define RT_USING_UART1
  255. #define RT_UART_RX_BUFFER_SIZE 64
  256. #define RT_USING_GMAC_INT_MODE
  257. #define NO_TOUCH
  258. #endif