rtconfig.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 8
  6. #define RT_ALIGN_SIZE 4
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 1000
  10. #define RT_USING_OVERFLOW_CHECK
  11. #define RT_USING_HOOK
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. #define RT_DEBUG
  19. #define RT_DEBUG_COLOR
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. #define RT_USING_MAILBOX
  25. #define RT_USING_MESSAGEQUEUE
  26. /* end of Inter-Thread communication */
  27. /* Memory Management */
  28. #define RT_USING_MEMPOOL
  29. #define RT_USING_SMALL_MEM
  30. #define RT_USING_HEAP
  31. /* end of Memory Management */
  32. /* Kernel Device Object */
  33. #define RT_USING_DEVICE
  34. #define RT_USING_CONSOLE
  35. #define RT_CONSOLEBUF_SIZE 256
  36. #define RT_CONSOLE_DEVICE_NAME "uart1"
  37. /* end of Kernel Device Object */
  38. #define RT_VER_NUM 0x40002
  39. /* end of RT-Thread Kernel */
  40. #define ARCH_ARM
  41. #define RT_USING_CPU_FFS
  42. #define ARCH_ARM_CORTEX_M
  43. #define ARCH_ARM_CORTEX_M3
  44. /* RT-Thread Components */
  45. #define RT_USING_COMPONENTS_INIT
  46. #define RT_USING_USER_MAIN
  47. #define RT_MAIN_THREAD_STACK_SIZE 2048
  48. #define RT_MAIN_THREAD_PRIORITY 10
  49. /* C++ features */
  50. /* end of C++ features */
  51. /* Command shell */
  52. #define RT_USING_FINSH
  53. #define FINSH_THREAD_NAME "tshell"
  54. #define FINSH_USING_HISTORY
  55. #define FINSH_HISTORY_LINES 5
  56. #define FINSH_USING_SYMTAB
  57. #define FINSH_USING_DESCRIPTION
  58. #define FINSH_THREAD_PRIORITY 20
  59. #define FINSH_THREAD_STACK_SIZE 4096
  60. #define FINSH_CMD_SIZE 80
  61. #define FINSH_USING_MSH
  62. #define FINSH_USING_MSH_DEFAULT
  63. #define FINSH_USING_MSH_ONLY
  64. #define FINSH_ARG_MAX 10
  65. /* end of Command shell */
  66. /* Device virtual file system */
  67. #define RT_USING_DFS
  68. #define DFS_USING_WORKDIR
  69. #define DFS_FILESYSTEMS_MAX 2
  70. #define DFS_FILESYSTEM_TYPES_MAX 2
  71. #define DFS_FD_MAX 16
  72. #define RT_USING_DFS_DEVFS
  73. /* end of Device virtual file system */
  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 512
  80. #define RT_USING_PIN
  81. #define RT_USING_SPI
  82. #define RT_USING_SFUD
  83. #define RT_SFUD_USING_SFDP
  84. #define RT_SFUD_USING_FLASH_INFO_TABLE
  85. #define RT_SFUD_SPI_MAX_HZ 50000000
  86. #define RT_USING_WDT
  87. /* Using USB */
  88. /* end of Using USB */
  89. /* end of Device Drivers */
  90. /* POSIX layer and C standard library */
  91. /* end of POSIX layer and C standard library */
  92. /* Network */
  93. /* Socket abstraction layer */
  94. /* end of Socket abstraction layer */
  95. /* Network interface device */
  96. /* end of Network interface device */
  97. /* light weight TCP/IP stack */
  98. /* end of light weight TCP/IP stack */
  99. /* AT commands */
  100. /* end of AT commands */
  101. /* end of Network */
  102. /* VBUS(Virtual Software BUS) */
  103. /* end of VBUS(Virtual Software BUS) */
  104. /* Utilities */
  105. #define RT_USING_RYM
  106. #define YMODEM_USING_CRC_TABLE
  107. #define YMODEM_USING_FILE_TRANSFER
  108. /* end of Utilities */
  109. /* end of RT-Thread Components */
  110. /* RT-Thread online packages */
  111. /* IoT - internet of things */
  112. /* Wi-Fi */
  113. /* Marvell WiFi */
  114. /* end of Marvell WiFi */
  115. /* Wiced WiFi */
  116. /* end of Wiced WiFi */
  117. /* end of Wi-Fi */
  118. /* IoT Cloud */
  119. /* end of IoT Cloud */
  120. #define PKG_USING_OTA_DOWNLOADER
  121. #define OTA_DOWNLOADER_DEBUG
  122. #define PKG_USING_YMODEM_OTA
  123. #define PKG_USING_OTA_DOWNLOADER_LATEST_VERSION
  124. /* end of IoT - internet of things */
  125. /* security packages */
  126. #define PKG_USING_TINYCRYPT
  127. #define PKG_USING_TINYCRYPT_V100
  128. #define TINY_CRYPT_MD5
  129. #define TINY_CRYPT_BASE64
  130. #define TINY_CRYPT_AES
  131. #define TINY_CRYPT_AES_ROM_TABLES
  132. #define TINY_CRYPT_SHA1
  133. #define TINY_CRYPT_SHA256
  134. /* end of security packages */
  135. /* language packages */
  136. /* end of language packages */
  137. /* multimedia packages */
  138. /* end of multimedia packages */
  139. /* tools packages */
  140. #define PKG_USING_EASYFLASH
  141. #define PKG_EASYFLASH_ENV
  142. #define PKG_EASYFLASH_ERASE_GRAN 4096
  143. #define PKG_EASYFLASH_WRITE_GRAN_32BITS
  144. #define PKG_EASYFLASH_WRITE_GRAN 32
  145. #define PKG_EASYFLASH_START_ADDR 0
  146. #define PKG_USING_EASYFLASH_LATEST_VERSION
  147. #define PKG_EASYFLASH_VER_NUM 0x99999
  148. /* end of tools packages */
  149. /* system packages */
  150. #define PKG_USING_FAL
  151. #define FAL_DEBUG_CONFIG
  152. #define FAL_DEBUG 1
  153. #define FAL_PART_HAS_TABLE_CFG
  154. #define FAL_USING_SFUD_PORT
  155. #define FAL_USING_NOR_FLASH_DEV_NAME "w25q16m"
  156. #define PKG_USING_FAL_V00500
  157. #define PKG_FAL_VER_NUM 0x00500
  158. #define PKG_USING_SYSWATCH
  159. #define SYSWATCH_EXCEPT_RESOLVE_MODE_0
  160. #define SYSWATCH_EXCEPT_RESOLVE_MODE 0
  161. #define SYSWATCH_EXCEPT_TIMEOUT 60
  162. #define SYSWATCH_EXCEPT_CONFIRM_TMO 15
  163. #define SYSWATCH_EXCEPT_RESUME_DLY 15
  164. #define SYSWATCH_THREAD_PRIO 0
  165. #define SYSWATCH_THREAD_STK_SIZE 512
  166. #define SYSWATCH_THREAD_NAME "syswatch"
  167. #define SYSWATCH_WDT_NAME "wdt"
  168. #define SYSWATCH_WDT_TIMEOUT 10
  169. #define PKG_USING_SYSWATCH_LATEST_VERSION
  170. /* Micrium: Micrium software products porting for RT-Thread */
  171. /* end of Micrium: Micrium software products porting for RT-Thread */
  172. /* end of system packages */
  173. /* peripheral libraries and drivers */
  174. #define PKG_USING_SIGNAL_LED
  175. #define PKG_USING_SIGNAL_LED_LATEST_VERSION
  176. /* signalLed Options */
  177. /* end of signalLed Options */
  178. /* end of peripheral libraries and drivers */
  179. /* AI packages */
  180. /* end of AI packages */
  181. /* miscellaneous packages */
  182. #define PKG_USING_FASTLZ
  183. #define PKG_USING_FASTLZ_V101
  184. #define PKG_USING_QUICKLZ
  185. #define QLZ_COMPRESSION_LEVEL 3
  186. #define PKG_USING_QUICKLZ_V101
  187. /* samples: kernel and components samples */
  188. /* end of samples: kernel and components samples */
  189. /* entertainment: terminal games and other interesting software packages */
  190. /* end of entertainment: terminal games and other interesting software packages */
  191. /* end of miscellaneous packages */
  192. /* end of RT-Thread online packages */
  193. /* samples: kernel and components samples */
  194. /* end of samples: kernel and components samples */
  195. #define RT_STUDIO_BUILT_IN
  196. #endif