rtconfig.h 5.8 KB

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