rtconfig.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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_USING_OVERFLOW_CHECK
  12. #define RT_USING_HOOK
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 1024
  16. #define RT_DEBUG
  17. #define RT_DEBUG_COLOR
  18. /* Inter-Thread communication */
  19. #define RT_USING_SEMAPHORE
  20. #define RT_USING_MUTEX
  21. #define RT_USING_EVENT
  22. #define RT_USING_MAILBOX
  23. #define RT_USING_MESSAGEQUEUE
  24. /* Memory Management */
  25. #define RT_USING_MEMPOOL
  26. #define RT_USING_MEMHEAP
  27. #define RT_USING_SMALL_MEM
  28. #define RT_USING_HEAP
  29. /* Kernel Device Object */
  30. #define RT_USING_DEVICE
  31. #define RT_USING_INTERRUPT_INFO
  32. #define RT_USING_CONSOLE
  33. #define RT_CONSOLEBUF_SIZE 128
  34. #define RT_CONSOLE_DEVICE_NAME "uart2"
  35. #define RT_VER_NUM 0x40003
  36. /* RT-Thread Components */
  37. #define RT_USING_COMPONENTS_INIT
  38. #define RT_USING_USER_MAIN
  39. #define RT_MAIN_THREAD_STACK_SIZE 2048
  40. #define RT_MAIN_THREAD_PRIORITY 10
  41. /* C++ features */
  42. /* Command shell */
  43. #define RT_USING_FINSH
  44. #define FINSH_THREAD_NAME "tshell"
  45. #define FINSH_USING_HISTORY
  46. #define FINSH_HISTORY_LINES 5
  47. #define FINSH_USING_SYMTAB
  48. #define FINSH_USING_DESCRIPTION
  49. #define FINSH_THREAD_PRIORITY 20
  50. #define FINSH_THREAD_STACK_SIZE 4096
  51. #define FINSH_CMD_SIZE 80
  52. #define FINSH_USING_MSH
  53. #define FINSH_USING_MSH_DEFAULT
  54. #define FINSH_ARG_MAX 10
  55. /* Device virtual file system */
  56. #define RT_USING_DFS
  57. #define DFS_USING_WORKDIR
  58. #define DFS_FILESYSTEMS_MAX 2
  59. #define DFS_FILESYSTEM_TYPES_MAX 2
  60. #define DFS_FD_MAX 4
  61. #define RT_USING_DFS_ELMFAT
  62. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  63. #define RT_DFS_ELM_CODE_PAGE 936
  64. #define RT_DFS_ELM_WORD_ACCESS
  65. #define RT_DFS_ELM_USE_LFN_0
  66. #define RT_DFS_ELM_USE_LFN 0
  67. #define RT_DFS_ELM_LFN_UNICODE_0
  68. #define RT_DFS_ELM_LFN_UNICODE 0
  69. #define RT_DFS_ELM_MAX_LFN 64
  70. #define RT_DFS_ELM_DRIVES 2
  71. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  72. #define RT_DFS_ELM_REENTRANT
  73. #define RT_USING_DFS_DEVFS
  74. /* Device Drivers */
  75. #define RT_USING_DEVICE_IPC
  76. #define RT_PIPE_BUFSZ 512
  77. #define RT_USING_SERIAL
  78. #define RT_SERIAL_USING_DMA
  79. #define RT_SERIAL_RB_BUFSZ 64
  80. #define RT_USING_CAN
  81. #define RT_USING_I2C
  82. #define RT_USING_I2C_BITOPS
  83. #define RT_USING_PIN
  84. #define RT_USING_SPI
  85. #define RT_USING_SPI_MSD
  86. /* Using USB */
  87. /* POSIX layer and C standard library */
  88. #define RT_USING_LIBC
  89. #define RT_USING_PTHREADS
  90. #define PTHREAD_NUM_MAX 8
  91. #define RT_USING_POSIX
  92. /* Network */
  93. /* Socket abstraction layer */
  94. /* Network interface device */
  95. #define NETDEV_USING_PING
  96. /* light weight TCP/IP stack */
  97. #define RT_USING_LWIP
  98. #define RT_USING_LWIP141
  99. #define RT_LWIP_MEM_ALIGNMENT 4
  100. #define RT_LWIP_IGMP
  101. #define RT_LWIP_ICMP
  102. #define RT_LWIP_DNS
  103. #define RT_LWIP_DHCP
  104. #define IP_SOF_BROADCAST 1
  105. #define IP_SOF_BROADCAST_RECV 1
  106. /* Static IPv4 Address */
  107. #define RT_LWIP_IPADDR "192.168.1.254"
  108. #define RT_LWIP_GWADDR "192.168.1.1"
  109. #define RT_LWIP_MSKADDR "255.255.255.0"
  110. #define RT_LWIP_UDP
  111. #define RT_LWIP_TCP
  112. #define RT_LWIP_RAW
  113. #define RT_MEMP_NUM_NETCONN 8
  114. #define RT_LWIP_PBUF_NUM 4
  115. #define RT_LWIP_RAW_PCB_NUM 4
  116. #define RT_LWIP_UDP_PCB_NUM 4
  117. #define RT_LWIP_TCP_PCB_NUM 3
  118. #define RT_LWIP_TCP_SEG_NUM 40
  119. #define RT_LWIP_TCP_SND_BUF 4096
  120. #define RT_LWIP_TCP_WND 2048
  121. #define RT_LWIP_TCPTHREAD_PRIORITY 12
  122. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  123. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  124. #define RT_LWIP_ETHTHREAD_PRIORITY 14
  125. #define RT_LWIP_ETHTHREAD_STACKSIZE 512
  126. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  127. #define LWIP_NETIF_STATUS_CALLBACK 1
  128. #define LWIP_NETIF_LINK_CALLBACK 1
  129. #define SO_REUSE 1
  130. #define LWIP_SO_RCVTIMEO 1
  131. #define LWIP_SO_SNDTIMEO 1
  132. #define LWIP_SO_RCVBUF 1
  133. #define LWIP_SO_LINGER 0
  134. #define LWIP_NETIF_LOOPBACK 0
  135. #define RT_LWIP_USING_PING
  136. /* AT commands */
  137. /* VBUS(Virtual Software BUS) */
  138. /* Utilities */
  139. /* RT-Thread MIPS CPU */
  140. /* RT-Thread online packages */
  141. /* IoT - internet of things */
  142. /* Wi-Fi */
  143. /* Marvell WiFi */
  144. /* Wiced WiFi */
  145. /* IoT Cloud */
  146. /* security packages */
  147. /* language packages */
  148. /* multimedia packages */
  149. /* tools packages */
  150. /* system packages */
  151. /* Micrium: Micrium software products porting for RT-Thread */
  152. /* peripheral libraries and drivers */
  153. /* miscellaneous packages */
  154. /* samples: kernel and components samples */
  155. /* games: games run on RT-Thread console */
  156. #define SOC_LS1C300
  157. #define RT_LS1C_OPENLOONGSON
  158. #define RT_USING_UART2
  159. #define RT_USING_UART1
  160. #define RT_UART_RX_BUFFER_SIZE 64
  161. #define RT_USING_GMAC_INT_MODE
  162. #define RT_USING_I2C1
  163. #define RT_USING_I2C2
  164. #define USING_BXCAN0
  165. #define USING_BXCAN1
  166. #define NO_TOUCH
  167. #endif