rtconfig.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 8
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 32
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 1000
  10. #define RT_USING_HOOK
  11. #define RT_HOOK_USING_FUNC_PTR
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 2048
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 2048
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. /* klibc optimization */
  21. /* end of klibc optimization */
  22. #define RT_USING_DEBUG
  23. #define RT_DEBUGING_ASSERT
  24. #define RT_DEBUGING_COLOR
  25. #define RT_DEBUGING_CONTEXT
  26. #define RT_USING_OVERFLOW_CHECK
  27. /* Inter-Thread communication */
  28. #define RT_USING_SEMAPHORE
  29. #define RT_USING_MUTEX
  30. #define RT_USING_EVENT
  31. #define RT_USING_MAILBOX
  32. #define RT_USING_MESSAGEQUEUE
  33. /* end of Inter-Thread communication */
  34. /* Memory Management */
  35. #define RT_USING_MEMPOOL
  36. #define RT_USING_SMALL_MEM
  37. #define RT_USING_SMALL_MEM_AS_HEAP
  38. #define RT_USING_HEAP
  39. /* end of Memory Management */
  40. #define RT_USING_DEVICE
  41. #define RT_USING_CONSOLE
  42. #define RT_CONSOLEBUF_SIZE 128
  43. #define RT_CONSOLE_DEVICE_NAME "uart0"
  44. #define RT_VER_NUM 0x50200
  45. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  46. /* end of RT-Thread Kernel */
  47. #define RT_USING_CACHE
  48. #define ARCH_RISCV
  49. #define ARCH_RISCV_FPU
  50. #define ARCH_RISCV_FPU_S
  51. #define ARCH_RISCV32
  52. /* RT-Thread Components */
  53. #define RT_USING_COMPONENTS_INIT
  54. #define RT_USING_USER_MAIN
  55. #define RT_MAIN_THREAD_STACK_SIZE 2048
  56. #define RT_MAIN_THREAD_PRIORITY 10
  57. #define RT_USING_MSH
  58. #define RT_USING_FINSH
  59. #define FINSH_USING_MSH
  60. #define FINSH_THREAD_NAME "tshell"
  61. #define FINSH_THREAD_PRIORITY 20
  62. #define FINSH_THREAD_STACK_SIZE 4096
  63. #define FINSH_USING_HISTORY
  64. #define FINSH_HISTORY_LINES 5
  65. #define FINSH_USING_SYMTAB
  66. #define FINSH_CMD_SIZE 80
  67. #define MSH_USING_BUILT_IN_COMMANDS
  68. #define FINSH_USING_DESCRIPTION
  69. #define FINSH_ARG_MAX 10
  70. #define FINSH_USING_OPTION_COMPLETION
  71. /* DFS: device virtual file system */
  72. #define RT_USING_DFS
  73. #define DFS_USING_POSIX
  74. #define DFS_USING_WORKDIR
  75. #define DFS_FD_MAX 16
  76. #define RT_USING_DFS_V1
  77. #define DFS_FILESYSTEMS_MAX 4
  78. #define DFS_FILESYSTEM_TYPES_MAX 4
  79. #define RT_USING_DFS_ELMFAT
  80. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  81. #define RT_DFS_ELM_CODE_PAGE 437
  82. #define RT_DFS_ELM_WORD_ACCESS
  83. #define RT_DFS_ELM_USE_LFN_3
  84. #define RT_DFS_ELM_USE_LFN 3
  85. #define RT_DFS_ELM_LFN_UNICODE_0
  86. #define RT_DFS_ELM_LFN_UNICODE 0
  87. #define RT_DFS_ELM_MAX_LFN 255
  88. #define RT_DFS_ELM_DRIVES 2
  89. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  90. #define RT_DFS_ELM_REENTRANT
  91. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  92. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  93. #define RT_USING_DFS_DEVFS
  94. #define RT_USING_DFS_ROMFS
  95. /* end of DFS: device virtual file system */
  96. /* Device Drivers */
  97. #define RT_USING_DEVICE_IPC
  98. #define RT_UNAMED_PIPE_NUMBER 64
  99. #define RT_USING_SERIAL
  100. #define RT_USING_SERIAL_V1
  101. #define RT_SERIAL_USING_DMA
  102. #define RT_SERIAL_RB_BUFSZ 64
  103. #define RT_USING_SDIO
  104. #define RT_SDIO_STACK_SIZE 512
  105. #define RT_SDIO_THREAD_PRIORITY 15
  106. #define RT_MMCSD_STACK_SIZE 2048
  107. #define RT_MMCSD_THREAD_PRIORITY 22
  108. #define RT_MMCSD_MAX_PARTITION 16
  109. #define RT_USING_PIN
  110. /* end of Device Drivers */
  111. /* C/C++ and POSIX layer */
  112. /* ISO-ANSI C layer */
  113. /* Timezone and Daylight Saving Time */
  114. #define RT_LIBC_USING_LIGHT_TZ_DST
  115. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  116. #define RT_LIBC_TZ_DEFAULT_MIN 0
  117. #define RT_LIBC_TZ_DEFAULT_SEC 0
  118. /* end of Timezone and Daylight Saving Time */
  119. /* end of ISO-ANSI C layer */
  120. /* POSIX (Portable Operating System Interface) layer */
  121. /* Interprocess Communication (IPC) */
  122. /* Socket is in the 'Network' category */
  123. /* end of Interprocess Communication (IPC) */
  124. /* end of POSIX (Portable Operating System Interface) layer */
  125. /* end of C/C++ and POSIX layer */
  126. /* Network */
  127. /* end of Network */
  128. /* Memory protection */
  129. /* end of Memory protection */
  130. /* Utilities */
  131. /* end of Utilities */
  132. /* Using USB legacy version */
  133. /* end of Using USB legacy version */
  134. /* end of RT-Thread Components */
  135. /* RT-Thread Utestcases */
  136. /* end of RT-Thread Utestcases */
  137. /* RT-Thread online packages */
  138. /* IoT - internet of things */
  139. /* Wi-Fi */
  140. /* Marvell WiFi */
  141. /* end of Marvell WiFi */
  142. /* Wiced WiFi */
  143. /* end of Wiced WiFi */
  144. /* CYW43012 WiFi */
  145. /* end of CYW43012 WiFi */
  146. /* BL808 WiFi */
  147. /* end of BL808 WiFi */
  148. /* CYW43439 WiFi */
  149. /* end of CYW43439 WiFi */
  150. /* end of Wi-Fi */
  151. /* IoT Cloud */
  152. /* end of IoT Cloud */
  153. /* end of IoT - internet of things */
  154. /* security packages */
  155. /* end of security packages */
  156. /* language packages */
  157. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  158. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  159. /* XML: Extensible Markup Language */
  160. /* end of XML: Extensible Markup Language */
  161. /* end of language packages */
  162. /* multimedia packages */
  163. /* LVGL: powerful and easy-to-use embedded GUI library */
  164. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  165. /* u8g2: a monochrome graphic library */
  166. /* end of u8g2: a monochrome graphic library */
  167. /* end of multimedia packages */
  168. /* tools packages */
  169. /* end of tools packages */
  170. /* system packages */
  171. /* enhanced kernel services */
  172. /* end of enhanced kernel services */
  173. /* acceleration: Assembly language or algorithmic acceleration packages */
  174. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  175. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  176. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  177. /* Micrium: Micrium software products porting for RT-Thread */
  178. /* end of Micrium: Micrium software products porting for RT-Thread */
  179. /* end of system packages */
  180. /* peripheral libraries and drivers */
  181. /* HAL & SDK Drivers */
  182. /* STM32 HAL & SDK Drivers */
  183. /* end of STM32 HAL & SDK Drivers */
  184. /* Infineon HAL Packages */
  185. /* end of Infineon HAL Packages */
  186. /* Kendryte SDK */
  187. /* end of Kendryte SDK */
  188. /* end of HAL & SDK Drivers */
  189. /* sensors drivers */
  190. /* end of sensors drivers */
  191. /* touch drivers */
  192. /* end of touch drivers */
  193. /* end of peripheral libraries and drivers */
  194. /* AI packages */
  195. /* end of AI packages */
  196. /* Signal Processing and Control Algorithm Packages */
  197. /* end of Signal Processing and Control Algorithm Packages */
  198. /* miscellaneous packages */
  199. /* project laboratory */
  200. /* end of project laboratory */
  201. /* samples: kernel and components samples */
  202. /* end of samples: kernel and components samples */
  203. /* entertainment: terminal games and other interesting software packages */
  204. /* end of entertainment: terminal games and other interesting software packages */
  205. /* end of miscellaneous packages */
  206. /* Arduino libraries */
  207. /* Projects and Demos */
  208. /* end of Projects and Demos */
  209. /* Sensors */
  210. /* end of Sensors */
  211. /* Display */
  212. /* end of Display */
  213. /* Timing */
  214. /* end of Timing */
  215. /* Data Processing */
  216. /* end of Data Processing */
  217. /* Data Storage */
  218. /* Communication */
  219. /* end of Communication */
  220. /* Device Control */
  221. /* end of Device Control */
  222. /* Other */
  223. /* end of Other */
  224. /* Signal IO */
  225. /* end of Signal IO */
  226. /* Uncategorized */
  227. /* end of Arduino libraries */
  228. /* end of RT-Thread online packages */
  229. #define BSP_USING_BL61X
  230. #define BSP_USING_ROMAPI
  231. #define BSP_USING_BL61X_MODULE_DEFAULT
  232. /* General Drivers Configuration */
  233. /* General Purpose UARTs */
  234. #define BSP_USING_UART0
  235. #define UART0_TX_USING_GPIO21
  236. #define UART0_RX_USING_GPIO22
  237. /* end of General Purpose UARTs */
  238. /* end of General Drivers Configuration */
  239. #endif