rtconfig.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. #define RT_KLIBC_USING_VSNPRINTF_LONGLONG
  7. /* end of rt_vsnprintf options */
  8. /* rt_vsscanf options */
  9. /* end of rt_vsscanf options */
  10. /* rt_memset options */
  11. /* end of rt_memset options */
  12. /* rt_memcpy options */
  13. /* end of rt_memcpy options */
  14. /* rt_memmove options */
  15. /* end of rt_memmove options */
  16. /* rt_memcmp options */
  17. /* end of rt_memcmp options */
  18. /* rt_strstr options */
  19. /* end of rt_strstr options */
  20. /* rt_strcasecmp options */
  21. /* end of rt_strcasecmp options */
  22. /* rt_strncpy options */
  23. /* end of rt_strncpy options */
  24. /* rt_strcpy options */
  25. /* end of rt_strcpy options */
  26. /* rt_strncmp options */
  27. /* end of rt_strncmp options */
  28. /* rt_strcmp options */
  29. /* end of rt_strcmp options */
  30. /* rt_strlen options */
  31. /* end of rt_strlen options */
  32. /* rt_strnlen options */
  33. /* end of rt_strnlen options */
  34. /* end of klibc options */
  35. #define RT_NAME_MAX 24
  36. #define RT_USING_SMART
  37. #define RT_USING_SMP
  38. #define RT_CPUS_NR 4
  39. #define RT_ALIGN_SIZE 8
  40. #define RT_THREAD_PRIORITY_32
  41. #define RT_THREAD_PRIORITY_MAX 32
  42. #define RT_TICK_PER_SECOND 100
  43. #define RT_USING_OVERFLOW_CHECK
  44. #define RT_USING_HOOK
  45. #define RT_HOOK_USING_FUNC_PTR
  46. #define RT_USING_IDLE_HOOK
  47. #define RT_IDLE_HOOK_LIST_SIZE 4
  48. #define IDLE_THREAD_STACK_SIZE 4096
  49. #define SYSTEM_THREAD_STACK_SIZE 4096
  50. #define RT_USING_TIMER_SOFT
  51. #define RT_TIMER_THREAD_PRIO 4
  52. #define RT_TIMER_THREAD_STACK_SIZE 4096
  53. #define RT_USING_CPU_USAGE_TRACER
  54. /* kservice options */
  55. /* end of kservice options */
  56. #define RT_USING_DEBUG
  57. #define RT_DEBUGING_ASSERT
  58. #define RT_DEBUGING_COLOR
  59. #define RT_DEBUGING_CONTEXT
  60. #define RT_DEBUGING_CRITICAL
  61. /* Inter-Thread communication */
  62. #define RT_USING_SEMAPHORE
  63. #define RT_USING_MUTEX
  64. #define RT_USING_EVENT
  65. #define RT_USING_MAILBOX
  66. #define RT_USING_MESSAGEQUEUE
  67. /* end of Inter-Thread communication */
  68. /* Memory Management */
  69. #define RT_USING_MEMPOOL
  70. #define RT_USING_SMALL_MEM
  71. #define RT_USING_MEMHEAP
  72. #define RT_MEMHEAP_FAST_MODE
  73. #define RT_USING_SMALL_MEM_AS_HEAP
  74. #define RT_USING_MEMTRACE
  75. #define RT_USING_HEAP
  76. /* end of Memory Management */
  77. #define RT_USING_DEVICE
  78. #define RT_USING_DEVICE_OPS
  79. #define RT_USING_INTERRUPT_INFO
  80. #define RT_USING_THREADSAFE_PRINTF
  81. #define RT_USING_CONSOLE
  82. #define RT_CONSOLEBUF_SIZE 256
  83. #define RT_CONSOLE_DEVICE_NAME "uart2"
  84. #define RT_VER_NUM 0x50300
  85. #define RT_USING_STDC_ATOMIC
  86. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  87. /* end of RT-Thread Kernel */
  88. /* AArch64 Architecture Configuration */
  89. #define ARCH_TEXT_OFFSET 0x200000
  90. #define ARCH_RAM_OFFSET 0x0
  91. #define ARCH_SECONDARY_CPU_STACK_SIZE 4096
  92. #define ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
  93. #define ARCH_USING_GENERIC_CPUID
  94. #define ARCH_HEAP_SIZE 0x4000000
  95. #define ARCH_INIT_PAGE_SIZE 0x200000
  96. /* end of AArch64 Architecture Configuration */
  97. #define ARCH_CPU_64BIT
  98. #define RT_USING_CACHE
  99. #define RT_USING_CPU_FFS
  100. #define ARCH_MM_MMU
  101. #define ARCH_ARM
  102. #define ARCH_ARM_MMU
  103. #define KERNEL_VADDR_START 0xffff000000000000
  104. #define ARCH_ARMV8
  105. #define ARCH_USING_ASID
  106. #define ARCH_USING_HW_THREAD_SELF
  107. #define ARCH_USING_IRQ_CTX_LIST
  108. /* RT-Thread Components */
  109. #define RT_USING_COMPONENTS_INIT
  110. #define RT_USING_USER_MAIN
  111. #define RT_MAIN_THREAD_STACK_SIZE 8192
  112. #define RT_MAIN_THREAD_PRIORITY 10
  113. #define RT_USING_MSH
  114. #define RT_USING_FINSH
  115. #define FINSH_USING_MSH
  116. #define FINSH_THREAD_NAME "tshell"
  117. #define FINSH_THREAD_PRIORITY 20
  118. #define FINSH_THREAD_STACK_SIZE 8192
  119. #define FINSH_USING_HISTORY
  120. #define FINSH_HISTORY_LINES 5
  121. #define FINSH_USING_SYMTAB
  122. #define FINSH_CMD_SIZE 80
  123. #define MSH_USING_BUILT_IN_COMMANDS
  124. #define FINSH_USING_DESCRIPTION
  125. #define FINSH_ARG_MAX 10
  126. #define FINSH_USING_OPTION_COMPLETION
  127. /* DFS: device virtual file system */
  128. #define RT_USING_DFS
  129. #define DFS_USING_POSIX
  130. #define DFS_USING_WORKDIR
  131. #define DFS_FD_MAX 16
  132. #define RT_USING_DFS_V2
  133. #define RT_USING_DFS_ELMFAT
  134. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  135. #define RT_DFS_ELM_CODE_PAGE 437
  136. #define RT_DFS_ELM_WORD_ACCESS
  137. #define RT_DFS_ELM_USE_LFN_3
  138. #define RT_DFS_ELM_USE_LFN 3
  139. #define RT_DFS_ELM_LFN_UNICODE_0
  140. #define RT_DFS_ELM_LFN_UNICODE 0
  141. #define RT_DFS_ELM_MAX_LFN 255
  142. #define RT_DFS_ELM_DRIVES 2
  143. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  144. #define RT_DFS_ELM_REENTRANT
  145. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  146. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  147. #define RT_USING_DFS_DEVFS
  148. #define RT_USING_DFS_PTYFS
  149. #define RT_USING_DFS_PROCFS
  150. #define RT_USING_DFS_MQUEUE
  151. #define RT_USING_PAGECACHE
  152. /* page cache config */
  153. #define RT_PAGECACHE_COUNT 4096
  154. #define RT_PAGECACHE_ASPACE_COUNT 1024
  155. #define RT_PAGECACHE_PRELOAD 4
  156. #define RT_PAGECACHE_HASH_NR 1024
  157. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  158. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  159. /* end of page cache config */
  160. /* end of DFS: device virtual file system */
  161. /* Device Drivers */
  162. #define RT_USING_DM
  163. #define RT_USING_DEV_BUS
  164. #define RT_USING_DEVICE_IPC
  165. #define RT_UNAMED_PIPE_NUMBER 64
  166. #define RT_USING_SYSTEM_WORKQUEUE
  167. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 8192
  168. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  169. #define RT_USING_SERIAL
  170. #define RT_USING_SERIAL_V1
  171. #define RT_SERIAL_RB_BUFSZ 64
  172. #define RT_USING_SERIAL_BYPASS
  173. #define RT_SERIAL_8250
  174. #define RT_SERIAL_8250_DW
  175. #define RT_USING_I2C
  176. #define RT_USING_I2C_BITOPS
  177. #define RT_I2C_RK3X
  178. #define RT_USING_ADC
  179. #define RT_ADC_ROCKCHIP_SARADC
  180. #define RT_USING_NULL
  181. #define RT_USING_ZERO
  182. #define RT_USING_RANDOM
  183. #define RT_USING_PWM
  184. #define RT_PWM_ROCKCHIP
  185. #define RT_USING_RTC
  186. #define RT_USING_ALARM
  187. #define RT_ALARM_STACK_SIZE 4096
  188. #define RT_ALARM_TIMESLICE 5
  189. #define RT_ALARM_PRIORITY 10
  190. #define RT_RTC_RK_TIMER
  191. #define RT_USING_SDIO
  192. #define RT_SDIO_STACK_SIZE 8192
  193. #define RT_SDIO_THREAD_PRIORITY 15
  194. #define RT_MMCSD_STACK_SIZE 8192
  195. #define RT_MMCSD_THREAD_PRIORITY 22
  196. #define RT_MMCSD_MAX_PARTITION 16
  197. #define RT_SDIO_DW_MMC
  198. #define RT_SDIO_DW_MMC_ROCKCHIP
  199. #define RT_USING_SPI
  200. #define RT_USING_SPI_ISR
  201. #define RT_USING_QSPI
  202. #define RT_SPI_ROCKCHIP_SFC
  203. #define RT_SPI_ROCKCHIP
  204. #define RT_USING_WDT
  205. #define RT_WDT_DW
  206. #define RT_USING_HWCRYPTO
  207. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  208. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  209. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  210. #define RT_HWCRYPTO_USING_RNG
  211. #define RT_HWCRYPTO_RNG_ROCKCHIP
  212. #define RT_USING_LED
  213. #define RT_LED_GPIO
  214. #define RT_USING_BLK
  215. /* Partition Types */
  216. #define RT_BLK_PARTITION_DFS
  217. #define RT_BLK_PARTITION_EFI
  218. /* end of Partition Types */
  219. #define RT_USING_FIRMWARE
  220. #define RT_USING_REGULATOR
  221. #define RT_REGULATOR_FIXED
  222. #define RT_REGULATOR_GPIO
  223. #define RT_USING_RESET
  224. /* Power Management (PM) Domains device drivers */
  225. /* end of Power Management (PM) Domains device drivers */
  226. #define RT_USING_POWER_RESET
  227. #define RT_USING_THERMAL
  228. /* Thermal Sensors Drivers */
  229. #define RT_THERMAL_ROCKCHIP_TSADC
  230. /* Thermal Cool Drivers */
  231. #define RT_THERMAL_COOL_PWM_FAN
  232. #define RT_USING_DMA
  233. #define RT_DMA_PL330
  234. #define RT_USING_MFD
  235. #define RT_MFD_SYSCON
  236. #define RT_USING_OFW
  237. #define RT_FDT_EARLYCON_MSG_SIZE 128
  238. #define RT_USING_OFW_BUS_RANGES_NUMBER 8
  239. #define RT_USING_PIC
  240. #define MAX_HANDLERS 512
  241. #define RT_PIC_ARM_GIC
  242. #define RT_PIC_ARM_GIC_MAX_NR 1
  243. #define RT_USING_PIN
  244. #define RT_PIN_ROCKCHIP
  245. #define RT_USING_PINCTRL
  246. #define RT_PINCTRL_ROCKCHIP
  247. #define RT_USING_KTIME
  248. #define RT_USING_CLK
  249. #define RT_CLK_ROCKCHIP
  250. #define RT_CLK_ROCKCHIP_RK3308
  251. #define RT_USING_HWTIMER
  252. #define RT_HWTIMER_ARM_ARCH
  253. #define RT_HWTIMER_ROCKCHIP
  254. /* end of Device Drivers */
  255. /* C/C++ and POSIX layer */
  256. /* ISO-ANSI C layer */
  257. /* Timezone and Daylight Saving Time */
  258. #define RT_LIBC_USING_LIGHT_TZ_DST
  259. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  260. #define RT_LIBC_TZ_DEFAULT_MIN 0
  261. #define RT_LIBC_TZ_DEFAULT_SEC 0
  262. /* end of Timezone and Daylight Saving Time */
  263. /* end of ISO-ANSI C layer */
  264. /* POSIX (Portable Operating System Interface) layer */
  265. #define RT_USING_POSIX_FS
  266. #define RT_USING_POSIX_DEVIO
  267. #define RT_USING_POSIX_STDIO
  268. #define RT_USING_POSIX_POLL
  269. #define RT_USING_POSIX_EVENTFD
  270. #define RT_USING_POSIX_EPOLL
  271. #define RT_USING_POSIX_SIGNALFD
  272. #define RT_SIGNALFD_MAX_NUM 10
  273. #define RT_USING_POSIX_TIMERFD
  274. #define RT_USING_POSIX_TERMIOS
  275. #define RT_USING_POSIX_DELAY
  276. #define RT_USING_POSIX_CLOCK
  277. #define RT_USING_POSIX_TIMER
  278. /* Interprocess Communication (IPC) */
  279. /* Socket is in the 'Network' category */
  280. /* end of Interprocess Communication (IPC) */
  281. /* end of POSIX (Portable Operating System Interface) layer */
  282. /* end of C/C++ and POSIX layer */
  283. /* Network */
  284. /* end of Network */
  285. /* Memory protection */
  286. /* end of Memory protection */
  287. /* Utilities */
  288. #define RT_USING_RESOURCE_ID
  289. #define RT_USING_ADT
  290. #define RT_USING_ADT_AVL
  291. #define RT_USING_ADT_BITMAP
  292. #define RT_USING_ADT_HASHMAP
  293. #define RT_USING_ADT_REF
  294. /* end of Utilities */
  295. /* Memory management */
  296. #define RT_PAGE_AFFINITY_BLOCK_SIZE 0x1000
  297. #define RT_PAGE_MAX_ORDER 11
  298. #define RT_USING_MEMBLOCK
  299. #define RT_INIT_MEMORY_REGIONS 128
  300. /* Debugging */
  301. /* end of Debugging */
  302. /* end of Memory management */
  303. #define RT_USING_LWP
  304. #define LWP_USING_RUNTIME
  305. #define RT_LWP_MAX_NR 30
  306. #define LWP_TASK_STACK_SIZE 16384
  307. #define RT_CH_MSG_MAX_NR 1024
  308. #define LWP_TID_MAX_NR 64
  309. #define RT_LWP_SHM_MAX_NR 64
  310. #define RT_USING_LDSO
  311. #define LWP_USING_TERMINAL
  312. #define LWP_PTY_MAX_PARIS_LIMIT 32
  313. #define RT_USING_VDSO
  314. /* Using USB legacy version */
  315. /* end of Using USB legacy version */
  316. /* end of RT-Thread Components */
  317. /* RT-Thread Utestcases */
  318. /* end of RT-Thread Utestcases */
  319. /* RT-Thread online packages */
  320. /* IoT - internet of things */
  321. /* Wi-Fi */
  322. /* Marvell WiFi */
  323. /* end of Marvell WiFi */
  324. /* Wiced WiFi */
  325. /* end of Wiced WiFi */
  326. /* CYW43012 WiFi */
  327. /* end of CYW43012 WiFi */
  328. /* BL808 WiFi */
  329. /* end of BL808 WiFi */
  330. /* CYW43439 WiFi */
  331. /* end of CYW43439 WiFi */
  332. /* end of Wi-Fi */
  333. /* IoT Cloud */
  334. /* end of IoT Cloud */
  335. /* end of IoT - internet of things */
  336. /* security packages */
  337. /* end of security packages */
  338. /* language packages */
  339. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  340. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  341. /* XML: Extensible Markup Language */
  342. /* end of XML: Extensible Markup Language */
  343. /* end of language packages */
  344. /* multimedia packages */
  345. /* LVGL: powerful and easy-to-use embedded GUI library */
  346. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  347. /* u8g2: a monochrome graphic library */
  348. /* end of u8g2: a monochrome graphic library */
  349. /* end of multimedia packages */
  350. /* tools packages */
  351. /* end of tools packages */
  352. /* system packages */
  353. /* enhanced kernel services */
  354. /* end of enhanced kernel services */
  355. /* acceleration: Assembly language or algorithmic acceleration packages */
  356. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  357. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  358. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  359. /* Micrium: Micrium software products porting for RT-Thread */
  360. /* end of Micrium: Micrium software products porting for RT-Thread */
  361. /* end of system packages */
  362. /* peripheral libraries and drivers */
  363. /* HAL & SDK Drivers */
  364. /* STM32 HAL & SDK Drivers */
  365. /* end of STM32 HAL & SDK Drivers */
  366. /* Infineon HAL Packages */
  367. /* end of Infineon HAL Packages */
  368. /* Kendryte SDK */
  369. /* end of Kendryte SDK */
  370. /* WCH HAL & SDK Drivers */
  371. /* end of WCH HAL & SDK Drivers */
  372. /* AT32 HAL & SDK Drivers */
  373. /* end of AT32 HAL & SDK Drivers */
  374. /* HC32 DDL Drivers */
  375. /* end of HC32 DDL Drivers */
  376. /* NXP HAL & SDK Drivers */
  377. /* end of NXP HAL & SDK Drivers */
  378. /* NUVOTON Drivers */
  379. /* end of NUVOTON Drivers */
  380. /* GD32 Drivers */
  381. /* end of GD32 Drivers */
  382. /* end of HAL & SDK Drivers */
  383. /* sensors drivers */
  384. /* end of sensors drivers */
  385. /* touch drivers */
  386. /* end of touch drivers */
  387. /* end of peripheral libraries and drivers */
  388. /* AI packages */
  389. /* end of AI packages */
  390. /* Signal Processing and Control Algorithm Packages */
  391. /* end of Signal Processing and Control Algorithm Packages */
  392. /* miscellaneous packages */
  393. /* project laboratory */
  394. /* end of project laboratory */
  395. /* samples: kernel and components samples */
  396. /* end of samples: kernel and components samples */
  397. /* entertainment: terminal games and other interesting software packages */
  398. /* end of entertainment: terminal games and other interesting software packages */
  399. /* end of miscellaneous packages */
  400. /* Arduino libraries */
  401. /* Projects and Demos */
  402. /* end of Projects and Demos */
  403. /* Sensors */
  404. /* end of Sensors */
  405. /* Display */
  406. /* end of Display */
  407. /* Timing */
  408. /* end of Timing */
  409. /* Data Processing */
  410. /* end of Data Processing */
  411. /* Data Storage */
  412. /* Communication */
  413. /* end of Communication */
  414. /* Device Control */
  415. /* end of Device Control */
  416. /* Other */
  417. /* end of Other */
  418. /* Signal IO */
  419. /* end of Signal IO */
  420. /* Uncategorized */
  421. /* end of Arduino libraries */
  422. /* end of RT-Thread online packages */
  423. #define SOC_RK3300
  424. #define RT_USING_AMBA_BUS
  425. #endif