rtconfig.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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_USING_IDLE_HOOK
  16. #define RT_IDLE_HOOK_LIST_SIZE 4
  17. #define IDLE_THREAD_STACK_SIZE 4096
  18. #define SYSTEM_THREAD_STACK_SIZE 4096
  19. /* kservice optimization */
  20. #define RT_DEBUG
  21. #define RT_DEBUG_COLOR
  22. #define RT_DEBUG_INIT_CONFIG
  23. #define RT_DEBUG_INIT 1
  24. /* Inter-Thread communication */
  25. #define RT_USING_SEMAPHORE
  26. #define RT_USING_MUTEX
  27. #define RT_USING_EVENT
  28. #define RT_USING_MAILBOX
  29. #define RT_USING_MESSAGEQUEUE
  30. #define RT_USING_SIGNALS
  31. /* Memory Management */
  32. #define RT_USING_MEMPOOL
  33. #define RT_USING_SLAB
  34. #define RT_USING_MEMHEAP
  35. #define RT_MEMHEAP_FAST_MODE
  36. #define RT_USING_SLAB_AS_HEAP
  37. #define RT_USING_HEAP
  38. /* Kernel Device Object */
  39. #define RT_USING_DEVICE
  40. #define RT_USING_CONSOLE
  41. #define RT_CONSOLEBUF_SIZE 128
  42. #define RT_CONSOLE_DEVICE_NAME "uarths"
  43. #define RT_VER_NUM 0x40100
  44. #define ARCH_CPU_64BIT
  45. #define ARCH_RISCV
  46. #define ARCH_RISCV_FPU
  47. #define ARCH_RISCV_FPU_S
  48. #define ARCH_RISCV64
  49. /* RT-Thread Components */
  50. #define RT_USING_COMPONENTS_INIT
  51. #define RT_USING_USER_MAIN
  52. #define RT_MAIN_THREAD_STACK_SIZE 8192
  53. #define RT_MAIN_THREAD_PRIORITY 10
  54. /* C++ features */
  55. #define RT_USING_CPLUSPLUS
  56. /* Command shell */
  57. #define RT_USING_FINSH
  58. #define RT_USING_MSH
  59. #define FINSH_USING_MSH
  60. #define FINSH_THREAD_NAME "tshell"
  61. #define FINSH_THREAD_PRIORITY 20
  62. #define FINSH_THREAD_STACK_SIZE 16384
  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. /* Device virtual file system */
  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_PIPE_BUFSZ 512
  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. /* POSIX layer and C standard library */
  108. #define RT_USING_LIBC
  109. #define RT_LIBC_USING_TIME
  110. #define RT_LIBC_DEFAULT_TIMEZONE 8
  111. /* POSIX (Portable Operating System Interface) layer */
  112. #define RT_USING_POSIX_DELAY
  113. /* Network */
  114. /* Socket abstraction layer */
  115. /* Network interface device */
  116. /* light weight TCP/IP stack */
  117. /* AT commands */
  118. /* VBUS(Virtual Software BUS) */
  119. /* Utilities */
  120. #define RT_USING_ULOG
  121. #define ULOG_OUTPUT_LVL_D
  122. #define ULOG_OUTPUT_LVL 7
  123. #define ULOG_ASSERT_ENABLE
  124. #define ULOG_LINE_BUF_SIZE 128
  125. /* log format */
  126. #define ULOG_USING_COLOR
  127. #define ULOG_OUTPUT_TIME
  128. #define ULOG_OUTPUT_LEVEL
  129. #define ULOG_OUTPUT_TAG
  130. #define ULOG_BACKEND_USING_CONSOLE
  131. /* RT-Thread Utestcases */
  132. /* RT-Thread online packages */
  133. /* IoT - internet of things */
  134. /* Wi-Fi */
  135. /* Marvell WiFi */
  136. /* Wiced WiFi */
  137. /* IoT Cloud */
  138. /* security packages */
  139. /* language packages */
  140. /* multimedia packages */
  141. /* LVGL: powerful and easy-to-use embedded GUI library */
  142. /* u8g2: a monochrome graphic library */
  143. /* PainterEngine: A cross-platform graphics application framework written in C language */
  144. /* tools packages */
  145. /* system packages */
  146. /* rt_kprintf: enhanced rt_kprintf packages */
  147. /* acceleration: Assembly language or algorithmic acceleration packages */
  148. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  149. /* Micrium: Micrium software products porting for RT-Thread */
  150. /* peripheral libraries and drivers */
  151. #define PKG_USING_KENDRYTE_SDK
  152. #define PKG_USING_KENDRYTE_SDK_V057
  153. #define PKG_KENDRYTE_SDK_VERNUM 0x0057
  154. /* AI packages */
  155. /* miscellaneous packages */
  156. /* samples: kernel and components samples */
  157. /* entertainment: terminal games and other interesting software packages */
  158. #define BOARD_K210_EVB
  159. /* Hardware Drivers Config */
  160. #define BSP_USING_UART_HS
  161. /* General Purpose UARTs */
  162. #define BSP_USING_UART1
  163. #define BSP_UART1_TXD_PIN 20
  164. #define BSP_UART1_RXD_PIN 21
  165. #define BSP_USING_SPI1
  166. #define BSP_SPI1_CLK_PIN 27
  167. #define BSP_SPI1_D0_PIN 28
  168. #define BSP_SPI1_D1_PIN 26
  169. #define BSP_SPI1_USING_SS0
  170. #define BSP_SPI1_SS0_PIN 29
  171. #define BSP_USING_LCD
  172. #define BSP_LCD_CS_PIN 36
  173. #define BSP_LCD_WR_PIN 39
  174. #define BSP_LCD_DC_PIN 38
  175. #define BSP_LCD_RST_PIN 37
  176. #define BSP_LCD_BACKLIGHT_PIN -1
  177. #define BSP_LCD_BACKLIGHT_ACTIVE_LOW
  178. #define BSP_LCD_CLK_FREQ 15000000
  179. #define BSP_BOARD_K210_OPENMV_TEST
  180. #define BSP_LCD_X_MAX 240
  181. #define BSP_LCD_Y_MAX 320
  182. #define __STACKSIZE__ 4096
  183. #endif