rtconfig.h 9.0 KB

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