rtconfig.h 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. /* end of rt_vsnprintf options */
  7. /* rt_vsscanf options */
  8. /* end of rt_vsscanf options */
  9. /* rt_memset options */
  10. /* end of rt_memset options */
  11. /* rt_memcpy options */
  12. /* end of rt_memcpy options */
  13. /* rt_memmove options */
  14. /* end of rt_memmove options */
  15. /* rt_memcmp options */
  16. /* end of rt_memcmp options */
  17. /* rt_strstr options */
  18. /* end of rt_strstr options */
  19. /* rt_strcasecmp options */
  20. /* end of rt_strcasecmp options */
  21. /* rt_strncpy options */
  22. /* end of rt_strncpy options */
  23. /* rt_strcpy options */
  24. /* end of rt_strcpy options */
  25. /* rt_strncmp options */
  26. /* end of rt_strncmp options */
  27. /* rt_strcmp options */
  28. /* end of rt_strcmp options */
  29. /* rt_strlen options */
  30. /* end of rt_strlen options */
  31. /* rt_strnlen options */
  32. /* end of rt_strnlen options */
  33. /* end of klibc options */
  34. #define RT_NAME_MAX 12
  35. #define RT_CPUS_NR 1
  36. #define RT_ALIGN_SIZE 8
  37. #define RT_THREAD_PRIORITY_32
  38. #define RT_THREAD_PRIORITY_MAX 32
  39. #define RT_TICK_PER_SECOND 100
  40. #define RT_USING_OVERFLOW_CHECK
  41. #define RT_USING_HOOK
  42. #define RT_HOOK_USING_FUNC_PTR
  43. #define RT_USING_IDLE_HOOK
  44. #define RT_IDLE_HOOK_LIST_SIZE 4
  45. #define IDLE_THREAD_STACK_SIZE 1024
  46. /* kservice options */
  47. /* end of kservice options */
  48. #define RT_USING_DEBUG
  49. #define RT_DEBUGING_ASSERT
  50. #define RT_DEBUGING_COLOR
  51. #define RT_DEBUGING_CONTEXT
  52. /* Inter-Thread communication */
  53. #define RT_USING_SEMAPHORE
  54. #define RT_USING_MUTEX
  55. #define RT_USING_EVENT
  56. #define RT_USING_MAILBOX
  57. #define RT_USING_MESSAGEQUEUE
  58. /* end of Inter-Thread communication */
  59. /* Memory Management */
  60. #define RT_USING_MEMPOOL
  61. #define RT_USING_SMALL_MEM
  62. #define RT_USING_SMALL_MEM_AS_HEAP
  63. #define RT_USING_HEAP
  64. /* end of Memory Management */
  65. #define RT_USING_DEVICE
  66. #define RT_USING_CONSOLE
  67. #define RT_CONSOLEBUF_SIZE 128
  68. #define RT_CONSOLE_DEVICE_NAME "uart0"
  69. #define RT_VER_NUM 0x50201
  70. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  71. /* end of RT-Thread Kernel */
  72. #define ARCH_RISCV
  73. /* RT-Thread Components */
  74. #define RT_USING_COMPONENTS_INIT
  75. #define RT_USING_USER_MAIN
  76. #define RT_MAIN_THREAD_STACK_SIZE 2048
  77. #define RT_MAIN_THREAD_PRIORITY 10
  78. #define RT_USING_MSH
  79. #define RT_USING_FINSH
  80. #define FINSH_USING_MSH
  81. #define FINSH_THREAD_NAME "tshell"
  82. #define FINSH_THREAD_PRIORITY 20
  83. #define FINSH_THREAD_STACK_SIZE 4096
  84. #define FINSH_USING_HISTORY
  85. #define FINSH_HISTORY_LINES 5
  86. #define FINSH_USING_SYMTAB
  87. #define FINSH_CMD_SIZE 80
  88. #define MSH_USING_BUILT_IN_COMMANDS
  89. #define FINSH_USING_DESCRIPTION
  90. #define FINSH_ARG_MAX 10
  91. #define FINSH_USING_OPTION_COMPLETION
  92. /* DFS: device virtual file system */
  93. #define RT_USING_DFS
  94. #define DFS_USING_POSIX
  95. #define DFS_USING_WORKDIR
  96. #define DFS_FD_MAX 16
  97. #define RT_USING_DFS_V1
  98. #define DFS_FILESYSTEMS_MAX 4
  99. #define DFS_FILESYSTEM_TYPES_MAX 4
  100. #define RT_USING_DFS_ELMFAT
  101. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  102. #define RT_DFS_ELM_CODE_PAGE 437
  103. #define RT_DFS_ELM_WORD_ACCESS
  104. #define RT_DFS_ELM_USE_LFN_3
  105. #define RT_DFS_ELM_USE_LFN 3
  106. #define RT_DFS_ELM_LFN_UNICODE_0
  107. #define RT_DFS_ELM_LFN_UNICODE 0
  108. #define RT_DFS_ELM_MAX_LFN 255
  109. #define RT_DFS_ELM_DRIVES 2
  110. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  111. #define RT_DFS_ELM_REENTRANT
  112. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  113. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  114. #define RT_USING_DFS_DEVFS
  115. /* end of DFS: device virtual file system */
  116. /* Device Drivers */
  117. #define RT_USING_DEVICE_IPC
  118. #define RT_UNAMED_PIPE_NUMBER 64
  119. #define RT_USING_SERIAL
  120. #define RT_USING_SERIAL_V1
  121. #define RT_SERIAL_USING_DMA
  122. #define RT_SERIAL_RB_BUFSZ 64
  123. #define RT_USING_RTC
  124. #define RT_USING_PIN
  125. /* end of Device Drivers */
  126. /* C/C++ and POSIX layer */
  127. /* ISO-ANSI C layer */
  128. /* Timezone and Daylight Saving Time */
  129. #define RT_LIBC_USING_LIGHT_TZ_DST
  130. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  131. #define RT_LIBC_TZ_DEFAULT_MIN 0
  132. #define RT_LIBC_TZ_DEFAULT_SEC 0
  133. /* end of Timezone and Daylight Saving Time */
  134. /* end of ISO-ANSI C layer */
  135. /* POSIX (Portable Operating System Interface) layer */
  136. #define RT_USING_POSIX_FS
  137. /* Interprocess Communication (IPC) */
  138. /* Socket is in the 'Network' category */
  139. /* end of Interprocess Communication (IPC) */
  140. /* end of POSIX (Portable Operating System Interface) layer */
  141. /* end of C/C++ and POSIX layer */
  142. /* Network */
  143. /* end of Network */
  144. /* Memory protection */
  145. /* end of Memory protection */
  146. /* Utilities */
  147. #define RT_USING_ULOG
  148. #define ULOG_OUTPUT_LVL_D
  149. #define ULOG_OUTPUT_LVL 7
  150. #define ULOG_USING_ISR_LOG
  151. #define ULOG_ASSERT_ENABLE
  152. #define ULOG_LINE_BUF_SIZE 128
  153. /* log format */
  154. #define ULOG_USING_COLOR
  155. #define ULOG_OUTPUT_TIME
  156. #define ULOG_OUTPUT_LEVEL
  157. #define ULOG_OUTPUT_TAG
  158. /* end of log format */
  159. #define ULOG_BACKEND_USING_CONSOLE
  160. /* end of Utilities */
  161. /* Using USB legacy version */
  162. /* end of Using USB legacy version */
  163. /* end of RT-Thread Components */
  164. /* RT-Thread Utestcases */
  165. /* end of RT-Thread Utestcases */
  166. /* RT-Thread online packages */
  167. /* IoT - internet of things */
  168. /* Wi-Fi */
  169. /* Marvell WiFi */
  170. /* end of Marvell WiFi */
  171. /* Wiced WiFi */
  172. /* end of Wiced WiFi */
  173. /* CYW43012 WiFi */
  174. /* end of CYW43012 WiFi */
  175. /* BL808 WiFi */
  176. /* end of BL808 WiFi */
  177. /* CYW43439 WiFi */
  178. /* end of CYW43439 WiFi */
  179. /* end of Wi-Fi */
  180. /* IoT Cloud */
  181. /* end of IoT Cloud */
  182. /* end of IoT - internet of things */
  183. /* security packages */
  184. /* end of security packages */
  185. /* language packages */
  186. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  187. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  188. /* XML: Extensible Markup Language */
  189. /* end of XML: Extensible Markup Language */
  190. #define PKG_USING_MICROPYTHON
  191. /* Hardware Module */
  192. #define MICROPYTHON_USING_MACHINE_UART
  193. /* end of Hardware Module */
  194. /* System Module */
  195. #define MICROPYTHON_USING_UOS
  196. #define MICROPYTHON_USING_FILE_SYNC_VIA_IDE
  197. #define MICROPYTHON_USING_THREAD
  198. /* end of System Module */
  199. /* Tools Module */
  200. #define MICROPYTHON_USING_UJSON
  201. /* end of Tools Module */
  202. /* Network Module */
  203. /* end of Network Module */
  204. /* User Extended Module */
  205. /* end of User Extended Module */
  206. #define PKG_MICROPYTHON_HEAP_SIZE 8192
  207. #define MICROPYTHON_USING_FLOAT_IMPL_FLOAT
  208. #define PKG_USING_MICROPYTHON_LATEST_VERSION
  209. #define PKG_MICROPYTHON_VER_NUM 0x99999
  210. /* end of language packages */
  211. /* multimedia packages */
  212. /* LVGL: powerful and easy-to-use embedded GUI library */
  213. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  214. /* u8g2: a monochrome graphic library */
  215. /* end of u8g2: a monochrome graphic library */
  216. /* end of multimedia packages */
  217. /* tools packages */
  218. /* end of tools packages */
  219. /* system packages */
  220. /* enhanced kernel services */
  221. /* end of enhanced kernel services */
  222. /* acceleration: Assembly language or algorithmic acceleration packages */
  223. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  224. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  225. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  226. /* Micrium: Micrium software products porting for RT-Thread */
  227. /* end of Micrium: Micrium software products porting for RT-Thread */
  228. /* end of system packages */
  229. /* peripheral libraries and drivers */
  230. /* HAL & SDK Drivers */
  231. /* STM32 HAL & SDK Drivers */
  232. /* end of STM32 HAL & SDK Drivers */
  233. /* Infineon HAL Packages */
  234. /* end of Infineon HAL Packages */
  235. /* Kendryte SDK */
  236. /* end of Kendryte SDK */
  237. /* WCH HAL & SDK Drivers */
  238. /* end of WCH HAL & SDK Drivers */
  239. /* AT32 HAL & SDK Drivers */
  240. /* end of AT32 HAL & SDK Drivers */
  241. /* HC32 DDL Drivers */
  242. /* end of HC32 DDL Drivers */
  243. /* NXP HAL & SDK Drivers */
  244. /* end of NXP HAL & SDK Drivers */
  245. /* NUVOTON Drivers */
  246. /* end of NUVOTON Drivers */
  247. /* GD32 Drivers */
  248. /* end of GD32 Drivers */
  249. /* end of HAL & SDK Drivers */
  250. /* sensors drivers */
  251. /* end of sensors drivers */
  252. /* touch drivers */
  253. /* end of touch drivers */
  254. /* end of peripheral libraries and drivers */
  255. /* AI packages */
  256. /* end of AI packages */
  257. /* Signal Processing and Control Algorithm Packages */
  258. /* end of Signal Processing and Control Algorithm Packages */
  259. /* miscellaneous packages */
  260. /* project laboratory */
  261. /* end of project laboratory */
  262. /* samples: kernel and components samples */
  263. /* end of samples: kernel and components samples */
  264. /* entertainment: terminal games and other interesting software packages */
  265. /* end of entertainment: terminal games and other interesting software packages */
  266. /* end of miscellaneous packages */
  267. /* Arduino libraries */
  268. /* Projects and Demos */
  269. /* end of Projects and Demos */
  270. /* Sensors */
  271. /* end of Sensors */
  272. /* Display */
  273. /* end of Display */
  274. /* Timing */
  275. /* end of Timing */
  276. /* Data Processing */
  277. /* end of Data Processing */
  278. /* Data Storage */
  279. /* Communication */
  280. /* end of Communication */
  281. /* Device Control */
  282. /* end of Device Control */
  283. /* Other */
  284. /* end of Other */
  285. /* Signal IO */
  286. /* end of Signal IO */
  287. /* Uncategorized */
  288. /* end of Arduino libraries */
  289. /* end of RT-Thread online packages */
  290. #define SOC_VEGA_RI5CY
  291. #define BOARD_X_FRDM_VEGA
  292. #define BSP_USING_UART0
  293. #define BSP_USING_UART1
  294. #endif