rtconfig.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Automatically generated file; DO NOT EDIT. */
  4. /* RT-Thread Project Configuration */
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_USING_SMP
  8. #define RT_CPUS_NR 2
  9. #define RT_ALIGN_SIZE 8
  10. #define RT_THREAD_PRIORITY_32
  11. #define RT_THREAD_PRIORITY_MAX 32
  12. #define RT_TICK_PER_SECOND 1000
  13. #define RT_USING_OVERFLOW_CHECK
  14. #define RT_USING_HOOK
  15. #define RT_HOOK_USING_FUNC_PTR
  16. #define RT_USING_IDLE_HOOK
  17. #define RT_IDLE_HOOK_LIST_SIZE 4
  18. #define IDLE_THREAD_STACK_SIZE 4096
  19. #define SYSTEM_THREAD_STACK_SIZE 4096
  20. /* kservice optimization */
  21. #define RT_KPRINTF_USING_LONGLONG
  22. #define RT_DEBUG
  23. #define RT_DEBUG_COLOR
  24. #define RT_DEBUG_INIT_CONFIG
  25. #define RT_DEBUG_INIT 1
  26. /* Inter-Thread communication */
  27. #define RT_USING_SEMAPHORE
  28. #define RT_USING_MUTEX
  29. #define RT_USING_EVENT
  30. #define RT_USING_MAILBOX
  31. #define RT_USING_MESSAGEQUEUE
  32. #define RT_USING_SIGNALS
  33. /* Memory Management */
  34. #define RT_PAGE_MAX_ORDER 11
  35. #define RT_USING_MEMPOOL
  36. #define RT_USING_SLAB
  37. #define RT_USING_MEMHEAP
  38. #define RT_MEMHEAP_FAST_MODE
  39. #define RT_USING_SLAB_AS_HEAP
  40. #define RT_USING_HEAP
  41. /* Kernel Device Object */
  42. #define RT_USING_DEVICE
  43. #define RT_USING_CONSOLE
  44. #define RT_CONSOLEBUF_SIZE 128
  45. #define RT_CONSOLE_DEVICE_NAME "uarths"
  46. #define RT_VER_NUM 0x50000
  47. #define ARCH_CPU_64BIT
  48. #define RT_USING_HW_ATOMIC
  49. #define ARCH_RISCV
  50. #define ARCH_RISCV_FPU
  51. #define ARCH_RISCV_FPU_S
  52. #define ARCH_RISCV64
  53. /* RT-Thread Components */
  54. #define RT_USING_COMPONENTS_INIT
  55. #define RT_USING_USER_MAIN
  56. #define RT_MAIN_THREAD_STACK_SIZE 8192
  57. #define RT_MAIN_THREAD_PRIORITY 10
  58. #define RT_USING_MSH
  59. #define RT_USING_FINSH
  60. #define FINSH_USING_MSH
  61. #define FINSH_THREAD_NAME "tshell"
  62. #define FINSH_THREAD_PRIORITY 20
  63. #define FINSH_THREAD_STACK_SIZE 16384
  64. #define FINSH_USING_HISTORY
  65. #define FINSH_HISTORY_LINES 5
  66. #define FINSH_USING_SYMTAB
  67. #define FINSH_CMD_SIZE 80
  68. #define MSH_USING_BUILT_IN_COMMANDS
  69. #define FINSH_USING_DESCRIPTION
  70. #define FINSH_ARG_MAX 10
  71. #define RT_USING_DFS
  72. #define DFS_USING_POSIX
  73. #define DFS_USING_WORKDIR
  74. #define DFS_FILESYSTEMS_MAX 16
  75. #define DFS_FILESYSTEM_TYPES_MAX 16
  76. #define DFS_FD_MAX 64
  77. #define RT_USING_DFS_ELMFAT
  78. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  79. #define RT_DFS_ELM_CODE_PAGE 437
  80. #define RT_DFS_ELM_WORD_ACCESS
  81. #define RT_DFS_ELM_USE_LFN_3
  82. #define RT_DFS_ELM_USE_LFN 3
  83. #define RT_DFS_ELM_LFN_UNICODE_0
  84. #define RT_DFS_ELM_LFN_UNICODE 0
  85. #define RT_DFS_ELM_MAX_LFN 255
  86. #define RT_DFS_ELM_DRIVES 2
  87. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  88. #define RT_DFS_ELM_REENTRANT
  89. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  90. #define RT_USING_DFS_DEVFS
  91. /* Device Drivers */
  92. #define RT_USING_DEVICE_IPC
  93. #define RT_UNAMED_PIPE_NUMBER 64
  94. #define RT_USING_SERIAL
  95. #define RT_USING_SERIAL_V1
  96. #define RT_SERIAL_USING_DMA
  97. #define RT_SERIAL_RB_BUFSZ 64
  98. #define RT_USING_PIN
  99. #define RT_USING_SPI
  100. #define RT_USING_SPI_MSD
  101. #define RT_USING_SFUD
  102. #define RT_SFUD_USING_SFDP
  103. #define RT_SFUD_USING_FLASH_INFO_TABLE
  104. #define RT_SFUD_SPI_MAX_HZ 50000000
  105. #define RT_DEBUG_SFUD
  106. /* Using USB */
  107. /* C/C++ and POSIX layer */
  108. #define RT_LIBC_DEFAULT_TIMEZONE 8
  109. /* POSIX (Portable Operating System Interface) layer */
  110. #define RT_USING_POSIX_DELAY
  111. /* Interprocess Communication (IPC) */
  112. /* Socket is in the 'Network' category */
  113. #define RT_USING_CPLUSPLUS
  114. /* Network */
  115. /* Utilities */
  116. #define RT_USING_ULOG
  117. #define ULOG_OUTPUT_LVL_D
  118. #define ULOG_OUTPUT_LVL 7
  119. #define ULOG_ASSERT_ENABLE
  120. #define ULOG_LINE_BUF_SIZE 128
  121. /* log format */
  122. #define ULOG_USING_COLOR
  123. #define ULOG_OUTPUT_TIME
  124. #define ULOG_OUTPUT_LEVEL
  125. #define ULOG_OUTPUT_TAG
  126. #define ULOG_BACKEND_USING_CONSOLE
  127. /* RT-Thread Utestcases */
  128. /* RT-Thread online packages */
  129. /* IoT - internet of things */
  130. /* Wi-Fi */
  131. /* Marvell WiFi */
  132. /* Wiced WiFi */
  133. /* IoT Cloud */
  134. /* security packages */
  135. /* language packages */
  136. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  137. /* XML: Extensible Markup Language */
  138. /* multimedia packages */
  139. /* LVGL: powerful and easy-to-use embedded GUI library */
  140. /* u8g2: a monochrome graphic library */
  141. /* tools packages */
  142. /* system packages */
  143. /* enhanced kernel services */
  144. /* acceleration: Assembly language or algorithmic acceleration packages */
  145. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  146. /* Micrium: Micrium software products porting for RT-Thread */
  147. /* peripheral libraries and drivers */
  148. /* sensors drivers */
  149. /* touch drivers */
  150. /* Kendryte SDK */
  151. #define PKG_USING_K210_SDK
  152. #define PKG_USING_K210_SDK_LATEST_VERSION
  153. /* AI packages */
  154. /* Signal Processing and Control Algorithm Packages */
  155. /* miscellaneous packages */
  156. /* project laboratory */
  157. /* samples: kernel and components samples */
  158. /* entertainment: terminal games and other interesting software packages */
  159. /* Arduino libraries */
  160. /* Projects */
  161. /* Sensors */
  162. /* Display */
  163. /* Timing */
  164. /* Data Processing */
  165. /* Data Storage */
  166. /* Communication */
  167. /* Device Control */
  168. /* Other */
  169. /* Signal IO */
  170. /* Uncategorized */
  171. #define SOC_K210
  172. #define BOARD_K210_EVB
  173. /* Hardware Drivers Config */
  174. #define BSP_USING_UART_HS
  175. /* General Purpose UARTs */
  176. #define BSP_USING_UART1
  177. #define BSP_UART1_TXD_PIN 20
  178. #define BSP_UART1_RXD_PIN 21
  179. #define BSP_USING_SPI1
  180. #define BSP_SPI1_CLK_PIN 27
  181. #define BSP_SPI1_D0_PIN 28
  182. #define BSP_SPI1_D1_PIN 26
  183. #define BSP_SPI1_USING_SS0
  184. #define BSP_SPI1_SS0_PIN 29
  185. #define BSP_USING_LCD
  186. #define BSP_LCD_CS_PIN 36
  187. #define BSP_LCD_WR_PIN 39
  188. #define BSP_LCD_DC_PIN 38
  189. #define BSP_LCD_RST_PIN 37
  190. #define BSP_LCD_BACKLIGHT_PIN -1
  191. #define BSP_LCD_BACKLIGHT_ACTIVE_LOW
  192. #define BSP_LCD_CLK_FREQ 15000000
  193. #define BSP_BOARD_K210_OPENMV_TEST
  194. #define BSP_LCD_X_MAX 240
  195. #define BSP_LCD_Y_MAX 320
  196. #define __STACKSIZE__ 4096
  197. #endif