rtconfig.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Project Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_USING_SMP
  8. #define RT_CPUS_NR 2
  9. #define RT_ALIGN_SIZE 4
  10. #define RT_THREAD_PRIORITY_32
  11. #define RT_THREAD_PRIORITY_MAX 32
  12. #define RT_TICK_PER_SECOND 100
  13. #define RT_USING_OVERFLOW_CHECK
  14. #define RT_USING_HOOK
  15. #define RT_USING_IDLE_HOOK
  16. #define RT_IDLE_HOOK_LIST_SIZE 4
  17. #define IDLE_THREAD_STACK_SIZE 1024
  18. #define RT_USING_TIMER_SOFT
  19. #define RT_TIMER_THREAD_PRIO 4
  20. #define RT_TIMER_THREAD_STACK_SIZE 1024
  21. /* kservice optimization */
  22. #define RT_DEBUG
  23. #define RT_DEBUG_COLOR
  24. /* Inter-Thread communication */
  25. #define RT_USING_SEMAPHORE
  26. #define RT_USING_MUTEX
  27. #define RT_USING_EVENT
  28. #define RT_USING_MAILBOX
  29. #define RT_USING_MESSAGEQUEUE
  30. #define RT_USING_SIGNALS
  31. /* Memory Management */
  32. #define RT_USING_MEMPOOL
  33. #define RT_USING_MEMHEAP
  34. #define RT_USING_SMALL_MEM
  35. #define RT_USING_MEMTRACE
  36. #define RT_USING_HEAP
  37. /* Kernel Device Object */
  38. #define RT_USING_DEVICE
  39. #define RT_USING_DEVICE_OPS
  40. #define RT_USING_INTERRUPT_INFO
  41. #define RT_USING_CONSOLE
  42. #define RT_CONSOLEBUF_SIZE 256
  43. #define RT_CONSOLE_DEVICE_NAME "uart0"
  44. #define RT_VER_NUM 0x40004
  45. #define ARCH_ARM
  46. #define RT_USING_CPU_FFS
  47. #define ARCH_ARM_CORTEX_A
  48. #define RT_USING_GIC_V2
  49. #define ARCH_ARM_CORTEX_A9
  50. /* RT-Thread Components */
  51. #define RT_USING_COMPONENTS_INIT
  52. #define RT_USING_USER_MAIN
  53. #define RT_MAIN_THREAD_STACK_SIZE 2048
  54. #define RT_MAIN_THREAD_PRIORITY 10
  55. /* C++ features */
  56. #define RT_USING_CPLUSPLUS
  57. /* Command shell */
  58. #define RT_USING_FINSH
  59. #define FINSH_THREAD_NAME "tshell"
  60. #define FINSH_USING_HISTORY
  61. #define FINSH_HISTORY_LINES 5
  62. #define FINSH_USING_SYMTAB
  63. #define FINSH_USING_DESCRIPTION
  64. #define FINSH_THREAD_PRIORITY 20
  65. #define FINSH_THREAD_STACK_SIZE 4096
  66. #define FINSH_CMD_SIZE 80
  67. #define FINSH_USING_MSH
  68. #define FINSH_USING_MSH_DEFAULT
  69. #define FINSH_ARG_MAX 10
  70. /* Device virtual file system */
  71. #define RT_USING_DFS
  72. #define DFS_USING_WORKDIR
  73. #define DFS_FILESYSTEMS_MAX 4
  74. #define DFS_FILESYSTEM_TYPES_MAX 8
  75. #define DFS_FD_MAX 32
  76. #define RT_USING_DFS_ELMFAT
  77. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  78. #define RT_DFS_ELM_CODE_PAGE 437
  79. #define RT_DFS_ELM_WORD_ACCESS
  80. #define RT_DFS_ELM_USE_LFN_3
  81. #define RT_DFS_ELM_USE_LFN 3
  82. #define RT_DFS_ELM_LFN_UNICODE_0
  83. #define RT_DFS_ELM_LFN_UNICODE 0
  84. #define RT_DFS_ELM_MAX_LFN 255
  85. #define RT_DFS_ELM_DRIVES 2
  86. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  87. #define RT_DFS_ELM_REENTRANT
  88. #define RT_USING_DFS_DEVFS
  89. #define RT_USING_DFS_ROMFS
  90. #define RT_USING_DFS_RAMFS
  91. /* Device Drivers */
  92. #define RT_USING_DEVICE_IPC
  93. #define RT_PIPE_BUFSZ 512
  94. #define RT_USING_SYSTEM_WORKQUEUE
  95. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  96. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  97. #define RT_USING_SERIAL
  98. #define RT_SERIAL_USING_DMA
  99. #define RT_SERIAL_RB_BUFSZ 64
  100. #define RT_USING_I2C
  101. #define RT_USING_I2C_BITOPS
  102. #define RT_USING_PIN
  103. #define RT_USING_MTD_NOR
  104. #define RT_USING_MTD_NAND
  105. #define RT_MTD_NAND_DEBUG
  106. #define RT_USING_RTC
  107. #define RT_USING_SOFT_RTC
  108. #define RT_USING_SDIO
  109. #define RT_SDIO_STACK_SIZE 512
  110. #define RT_SDIO_THREAD_PRIORITY 15
  111. #define RT_MMCSD_STACK_SIZE 1024
  112. #define RT_MMCSD_THREAD_PREORITY 22
  113. #define RT_MMCSD_MAX_PARTITION 16
  114. #define RT_USING_SPI
  115. #define RT_USING_SPI_MSD
  116. #define RT_USING_SFUD
  117. #define RT_SFUD_USING_SFDP
  118. #define RT_SFUD_USING_FLASH_INFO_TABLE
  119. #define RT_SFUD_SPI_MAX_HZ 50000000
  120. #define RT_USING_WDT
  121. /* Using USB */
  122. /* POSIX layer and C standard library */
  123. #define RT_USING_LIBC
  124. #define RT_USING_PTHREADS
  125. #define PTHREAD_NUM_MAX 8
  126. #define RT_USING_POSIX
  127. #define RT_USING_POSIX_MMAP
  128. #define RT_USING_POSIX_TERMIOS
  129. #define RT_USING_POSIX_GETLINE
  130. #define RT_USING_POSIX_AIO
  131. #define RT_LIBC_FIXED_TIMEZONE 8
  132. /* Network */
  133. /* Socket abstraction layer */
  134. #define RT_USING_SAL
  135. #define SAL_INTERNET_CHECK
  136. /* protocol stack implement */
  137. #define SAL_USING_LWIP
  138. #define SAL_USING_POSIX
  139. /* Network interface device */
  140. #define RT_USING_NETDEV
  141. #define NETDEV_USING_IFCONFIG
  142. #define NETDEV_USING_PING
  143. #define NETDEV_USING_NETSTAT
  144. #define NETDEV_USING_AUTO_DEFAULT
  145. #define NETDEV_IPV4 1
  146. #define NETDEV_IPV6 0
  147. /* light weight TCP/IP stack */
  148. #define RT_USING_LWIP
  149. #define RT_USING_LWIP212
  150. #define RT_LWIP_MEM_ALIGNMENT 4
  151. #define RT_LWIP_ICMP
  152. #define RT_LWIP_DNS
  153. #define RT_LWIP_DHCP
  154. #define IP_SOF_BROADCAST 1
  155. #define IP_SOF_BROADCAST_RECV 1
  156. /* Static IPv4 Address */
  157. #define RT_LWIP_IPADDR "192.168.1.30"
  158. #define RT_LWIP_GWADDR "192.168.1.1"
  159. #define RT_LWIP_MSKADDR "255.255.255.0"
  160. #define RT_LWIP_UDP
  161. #define RT_LWIP_TCP
  162. #define RT_LWIP_RAW
  163. #define RT_MEMP_NUM_NETCONN 8
  164. #define RT_LWIP_PBUF_NUM 16
  165. #define RT_LWIP_RAW_PCB_NUM 4
  166. #define RT_LWIP_UDP_PCB_NUM 4
  167. #define RT_LWIP_TCP_PCB_NUM 4
  168. #define RT_LWIP_TCP_SEG_NUM 40
  169. #define RT_LWIP_TCP_SND_BUF 8196
  170. #define RT_LWIP_TCP_WND 8196
  171. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  172. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  173. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  174. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  175. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  176. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  177. #define RT_LWIP_REASSEMBLY_FRAG
  178. #define LWIP_NETIF_STATUS_CALLBACK 1
  179. #define LWIP_NETIF_LINK_CALLBACK 1
  180. #define SO_REUSE 1
  181. #define LWIP_SO_RCVTIMEO 1
  182. #define LWIP_SO_SNDTIMEO 1
  183. #define LWIP_SO_RCVBUF 1
  184. #define LWIP_SO_LINGER 0
  185. #define LWIP_NETIF_LOOPBACK 0
  186. #define RT_LWIP_USING_PING
  187. /* AT commands */
  188. /* VBUS(Virtual Software BUS) */
  189. /* Utilities */
  190. #define RT_USING_LWP
  191. /* RT-Thread online packages */
  192. /* IoT - internet of things */
  193. /* Wi-Fi */
  194. /* Marvell WiFi */
  195. /* Wiced WiFi */
  196. /* IoT Cloud */
  197. /* security packages */
  198. /* language packages */
  199. /* multimedia packages */
  200. /* tools packages */
  201. /* system packages */
  202. /* Micrium: Micrium software products porting for RT-Thread */
  203. /* peripheral libraries and drivers */
  204. /* miscellaneous packages */
  205. /* samples: kernel and components samples */
  206. /* games: games run on RT-Thread console */
  207. #define SOC_VEXPRESS_A9
  208. #define RT_USING_UART0
  209. #define RT_USING_UART1
  210. #define BSP_DRV_EMAC
  211. #endif