rtconfig.h 4.5 KB

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