rtconfig.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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 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. /* Inter-Thread communication */
  17. #define RT_USING_SEMAPHORE
  18. #define RT_USING_MUTEX
  19. #define RT_USING_EVENT
  20. #define RT_USING_MAILBOX
  21. #define RT_USING_MESSAGEQUEUE
  22. /* Memory Management */
  23. #define RT_USING_MEMPOOL
  24. #define RT_USING_MEMHEAP
  25. #define RT_USING_SMALL_MEM
  26. #define RT_USING_HEAP
  27. /* Kernel Device Object */
  28. #define RT_USING_DEVICE
  29. #define RT_USING_CONSOLE
  30. #define RT_CONSOLEBUF_SIZE 512
  31. #define RT_CONSOLE_DEVICE_NAME "uart1"
  32. #define RT_VER_NUM 0x40003
  33. #define ARCH_ARM
  34. #define RT_USING_CPU_FFS
  35. #define ARCH_ARM_CORTEX_M
  36. #define ARCH_ARM_CORTEX_M4
  37. /* RT-Thread Components */
  38. #define RT_USING_COMPONENTS_INIT
  39. #define RT_USING_USER_MAIN
  40. #define RT_MAIN_THREAD_STACK_SIZE 2048
  41. #define RT_MAIN_THREAD_PRIORITY 10
  42. /* C++ features */
  43. /* Command shell */
  44. #define RT_USING_FINSH
  45. #define FINSH_THREAD_NAME "tshell"
  46. #define FINSH_USING_HISTORY
  47. #define FINSH_HISTORY_LINES 5
  48. #define FINSH_USING_SYMTAB
  49. #define FINSH_USING_DESCRIPTION
  50. #define FINSH_THREAD_PRIORITY 20
  51. #define FINSH_THREAD_STACK_SIZE 4096
  52. #define FINSH_CMD_SIZE 80
  53. #define FINSH_USING_MSH
  54. #define FINSH_USING_MSH_DEFAULT
  55. #define FINSH_ARG_MAX 10
  56. /* Device virtual file system */
  57. #define RT_USING_DFS
  58. #define DFS_USING_WORKDIR
  59. #define DFS_FILESYSTEMS_MAX 2
  60. #define DFS_FILESYSTEM_TYPES_MAX 2
  61. #define DFS_FD_MAX 16
  62. #define RT_USING_DFS_ELMFAT
  63. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  64. #define RT_DFS_ELM_CODE_PAGE 437
  65. #define RT_DFS_ELM_WORD_ACCESS
  66. #define RT_DFS_ELM_USE_LFN_3
  67. #define RT_DFS_ELM_USE_LFN 3
  68. #define RT_DFS_ELM_MAX_LFN 255
  69. #define RT_DFS_ELM_DRIVES 2
  70. #define RT_DFS_ELM_MAX_SECTOR_SIZE 1024
  71. #define RT_DFS_ELM_REENTRANT
  72. #define RT_USING_DFS_DEVFS
  73. /* Device Drivers */
  74. #define RT_USING_DEVICE_IPC
  75. #define RT_PIPE_BUFSZ 512
  76. #define RT_USING_SERIAL
  77. #define RT_SERIAL_USING_DMA
  78. #define RT_SERIAL_RB_BUFSZ 64
  79. #define RT_USING_PIN
  80. #define RT_USING_MTD_NOR
  81. #define RT_USING_SDIO
  82. #define RT_SDIO_STACK_SIZE 512
  83. #define RT_SDIO_THREAD_PRIORITY 15
  84. #define RT_MMCSD_STACK_SIZE 1024
  85. #define RT_MMCSD_THREAD_PREORITY 22
  86. #define RT_MMCSD_MAX_PARTITION 16
  87. #define RT_USING_SPI
  88. #define RT_USING_SFUD
  89. #define RT_SFUD_USING_SFDP
  90. #define RT_SFUD_USING_FLASH_INFO_TABLE
  91. #define RT_SFUD_SPI_MAX_HZ 50000000
  92. #define RT_USING_HWCRYPTO
  93. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  94. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  95. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  96. #define RT_HWCRYPTO_USING_RNG
  97. /* Using USB */
  98. #define RT_USING_USB_DEVICE
  99. #define RT_USBD_THREAD_STACK_SZ 4096
  100. #define USB_VENDOR_ID 0x0FFE
  101. #define USB_PRODUCT_ID 0x0001
  102. #define _RT_USB_DEVICE_MSTORAGE
  103. #define RT_USB_DEVICE_MSTORAGE
  104. #define RT_USB_MSTORAGE_DISK_NAME "flash0"
  105. /* POSIX layer and C standard library */
  106. #define RT_USING_LIBC
  107. #define RT_USING_POSIX
  108. /* Network */
  109. /* Socket abstraction layer */
  110. /* Network interface device */
  111. /* light weight TCP/IP stack */
  112. /* AT commands */
  113. /* VBUS(Virtual Software BUS) */
  114. /* Utilities */
  115. #define RT_USING_RYM
  116. #define YMODEM_USING_CRC_TABLE
  117. #define YMODEM_USING_FILE_TRANSFER
  118. #define RT_USING_ULOG
  119. #define ULOG_OUTPUT_LVL_D
  120. #define ULOG_OUTPUT_LVL 7
  121. #define ULOG_ASSERT_ENABLE
  122. #define ULOG_LINE_BUF_SIZE 128
  123. /* log format */
  124. #define ULOG_USING_COLOR
  125. #define ULOG_OUTPUT_TIME
  126. #define ULOG_OUTPUT_LEVEL
  127. #define ULOG_OUTPUT_TAG
  128. #define ULOG_BACKEND_USING_CONSOLE
  129. /* RT-Thread online packages */
  130. /* IoT - internet of things */
  131. /* Wi-Fi */
  132. /* Marvell WiFi */
  133. /* Wiced WiFi */
  134. /* IoT Cloud */
  135. /* security packages */
  136. /* language packages */
  137. /* multimedia packages */
  138. /* tools packages */
  139. /* system packages */
  140. #define PKG_USING_FAL
  141. #define FAL_DEBUG_CONFIG
  142. #define FAL_DEBUG 1
  143. #define FAL_PART_HAS_TABLE_CFG
  144. #define FAL_USING_SFUD_PORT
  145. #define FAL_USING_NOR_FLASH_DEV_NAME "W25Q16JV"
  146. #define PKG_USING_FAL_V00500
  147. #define PKG_FAL_VER_NUM 0x00500
  148. #define PKG_USING_LITTLEFS
  149. #define PKG_USING_LITTLEFS_V205
  150. #define LFS_READ_SIZE 256
  151. #define LFS_PROG_SIZE 256
  152. #define LFS_BLOCK_SIZE 4096
  153. #define LFS_CACHE_SIZE 256
  154. #define LFS_BLOCK_CYCLES 100
  155. #define LFS_LOOKAHEAD_MAX 128
  156. /* peripheral libraries and drivers */
  157. #define SDIO_MAX_FREQ 1000000
  158. /* miscellaneous packages */
  159. /* samples: kernel and components samples */
  160. #define SOC_FAMILY_STM32
  161. #define SOC_SERIES_STM32F4
  162. /* Hardware Drivers Config */
  163. #define SOC_STM32F407ZG
  164. /* Onboard Peripheral Drivers */
  165. #define BSP_USING_USB_TO_USART
  166. #define BSP_USING_COM3
  167. #define BSP_USING_SPI_FLASH
  168. #define BSP_USING_SDCARD
  169. /* On-chip Peripheral Drivers */
  170. #define BSP_USING_GPIO
  171. #define BSP_USING_UART
  172. #define BSP_USING_UART1
  173. #define BSP_USING_UART3
  174. #define BSP_USING_ON_CHIP_FLASH
  175. #define BSP_USING_SPI
  176. #define BSP_USING_SPI1
  177. #define BSP_USING_SDIO
  178. #define BSP_USING_UDID
  179. /* Board extended module Drivers */
  180. #endif