rtconfig.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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 20
  7. #define RT_USING_SMART
  8. #define RT_ALIGN_SIZE 8
  9. #define RT_THREAD_PRIORITY_32
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. #define RT_TICK_PER_SECOND 100
  12. #define RT_USING_HOOK
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 16384
  16. #define RT_USING_TIMER_SOFT
  17. #define RT_TIMER_THREAD_PRIO 4
  18. #define RT_TIMER_THREAD_STACK_SIZE 16384
  19. #define RT_DEBUG
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. #define RT_USING_MAILBOX
  25. #define RT_USING_MESSAGEQUEUE
  26. /* Memory Management */
  27. #define RT_USING_MEMPOOL
  28. #define RT_USING_SMALL_MEM
  29. #define RT_USING_MEMTRACE
  30. #define RT_USING_HEAP
  31. /* Kernel Device Object */
  32. #define RT_USING_DEVICE
  33. #define RT_USING_CONSOLE
  34. #define RT_CONSOLEBUF_SIZE 256
  35. #define RT_CONSOLE_DEVICE_NAME "uart0"
  36. #define RT_VER_NUM 0x50000
  37. #define ARCH_CPU_64BIT
  38. #define RT_USING_CACHE
  39. #define ARCH_MM_MMU
  40. #define RT_USING_USERSPACE
  41. #define KERNEL_VADDR_START 0x150000000
  42. #define PV_OFFSET 0
  43. #define ARCH_RISCV
  44. #define ARCH_RISCV64
  45. /* RT-Thread Components */
  46. #define RT_USING_COMPONENTS_INIT
  47. #define RT_USING_USER_MAIN
  48. #define RT_MAIN_THREAD_STACK_SIZE 16384
  49. #define RT_MAIN_THREAD_PRIORITY 10
  50. /* C++ features */
  51. #define RT_USING_MSH
  52. #define RT_USING_FINSH
  53. #define FINSH_USING_MSH
  54. #define FINSH_THREAD_NAME "tshell"
  55. #define FINSH_THREAD_PRIORITY 20
  56. #define FINSH_THREAD_STACK_SIZE 8192
  57. #define FINSH_USING_HISTORY
  58. #define FINSH_HISTORY_LINES 5
  59. #define FINSH_USING_SYMTAB
  60. #define FINSH_CMD_SIZE 80
  61. #define MSH_USING_BUILT_IN_COMMANDS
  62. #define FINSH_USING_DESCRIPTION
  63. #define FINSH_ARG_MAX 10
  64. /* Device virtual file system */
  65. #define RT_USING_DFS
  66. #define DFS_USING_WORKDIR
  67. #define DFS_FILESYSTEMS_MAX 8
  68. #define DFS_FILESYSTEM_TYPES_MAX 4
  69. #define DFS_FD_MAX 32
  70. #define RT_USING_DFS_ELMFAT
  71. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  72. #define RT_DFS_ELM_CODE_PAGE 936
  73. #define RT_DFS_ELM_WORD_ACCESS
  74. #define RT_DFS_ELM_USE_LFN_3
  75. #define RT_DFS_ELM_USE_LFN 3
  76. #define RT_DFS_ELM_MAX_LFN 255
  77. #define RT_DFS_ELM_DRIVES 8
  78. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  79. #define RT_DFS_ELM_REENTRANT
  80. #define RT_USING_DFS_DEVFS
  81. /* Device Drivers */
  82. #define RT_USING_DEVICE_IPC
  83. #define RT_UNAMED_PIPE_NUMBER 64
  84. #define RT_PIPE_BUFSZ 512
  85. #define RT_USING_SYSTEM_WORKQUEUE
  86. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 4096
  87. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  88. #define RT_USING_SERIAL
  89. #define RT_USING_SERIAL_V2
  90. #define RT_USING_TTY
  91. #define RT_USING_PIN
  92. #define RT_USING_NULL
  93. #define RT_USING_ZERO
  94. #define RT_USING_RANDOM
  95. #define RT_USING_RTC
  96. #define RT_USING_WDT
  97. #define RT_USING_AUDIO
  98. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  99. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  100. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  101. #define RT_USING_TOUCH
  102. #define RT_TOUCH_PIN_IRQ
  103. #define RT_USING_DEV_BUS
  104. /* Using USB */
  105. #define RT_USING_FAL
  106. #define FAL_DEBUG_CONFIG
  107. #define FAL_DEBUG 1
  108. #define FAL_PART_HAS_TABLE_CFG
  109. /* POSIX layer and C standard library */
  110. #define RT_USING_LIBC
  111. #define RT_USING_MUSL
  112. #define RT_USING_POSIX
  113. #define RT_USING_POSIX_CLOCKTIME
  114. /* Network */
  115. /* Socket abstraction layer */
  116. /* Network interface device */
  117. /* light weight TCP/IP stack */
  118. /* AT commands */
  119. /* VBUS(Virtual Software BUS) */
  120. /* Utilities */
  121. #define RT_USING_LWP
  122. #define RT_LWP_MAX_NR 30
  123. #define LWP_TASK_STACK_SIZE 16384
  124. #define RT_CH_MSG_MAX_NR 1024
  125. #define LWP_CONSOLE_INPUT_BUFFER_SIZE 1024
  126. #define LWP_TID_MAX_NR 64
  127. #define RT_LWP_SHM_MAX_NR 64
  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. /* PainterEngine: A cross-platform graphics application framework written in C language */
  142. /* tools packages */
  143. /* system packages */
  144. /* enhanced kernel services */
  145. /* acceleration: Assembly language or algorithmic acceleration packages */
  146. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  147. /* Micrium: Micrium software products porting for RT-Thread */
  148. /* peripheral libraries and drivers */
  149. /* Kendryte SDK */
  150. /* AI packages */
  151. /* miscellaneous packages */
  152. /* project laboratory */
  153. /* samples: kernel and components samples */
  154. /* entertainment: terminal games and other interesting software packages */
  155. /* Arduino libraries */
  156. /* Sensor libraries */
  157. /* Display libraries */
  158. /* Timing libraries */
  159. /* Project libraries */
  160. #define BOARD_allwinnerd1s
  161. #define ENABLE_FPU
  162. #define __STACKSIZE__ 16384
  163. /* General Drivers Configuration */
  164. #define BSP_USING_M7
  165. /* General Purpose UARTs */
  166. #define BSP_USING_UART0
  167. #define UART0_TX_USING_GPIOE2
  168. #define UART0_RX_USING_GPIOE3
  169. #define BSP_USING_SDMMC
  170. #define SD_CARD_CHECK
  171. #define BSP_USING_FS
  172. /* Board extended module Drivers */
  173. #define RT_USING_SUNXI_HAL
  174. /* UART Devices */
  175. /* CCMU Devices */
  176. #define DRIVERS_CCMU
  177. #define DRIVERS_SUNXI_CCU
  178. /* DMA Devices */
  179. #define DRIVERS_DMA
  180. /* GPIO Devices */
  181. #define DRIVERS_GPIO
  182. /* Video support for sunxi */
  183. #define DISP2_SUNXI
  184. #define SUNXI_DISP2_FB_DISABLE_ROTATE
  185. /* LCD panels select */
  186. #define LCD_SUPPORT_HE0801A068
  187. #define LCD_SUPPORT_WILLIAMLCD
  188. #define LCD_SUPPORT_LQ101R1SX03
  189. #define LCD_SUPPORT_INET_DSI_PANEL
  190. /* Display engine feature select */
  191. #define DISP2_SUNXI_SUPPORT_ENAHNCE
  192. /* Soc and board select */
  193. /* Board Select */
  194. /* Soc Select */
  195. /* SDMMC Devices */
  196. #define DRIVERS_SDMMC
  197. #define USE_SD
  198. #define USE_SDIO
  199. #define DETECT_CARD
  200. #define SDC_DMA_USED
  201. #define SDIO_IRQ_SUPPORT
  202. #define SDC_DMA_BUF_SIZE 64
  203. #define DRIVERS_SDC_CDPIN_PRESENT_VAL 0
  204. /* SPI Devices */
  205. #define DRIVERS_SPI
  206. /* TWI Devices */
  207. #define DRIVERS_TWI
  208. /* G2D Devices */
  209. #define DRIVERS_G2D
  210. /* CE Devices */
  211. #define DRIVERS_CE
  212. /* EFUSE Devices */
  213. #define DRIVERS_EFUSE
  214. #endif