rtconfig.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_ALIGN_SIZE 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 1000
  11. #define IDLE_THREAD_STACK_SIZE 256
  12. /* kservice optimization */
  13. #define RT_USING_DEBUG
  14. #define RT_DEBUGING_COLOR
  15. #define RT_DEBUGING_CONTEXT
  16. /* Inter-Thread communication */
  17. #define RT_USING_SEMAPHORE
  18. #define RT_USING_MUTEX
  19. #define RT_USING_MAILBOX
  20. #define RT_USING_MESSAGEQUEUE
  21. /* Memory Management */
  22. #define RT_USING_SMALL_MEM
  23. #define RT_USING_SMALL_MEM_AS_HEAP
  24. #define RT_USING_HEAP
  25. /* Kernel Device Object */
  26. #define RT_USING_DEVICE
  27. #define RT_USING_CONSOLE
  28. #define RT_CONSOLEBUF_SIZE 128
  29. #define RT_CONSOLE_DEVICE_NAME "uart1"
  30. #define RT_VER_NUM 0x50002
  31. /* RT-Thread Components */
  32. #define RT_USING_COMPONENTS_INIT
  33. #define RT_USING_USER_MAIN
  34. #define RT_MAIN_THREAD_STACK_SIZE 1024
  35. #define RT_MAIN_THREAD_PRIORITY 10
  36. #define RT_USING_MSH
  37. #define RT_USING_FINSH
  38. #define FINSH_USING_MSH
  39. #define FINSH_THREAD_NAME "tshell"
  40. #define FINSH_THREAD_PRIORITY 20
  41. #define FINSH_THREAD_STACK_SIZE 2048
  42. #define FINSH_USING_HISTORY
  43. #define FINSH_HISTORY_LINES 5
  44. #define FINSH_USING_SYMTAB
  45. #define FINSH_CMD_SIZE 80
  46. #define MSH_USING_BUILT_IN_COMMANDS
  47. #define FINSH_USING_DESCRIPTION
  48. #define FINSH_ARG_MAX 10
  49. #define FINSH_USING_OPTION_COMPLETION
  50. /* DFS: device virtual file system */
  51. /* Device Drivers */
  52. #define RT_USING_DEVICE_IPC
  53. #define RT_UNAMED_PIPE_NUMBER 64
  54. #define RT_USING_SERIAL
  55. #define RT_USING_SERIAL_V1
  56. #define RT_SERIAL_RB_BUFSZ 64
  57. /* Using USB */
  58. #define RT_USING_USB
  59. #define RT_USING_USB_HOST
  60. #define RT_USBD_THREAD_STACK_SZ 512
  61. /* C/C++ and POSIX layer */
  62. /* ISO-ANSI C layer */
  63. /* Timezone and Daylight Saving Time */
  64. #define RT_LIBC_USING_LIGHT_TZ_DST
  65. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  66. #define RT_LIBC_TZ_DEFAULT_MIN 0
  67. #define RT_LIBC_TZ_DEFAULT_SEC 0
  68. /* POSIX (Portable Operating System Interface) layer */
  69. /* Interprocess Communication (IPC) */
  70. /* Socket is in the 'Network' category */
  71. /* Network */
  72. #define RT_USING_NETDEV
  73. #define NETDEV_USING_IFCONFIG
  74. #define NETDEV_USING_PING
  75. #define NETDEV_IPV4 1
  76. #define NETDEV_IPV6 0
  77. #define RT_USING_LWIP
  78. #define RT_USING_LWIP212
  79. #define RT_USING_LWIP_VER_NUM 0x20102
  80. #define RT_LWIP_MEM_ALIGNMENT 4
  81. #define RT_LWIP_ICMP
  82. #define RT_LWIP_DNS
  83. /* Static IPv4 Address */
  84. #define RT_LWIP_IPADDR "19.111.115.250"
  85. #define RT_LWIP_GWADDR "19.111.115.254"
  86. #define RT_LWIP_MSKADDR "255.255.255.0"
  87. #define RT_LWIP_UDP
  88. #define RT_LWIP_TCP
  89. #define RT_LWIP_RAW
  90. #define RT_MEMP_NUM_NETCONN 4
  91. #define RT_LWIP_PBUF_NUM 4
  92. #define RT_LWIP_RAW_PCB_NUM 4
  93. #define RT_LWIP_UDP_PCB_NUM 4
  94. #define RT_LWIP_TCP_PCB_NUM 4
  95. #define RT_LWIP_TCP_SEG_NUM 8
  96. #define RT_LWIP_TCP_SND_BUF 3072
  97. #define RT_LWIP_TCP_WND 3072
  98. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  99. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  100. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  101. #define LWIP_NO_TX_THREAD
  102. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  103. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  104. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  105. #define LWIP_NETIF_STATUS_CALLBACK 0
  106. #define LWIP_NETIF_LINK_CALLBACK 0
  107. #define SO_REUSE 1
  108. #define LWIP_SO_RCVTIMEO 1
  109. #define LWIP_SO_SNDTIMEO 1
  110. #define LWIP_SO_RCVBUF 1
  111. #define LWIP_SO_LINGER 0
  112. #define LWIP_NETIF_LOOPBACK 0
  113. #define RT_LWIP_USING_PING
  114. /* Utilities */
  115. /* RT-Thread Utestcases */
  116. /* RT-Thread online packages */
  117. /* IoT - internet of things */
  118. /* Wi-Fi */
  119. /* Marvell WiFi */
  120. /* Wiced WiFi */
  121. /* IoT Cloud */
  122. /* security packages */
  123. /* language packages */
  124. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  125. /* XML: Extensible Markup Language */
  126. /* multimedia packages */
  127. /* LVGL: powerful and easy-to-use embedded GUI library */
  128. /* u8g2: a monochrome graphic library */
  129. /* tools packages */
  130. /* system packages */
  131. /* enhanced kernel services */
  132. /* acceleration: Assembly language or algorithmic acceleration packages */
  133. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  134. /* Micrium: Micrium software products porting for RT-Thread */
  135. /* peripheral libraries and drivers */
  136. /* sensors drivers */
  137. /* touch drivers */
  138. /* Kendryte SDK */
  139. /* AI packages */
  140. /* Signal Processing and Control Algorithm Packages */
  141. /* miscellaneous packages */
  142. /* project laboratory */
  143. /* samples: kernel and components samples */
  144. /* entertainment: terminal games and other interesting software packages */
  145. /* Arduino libraries */
  146. /* Projects and Demos */
  147. /* Sensors */
  148. /* Display */
  149. /* Timing */
  150. /* Data Processing */
  151. /* Data Storage */
  152. /* Communication */
  153. /* Device Control */
  154. /* Other */
  155. /* Signal IO */
  156. /* Uncategorized */
  157. /* Hardware Drivers Config */
  158. #define SOC_CH579M
  159. /* On-chip Peripheral Drivers */
  160. #define BSP_USING_UART
  161. #define BSP_USING_UART1
  162. #define BSP_USING_USBH
  163. #define BSP_USING_ETH
  164. #endif