rtconfig.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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 100
  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 256
  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_MEMHEAP
  25. #define RT_USING_MEMHEAP_AS_HEAP
  26. #define RT_USING_HEAP
  27. /* Kernel Device Object */
  28. #define RT_USING_DEVICE
  29. #define RT_USING_CONSOLE
  30. #define RT_CONSOLEBUF_SIZE 128
  31. #define RT_CONSOLE_DEVICE_NAME "uart1"
  32. #define ARCH_ARM
  33. #define ARCH_ARM_CORTEX_M
  34. #define ARCH_ARM_CORTEX_M7
  35. /* RT-Thread Components */
  36. #define RT_USING_COMPONENTS_INIT
  37. #define RT_USING_USER_MAIN
  38. #define RT_MAIN_THREAD_STACK_SIZE 2048
  39. /* C++ features */
  40. /* Command shell */
  41. #define RT_USING_FINSH
  42. #define FINSH_THREAD_NAME "tshell"
  43. #define FINSH_USING_HISTORY
  44. #define FINSH_HISTORY_LINES 5
  45. #define FINSH_USING_SYMTAB
  46. #define FINSH_USING_DESCRIPTION
  47. #define FINSH_THREAD_PRIORITY 20
  48. #define FINSH_THREAD_STACK_SIZE 4096
  49. #define FINSH_CMD_SIZE 80
  50. #define FINSH_USING_MSH
  51. #define FINSH_USING_MSH_DEFAULT
  52. /* Device virtual file system */
  53. #define RT_USING_DFS
  54. #define DFS_USING_WORKDIR
  55. #define DFS_FILESYSTEMS_MAX 2
  56. #define DFS_FILESYSTEM_TYPES_MAX 2
  57. #define DFS_FD_MAX 4
  58. #define RT_USING_DFS_ELMFAT
  59. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  60. #define RT_DFS_ELM_CODE_PAGE 437
  61. #define RT_DFS_ELM_WORD_ACCESS
  62. #define RT_DFS_ELM_USE_LFN_3
  63. #define RT_DFS_ELM_USE_LFN 3
  64. #define RT_DFS_ELM_MAX_LFN 255
  65. #define RT_DFS_ELM_DRIVES 2
  66. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  67. #define RT_DFS_ELM_REENTRANT
  68. #define RT_USING_DFS_DEVFS
  69. /* Device Drivers */
  70. #define RT_USING_DEVICE_IPC
  71. #define RT_USING_SERIAL
  72. #define RT_USING_I2C
  73. #define RT_USING_I2C_BITOPS
  74. #define RT_USING_PIN
  75. #define RT_USING_RTC
  76. #define RT_USING_SDIO
  77. #define RT_USING_SPI
  78. /* Using USB */
  79. /* POSIX layer and C standard library */
  80. #define RT_USING_LIBC
  81. /* Network stack */
  82. /* light weight TCP/IP stack */
  83. #define RT_USING_LWIP
  84. #define RT_USING_LWIP202
  85. #define RT_LWIP_ICMP
  86. #define RT_LWIP_DNS
  87. #define RT_LWIP_DHCP
  88. #define IP_SOF_BROADCAST 1
  89. #define IP_SOF_BROADCAST_RECV 1
  90. /* Static IPv4 Address */
  91. #define RT_LWIP_IPADDR "192.168.1.30"
  92. #define RT_LWIP_GWADDR "192.168.1.1"
  93. #define RT_LWIP_MSKADDR "255.255.255.0"
  94. #define RT_LWIP_UDP
  95. #define RT_LWIP_TCP
  96. #define RT_MEMP_NUM_NETCONN 8
  97. #define RT_LWIP_PBUF_NUM 16
  98. #define RT_LWIP_RAW_PCB_NUM 4
  99. #define RT_LWIP_UDP_PCB_NUM 4
  100. #define RT_LWIP_TCP_PCB_NUM 4
  101. #define RT_LWIP_TCP_SEG_NUM 40
  102. #define RT_LWIP_TCP_SND_BUF 8196
  103. #define RT_LWIP_TCP_WND 8196
  104. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  105. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  106. #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
  107. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  108. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  109. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  110. #define LWIP_NETIF_STATUS_CALLBACK 1
  111. #define SO_REUSE 1
  112. #define LWIP_SO_RCVTIMEO 1
  113. #define LWIP_SO_SNDTIMEO 1
  114. #define LWIP_SO_RCVBUF 1
  115. #define LWIP_NETIF_LOOPBACK 0
  116. /* Modbus master and slave stack */
  117. /* VBUS(Virtual Software BUS) */
  118. /* Utilities */
  119. /* ARM CMSIS */
  120. /* RT-Thread online packages */
  121. /* system packages */
  122. /* RT-Thread GUI Engine */
  123. /* IoT - internet of things */
  124. /* Wi-Fi */
  125. /* Marvell WiFi */
  126. /* Wiced WiFi */
  127. /* security packages */
  128. /* language packages */
  129. /* multimedia packages */
  130. /* tools packages */
  131. /* miscellaneous packages */
  132. /* example package: hello */
  133. #define SOC_IMXRT1052
  134. #define BOARD_USING_HYPERFLASH
  135. #define BOARD_RT1050_EVK
  136. /* RT1050 Bsp Config */
  137. /* Select uart drivers */
  138. #define RT_USING_UART1
  139. /* Select spi bus and dev drivers */
  140. #define LPSPI_CLK_SOURCE_FROM_PLL3PFD1
  141. #define LPSPI_CLK_SOURCE 0
  142. #define LPSPI_CLK_SOURCE_DIVIDER 8
  143. #define RT_USING_SPIBUS4
  144. #define LPSPI4_SCK_GPIO_1
  145. #define LPSPI4_SDO_GPIO_1
  146. #define LPSPI4_SDI_GPIO_1
  147. /* Select iic bus drivers */
  148. #define RT_USING_HW_I2C1
  149. #define HW_I2C1_BADURATE_100kHZ
  150. /* Select lcd driver */
  151. /* Notice: Evk Board para: 480*272 4 4 8 2 40 10 106 45 */
  152. #define RT_USING_LCD
  153. #define LCD_WIDTH 480
  154. #define LCD_HEIGHT 272
  155. #define LCD_HFP 4
  156. #define LCD_VFP 4
  157. #define LCD_HBP 8
  158. #define LCD_VBP 2
  159. #define LCD_HSW 40
  160. #define LCD_VSW 10
  161. #define LCD_BL_PIN 106
  162. #define LCD_RST_PIN 45
  163. #define RT_USING_SDRAM
  164. #define RT_USING_RTC_HP
  165. #endif