rtconfig.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 10
  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 RT_DEBUG
  12. #define RT_USING_OVERFLOW_CHECK
  13. #define RT_DEBUG_INIT 0
  14. #define RT_DEBUG_THREAD 0
  15. #define RT_USING_HOOK
  16. #define IDLE_THREAD_STACK_SIZE 1024
  17. /* Inter-Thread communication */
  18. #define RT_USING_SEMAPHORE
  19. #define RT_USING_MUTEX
  20. #define RT_USING_EVENT
  21. #define RT_USING_MAILBOX
  22. #define RT_USING_MESSAGEQUEUE
  23. /* Memory Management */
  24. #define RT_USING_MEMPOOL
  25. #define RT_USING_MEMHEAP
  26. #define RT_USING_SMALL_MEM
  27. #define RT_USING_HEAP
  28. /* Kernel Device Object */
  29. #define RT_USING_DEVICE
  30. #define RT_USING_INTERRUPT_INFO
  31. #define RT_USING_CONSOLE
  32. #define RT_CONSOLEBUF_SIZE 128
  33. #define RT_CONSOLE_DEVICE_NAME "uart2"
  34. /* RT-Thread Components */
  35. #define RT_USING_COMPONENTS_INIT
  36. #define RT_USING_USER_MAIN
  37. #define RT_MAIN_THREAD_STACK_SIZE 2048
  38. /* C++ features */
  39. /* Command shell */
  40. #define RT_USING_FINSH
  41. #define FINSH_THREAD_NAME "tshell"
  42. #define FINSH_USING_HISTORY
  43. #define FINSH_HISTORY_LINES 5
  44. #define FINSH_USING_SYMTAB
  45. #define FINSH_USING_DESCRIPTION
  46. #define FINSH_THREAD_PRIORITY 20
  47. #define FINSH_THREAD_STACK_SIZE 4096
  48. #define FINSH_CMD_SIZE 80
  49. #define FINSH_USING_MSH
  50. #define FINSH_USING_MSH_DEFAULT
  51. /* Device virtual file system */
  52. #define RT_USING_DFS
  53. #define DFS_USING_WORKDIR
  54. #define DFS_FILESYSTEMS_MAX 2
  55. #define DFS_FILESYSTEM_TYPES_MAX 2
  56. #define DFS_FD_MAX 4
  57. #define RT_USING_DFS_ELMFAT
  58. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  59. #define RT_DFS_ELM_CODE_PAGE 936
  60. #define RT_DFS_ELM_WORD_ACCESS
  61. #define RT_DFS_ELM_USE_LFN_0
  62. #define RT_DFS_ELM_USE_LFN 0
  63. #define RT_DFS_ELM_MAX_LFN 64
  64. #define RT_DFS_ELM_DRIVES 2
  65. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  66. #define RT_DFS_ELM_REENTRANT
  67. /* Device Drivers */
  68. #define RT_USING_DEVICE_IPC
  69. #define RT_USING_SERIAL
  70. #define RT_USING_CAN
  71. #define RT_CAN_USING_HDR
  72. #define RT_USING_I2C
  73. #define RT_USING_I2C_BITOPS
  74. #define RT_USING_PIN
  75. #define RT_USING_SPI
  76. #define RT_USING_SPI_MSD
  77. /* Using USB */
  78. /* POSIX layer and C standard library */
  79. #define RT_USING_LIBC
  80. #define RT_USING_PTHREADS
  81. /* Network stack */
  82. /* light weight TCP/IP stack */
  83. #define RT_USING_LWIP
  84. #define RT_USING_LWIP141
  85. #define RT_LWIP_IGMP
  86. #define RT_LWIP_ICMP
  87. #define RT_LWIP_DNS
  88. #define RT_LWIP_DHCP
  89. #define IP_SOF_BROADCAST 1
  90. #define IP_SOF_BROADCAST_RECV 1
  91. /* Static IPv4 Address */
  92. #define RT_LWIP_IPADDR "192.168.1.254"
  93. #define RT_LWIP_GWADDR "192.168.1.1"
  94. #define RT_LWIP_MSKADDR "255.255.255.0"
  95. #define RT_LWIP_UDP
  96. #define RT_LWIP_TCP
  97. #define RT_MEMP_NUM_NETCONN 8
  98. #define RT_LWIP_PBUF_NUM 4
  99. #define RT_LWIP_RAW_PCB_NUM 4
  100. #define RT_LWIP_UDP_PCB_NUM 4
  101. #define RT_LWIP_TCP_PCB_NUM 3
  102. #define RT_LWIP_TCP_SEG_NUM 40
  103. #define RT_LWIP_TCP_SND_BUF 4096
  104. #define RT_LWIP_TCP_WND 2048
  105. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  106. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  107. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  108. #define RT_LWIP_ETHTHREAD_PRIORITY 14
  109. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  110. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  111. #define LWIP_NETIF_STATUS_CALLBACK 1
  112. #define SO_REUSE 1
  113. #define LWIP_SO_RCVTIMEO 1
  114. #define LWIP_SO_SNDTIMEO 1
  115. #define LWIP_SO_RCVBUF 1
  116. #define LWIP_NETIF_LOOPBACK 0
  117. /* Modbus master and slave stack */
  118. /* VBUS(Virtual Software BUS) */
  119. /* Utilities */
  120. /* RT-Thread online packages */
  121. /* IoT - internet of things */
  122. /* Wi-Fi */
  123. /* Marvell WiFi */
  124. /* Wiced WiFi */
  125. /* security packages */
  126. /* language packages */
  127. /* multimedia packages */
  128. /* tools packages */
  129. /* system packages */
  130. /* RT-Thread GUI Engine */
  131. /* peripheral libraries and drivers */
  132. /* miscellaneous packages */
  133. /* sample package */
  134. /* example package: hello */
  135. #define RT_USING_UART2
  136. #define RT_UART_RX_BUFFER_SIZE 64
  137. #define RT_USING_GMAC_INT_MODE
  138. #define RT_USING_FPU
  139. #define RT_USING_SPI0
  140. #define RT_USING_SPI1
  141. #define RT_USING_I2C1
  142. #define RT_USING_I2C2
  143. #define USING_BXCAN0
  144. #define USING_BXCAN1
  145. #endif