rtconfig.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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 4
  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_USING_SMALL_MEM
  20. #define RT_USING_SMALL_MEM_AS_HEAP
  21. #define RT_USING_HEAP
  22. /* Kernel Device Object */
  23. #define RT_USING_DEVICE
  24. #define RT_USING_CONSOLE
  25. #define RT_CONSOLEBUF_SIZE 128
  26. #define RT_CONSOLE_DEVICE_NAME "uart1"
  27. #define RT_VER_NUM 0x40100
  28. /* RT-Thread Components */
  29. #define RT_USING_COMPONENTS_INIT
  30. #define RT_USING_USER_MAIN
  31. #define RT_MAIN_THREAD_STACK_SIZE 1024
  32. #define RT_MAIN_THREAD_PRIORITY 10
  33. #define RT_USING_MSH
  34. #define RT_USING_FINSH
  35. #define FINSH_USING_MSH
  36. #define FINSH_THREAD_NAME "tshell"
  37. #define FINSH_THREAD_PRIORITY 20
  38. #define FINSH_THREAD_STACK_SIZE 2048
  39. #define FINSH_USING_HISTORY
  40. #define FINSH_HISTORY_LINES 5
  41. #define FINSH_USING_SYMTAB
  42. #define FINSH_CMD_SIZE 80
  43. #define MSH_USING_BUILT_IN_COMMANDS
  44. #define FINSH_USING_DESCRIPTION
  45. #define FINSH_ARG_MAX 10
  46. /* Device Drivers */
  47. #define RT_USING_DEVICE_IPC
  48. #define RT_USING_SERIAL
  49. #define RT_USING_SERIAL_V1
  50. #define RT_SERIAL_RB_BUFSZ 64
  51. /* Using USB */
  52. #define RT_USING_USB
  53. #define RT_USING_USB_HOST
  54. #define RT_USBD_THREAD_STACK_SZ 512
  55. /* C/C++ and POSIX layer */
  56. #define RT_LIBC_DEFAULT_TIMEZONE 8
  57. /* POSIX (Portable Operating System Interface) layer */
  58. /* Interprocess Communication (IPC) */
  59. /* Socket is in the 'Network' category */
  60. /* Network */
  61. #define RT_USING_NETDEV
  62. #define NETDEV_USING_IFCONFIG
  63. #define NETDEV_USING_PING
  64. #define NETDEV_IPV4 1
  65. #define NETDEV_IPV6 0
  66. #define RT_USING_LWIP
  67. #define RT_USING_LWIP212
  68. #define RT_USING_LWIP_VER_NUM 0x20102
  69. #define RT_LWIP_MEM_ALIGNMENT 4
  70. #define RT_LWIP_ICMP
  71. #define RT_LWIP_DNS
  72. /* Static IPv4 Address */
  73. #define RT_LWIP_IPADDR "19.111.115.250"
  74. #define RT_LWIP_GWADDR "19.111.115.254"
  75. #define RT_LWIP_MSKADDR "255.255.255.0"
  76. #define RT_LWIP_UDP
  77. #define RT_LWIP_TCP
  78. #define RT_LWIP_RAW
  79. #define RT_MEMP_NUM_NETCONN 4
  80. #define RT_LWIP_PBUF_NUM 4
  81. #define RT_LWIP_RAW_PCB_NUM 4
  82. #define RT_LWIP_UDP_PCB_NUM 4
  83. #define RT_LWIP_TCP_PCB_NUM 4
  84. #define RT_LWIP_TCP_SEG_NUM 8
  85. #define RT_LWIP_TCP_SND_BUF 3072
  86. #define RT_LWIP_TCP_WND 3072
  87. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  88. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 4
  89. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  90. #define LWIP_NO_TX_THREAD
  91. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  92. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  93. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 4
  94. #define LWIP_NETIF_STATUS_CALLBACK 0
  95. #define LWIP_NETIF_LINK_CALLBACK 0
  96. #define SO_REUSE 1
  97. #define LWIP_SO_RCVTIMEO 1
  98. #define LWIP_SO_SNDTIMEO 1
  99. #define LWIP_SO_RCVBUF 1
  100. #define LWIP_SO_LINGER 0
  101. #define LWIP_NETIF_LOOPBACK 0
  102. #define RT_LWIP_USING_PING
  103. /* Utilities */
  104. /* RT-Thread Utestcases */
  105. /* RT-Thread online packages */
  106. /* IoT - internet of things */
  107. /* Wi-Fi */
  108. /* Marvell WiFi */
  109. /* Wiced WiFi */
  110. /* IoT Cloud */
  111. /* security packages */
  112. /* language packages */
  113. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  114. /* XML: Extensible Markup Language */
  115. /* multimedia packages */
  116. /* LVGL: powerful and easy-to-use embedded GUI library */
  117. /* u8g2: a monochrome graphic library */
  118. /* PainterEngine: A cross-platform graphics application framework written in C language */
  119. /* tools packages */
  120. /* system packages */
  121. /* enhanced kernel services */
  122. /* POSIX extension functions */
  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. /* AI packages */
  128. /* miscellaneous packages */
  129. /* project laboratory */
  130. /* samples: kernel and components samples */
  131. /* entertainment: terminal games and other interesting software packages */
  132. /* Hardware Drivers Config */
  133. #define SOC_CH579M
  134. /* On-chip Peripheral Drivers */
  135. #define BSP_USING_UART
  136. #define BSP_USING_UART1
  137. #define BSP_USING_USBH
  138. #define BSP_USING_ETH
  139. #endif