rtconfig.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 RT_DEBUG
  19. #define RT_DEBUG_COLOR
  20. #define RT_DEBUG_INIT_CONFIG
  21. #define RT_DEBUG_INIT 1
  22. /* Inter-Thread communication */
  23. #define RT_USING_SEMAPHORE
  24. #define RT_USING_MUTEX
  25. #define RT_USING_EVENT
  26. #define RT_USING_MAILBOX
  27. #define RT_USING_MESSAGEQUEUE
  28. #define RT_USING_SIGNALS
  29. /* Memory Management */
  30. #define RT_USING_MEMPOOL
  31. #define RT_USING_MEMHEAP
  32. #define RT_USING_SLAB
  33. #define RT_USING_HEAP
  34. /* Kernel Device Object */
  35. #define RT_USING_DEVICE
  36. #define RT_USING_CONSOLE
  37. #define RT_CONSOLEBUF_SIZE 128
  38. #define RT_CONSOLE_DEVICE_NAME "uarths"
  39. #define RT_VER_NUM 0x40003
  40. #define ARCH_CPU_64BIT
  41. #define ARCH_RISCV
  42. #define ARCH_RISCV64
  43. /* RT-Thread Components */
  44. #define RT_USING_COMPONENTS_INIT
  45. #define RT_USING_USER_MAIN
  46. #define RT_MAIN_THREAD_STACK_SIZE 8192
  47. #define RT_MAIN_THREAD_PRIORITY 10
  48. /* C++ features */
  49. /* Command shell */
  50. #define RT_USING_FINSH
  51. #define FINSH_THREAD_NAME "tshell"
  52. #define FINSH_USING_HISTORY
  53. #define FINSH_HISTORY_LINES 5
  54. #define FINSH_USING_SYMTAB
  55. #define FINSH_USING_DESCRIPTION
  56. #define FINSH_THREAD_PRIORITY 20
  57. #define FINSH_THREAD_STACK_SIZE 16384
  58. #define FINSH_CMD_SIZE 80
  59. #define FINSH_USING_MSH
  60. #define FINSH_USING_MSH_DEFAULT
  61. #define FINSH_USING_MSH_ONLY
  62. #define FINSH_ARG_MAX 10
  63. /* Device virtual file system */
  64. #define RT_USING_DFS
  65. #define DFS_USING_WORKDIR
  66. #define DFS_FILESYSTEMS_MAX 16
  67. #define DFS_FILESYSTEM_TYPES_MAX 16
  68. #define DFS_FD_MAX 64
  69. #define RT_USING_DFS_ELMFAT
  70. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  71. #define RT_DFS_ELM_CODE_PAGE 437
  72. #define RT_DFS_ELM_WORD_ACCESS
  73. #define RT_DFS_ELM_USE_LFN_3
  74. #define RT_DFS_ELM_USE_LFN 3
  75. #define RT_DFS_ELM_MAX_LFN 255
  76. #define RT_DFS_ELM_DRIVES 2
  77. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  78. #define RT_DFS_ELM_REENTRANT
  79. #define RT_USING_DFS_DEVFS
  80. /* Device Drivers */
  81. #define RT_USING_DEVICE_IPC
  82. #define RT_PIPE_BUFSZ 512
  83. #define RT_USING_SERIAL
  84. #define RT_SERIAL_USING_DMA
  85. #define RT_SERIAL_RB_BUFSZ 64
  86. #define RT_USING_PIN
  87. #define RT_USING_SPI
  88. #define RT_USING_SPI_MSD
  89. #define RT_USING_SFUD
  90. #define RT_SFUD_USING_SFDP
  91. #define RT_SFUD_USING_FLASH_INFO_TABLE
  92. #define RT_SFUD_SPI_MAX_HZ 50000000
  93. #define RT_DEBUG_SFUD
  94. /* Using USB */
  95. /* POSIX layer and C standard library */
  96. #define RT_USING_LIBC
  97. #define RT_USING_POSIX
  98. /* Network */
  99. /* Socket abstraction layer */
  100. /* Network interface device */
  101. /* light weight TCP/IP stack */
  102. /* AT commands */
  103. /* VBUS(Virtual Software BUS) */
  104. /* Utilities */
  105. #define RT_USING_ULOG
  106. #define ULOG_OUTPUT_LVL_D
  107. #define ULOG_OUTPUT_LVL 7
  108. #define ULOG_ASSERT_ENABLE
  109. #define ULOG_LINE_BUF_SIZE 128
  110. /* log format */
  111. #define ULOG_USING_COLOR
  112. #define ULOG_OUTPUT_TIME
  113. #define ULOG_OUTPUT_LEVEL
  114. #define ULOG_OUTPUT_TAG
  115. #define ULOG_BACKEND_USING_CONSOLE
  116. /* RT-Thread online packages */
  117. /* IoT - internet of things */
  118. /* Wi-Fi */
  119. /* Marvell WiFi */
  120. /* Wiced WiFi */
  121. /* IoT Cloud */
  122. /* security packages */
  123. /* language packages */
  124. /* multimedia packages */
  125. /* tools packages */
  126. /* system packages */
  127. /* peripheral libraries and drivers */
  128. #define PKG_USING_KENDRYTE_SDK
  129. #define PKG_USING_KENDRYTE_SDK_V055
  130. #define PKG_KENDRYTE_SDK_VERNUM 0x0055
  131. /* miscellaneous packages */
  132. /* samples: kernel and components samples */
  133. #define BOARD_K210_EVB
  134. #define BSP_USING_UART_HS
  135. /* General Purpose UARTs */
  136. #define BSP_USING_UART1
  137. #define BSP_UART1_TXD_PIN 20
  138. #define BSP_UART1_RXD_PIN 21
  139. #define BSP_USING_SPI1
  140. #define BSP_SPI1_CLK_PIN 27
  141. #define BSP_SPI1_D0_PIN 28
  142. #define BSP_SPI1_D1_PIN 26
  143. #define BSP_SPI1_USING_SS0
  144. #define BSP_SPI1_SS0_PIN 29
  145. #define BSP_USING_LCD
  146. #define BSP_LCD_CS_PIN 36
  147. #define BSP_LCD_WR_PIN 39
  148. #define BSP_LCD_DC_PIN 38
  149. #define BSP_LCD_X_MAX 240
  150. #define BSP_LCD_Y_MAX 320
  151. #define BSP_USING_CAMERA
  152. #define BSP_CAMERA_SCCB_SDA_PIN 9
  153. #define BSP_CAMERA_SCCB_SCLK_PIN 10
  154. #define BSP_CAMERA_CMOS_RST_PIN 11
  155. #define BSP_CAMERA_CMOS_VSYNC_PIN 12
  156. #define BSP_CAMERA_CMOS_PWDN_PIN 13
  157. #define BSP_CAMERA_CMOS_XCLK_PIN 14
  158. #define BSP_CAMERA_CMOS_PCLK_PIN 15
  159. #define BSP_CAMERA_CMOS_HREF_PIN 17
  160. #define __STACKSIZE__ 4096
  161. #endif