rtconfig.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. #define RT_NAME_MAX 16
  5. #define RT_CPUS_NR 1
  6. #define RT_ALIGN_SIZE 8
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 1000
  10. #define RT_USING_HOOK
  11. #define RT_HOOK_USING_FUNC_PTR
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 2048
  15. /* kservice optimization */
  16. /* end of kservice optimization */
  17. /* klibc optimization */
  18. /* end of klibc optimization */
  19. #define RT_USING_DEBUG
  20. #define RT_DEBUGING_ASSERT
  21. #define RT_DEBUGING_COLOR
  22. #define RT_DEBUGING_CONTEXT
  23. #define RT_USING_OVERFLOW_CHECK
  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. /* end of Inter-Thread communication */
  32. /* Memory Management */
  33. #define RT_PAGE_MAX_ORDER 11
  34. #define RT_USING_MEMPOOL
  35. #define RT_USING_SMALL_MEM
  36. #define RT_USING_MEMHEAP
  37. #define RT_MEMHEAP_FAST_MODE
  38. #define RT_USING_SMALL_MEM_AS_HEAP
  39. #define RT_USING_MEMTRACE
  40. #define RT_USING_HEAP
  41. /* end of Memory Management */
  42. #define RT_USING_DEVICE
  43. #define RT_USING_CONSOLE
  44. #define RT_CONSOLEBUF_SIZE 256
  45. #define RT_CONSOLE_DEVICE_NAME "uart0"
  46. #define RT_VER_NUM 0x50200
  47. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  48. /* end of RT-Thread Kernel */
  49. #define RT_USING_CACHE
  50. #define ARCH_MM_MMU
  51. #define ARCH_ARM
  52. #define ARCH_ARM_MMU
  53. #define ARCH_ARM_ARM9
  54. /* RT-Thread Components */
  55. #define RT_USING_COMPONENTS_INIT
  56. #define RT_USING_USER_MAIN
  57. #define RT_MAIN_THREAD_STACK_SIZE 2048
  58. #define RT_MAIN_THREAD_PRIORITY 20
  59. #define RT_USING_MSH
  60. #define RT_USING_FINSH
  61. #define FINSH_USING_MSH
  62. #define FINSH_THREAD_NAME "tshell"
  63. #define FINSH_THREAD_PRIORITY 20
  64. #define FINSH_THREAD_STACK_SIZE 4096
  65. #define FINSH_USING_HISTORY
  66. #define FINSH_HISTORY_LINES 5
  67. #define FINSH_USING_SYMTAB
  68. #define FINSH_CMD_SIZE 80
  69. #define MSH_USING_BUILT_IN_COMMANDS
  70. #define FINSH_USING_DESCRIPTION
  71. #define FINSH_ARG_MAX 10
  72. #define FINSH_USING_OPTION_COMPLETION
  73. /* DFS: device virtual file system */
  74. #define RT_USING_DFS
  75. #define DFS_USING_POSIX
  76. #define DFS_USING_WORKDIR
  77. #define RT_USING_DFS_MNTTABLE
  78. #define DFS_FD_MAX 64
  79. #define RT_USING_DFS_V1
  80. #define DFS_FILESYSTEMS_MAX 16
  81. #define DFS_FILESYSTEM_TYPES_MAX 16
  82. #define RT_USING_DFS_ELMFAT
  83. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  84. #define RT_DFS_ELM_CODE_PAGE 437
  85. #define RT_DFS_ELM_WORD_ACCESS
  86. #define RT_DFS_ELM_USE_LFN_3
  87. #define RT_DFS_ELM_USE_LFN 3
  88. #define RT_DFS_ELM_LFN_UNICODE_0
  89. #define RT_DFS_ELM_LFN_UNICODE 0
  90. #define RT_DFS_ELM_MAX_LFN 255
  91. #define RT_DFS_ELM_DRIVES 8
  92. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  93. #define RT_DFS_ELM_REENTRANT
  94. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  95. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  96. #define RT_USING_DFS_DEVFS
  97. /* end of DFS: device virtual file system */
  98. /* Device Drivers */
  99. #define RT_USING_DEVICE_IPC
  100. #define RT_UNAMED_PIPE_NUMBER 64
  101. #define RT_USING_SYSTEM_WORKQUEUE
  102. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  103. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  104. #define RT_USING_SERIAL
  105. #define RT_USING_SERIAL_V1
  106. #define RT_SERIAL_USING_DMA
  107. #define RT_SERIAL_RB_BUFSZ 2048
  108. #define RT_USING_CAN
  109. #define RT_CAN_USING_HDR
  110. #define RT_USING_CPUTIME
  111. #define CPUTIME_TIMER_FREQ 0
  112. #define RT_USING_I2C
  113. #define RT_USING_I2C_BITOPS
  114. #define RT_USING_ADC
  115. #define RT_USING_PWM
  116. #define RT_USING_MTD_NAND
  117. #define RT_MTD_NAND_DEBUG
  118. #define RT_USING_RTC
  119. #define RT_USING_ALARM
  120. #define RT_USING_SPI
  121. #define RT_USING_QSPI
  122. #define RT_USING_WDT
  123. #define RT_USING_AUDIO
  124. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  125. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  126. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  127. #define RT_USING_HWCRYPTO
  128. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  129. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  130. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  131. #define RT_HWCRYPTO_USING_AES
  132. #define RT_HWCRYPTO_USING_AES_ECB
  133. #define RT_HWCRYPTO_USING_AES_CBC
  134. #define RT_HWCRYPTO_USING_AES_CFB
  135. #define RT_HWCRYPTO_USING_AES_CTR
  136. #define RT_HWCRYPTO_USING_AES_OFB
  137. #define RT_HWCRYPTO_USING_SHA1
  138. #define RT_HWCRYPTO_USING_SHA2
  139. #define RT_HWCRYPTO_USING_SHA2_224
  140. #define RT_HWCRYPTO_USING_SHA2_256
  141. #define RT_HWCRYPTO_USING_SHA2_384
  142. #define RT_HWCRYPTO_USING_SHA2_512
  143. #define RT_HWCRYPTO_USING_RNG
  144. #define RT_USING_PIN
  145. #define RT_USING_HWTIMER
  146. /* end of Device Drivers */
  147. /* C/C++ and POSIX layer */
  148. /* ISO-ANSI C layer */
  149. /* Timezone and Daylight Saving Time */
  150. #define RT_LIBC_USING_LIGHT_TZ_DST
  151. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  152. #define RT_LIBC_TZ_DEFAULT_MIN 0
  153. #define RT_LIBC_TZ_DEFAULT_SEC 0
  154. /* end of Timezone and Daylight Saving Time */
  155. /* end of ISO-ANSI C layer */
  156. /* POSIX (Portable Operating System Interface) layer */
  157. #define RT_USING_POSIX_FS
  158. #define RT_USING_POSIX_POLL
  159. #define RT_USING_POSIX_SELECT
  160. #define RT_USING_POSIX_SOCKET
  161. /* Interprocess Communication (IPC) */
  162. /* Socket is in the 'Network' category */
  163. /* end of Interprocess Communication (IPC) */
  164. /* end of POSIX (Portable Operating System Interface) layer */
  165. /* end of C/C++ and POSIX layer */
  166. /* Network */
  167. #define RT_USING_SAL
  168. /* Docking with protocol stacks */
  169. #define SAL_USING_LWIP
  170. /* end of Docking with protocol stacks */
  171. #define SAL_USING_POSIX
  172. #define RT_USING_NETDEV
  173. #define NETDEV_USING_IFCONFIG
  174. #define NETDEV_USING_PING
  175. #define NETDEV_USING_NETSTAT
  176. #define NETDEV_USING_AUTO_DEFAULT
  177. #define NETDEV_IPV4 1
  178. #define NETDEV_IPV6 0
  179. #define RT_USING_LWIP
  180. #define RT_USING_LWIP212
  181. #define RT_USING_LWIP_VER_NUM 0x20102
  182. #define RT_LWIP_MEM_ALIGNMENT 4
  183. #define RT_LWIP_IGMP
  184. #define RT_LWIP_ICMP
  185. #define RT_LWIP_DNS
  186. #define RT_LWIP_DHCP
  187. #define IP_SOF_BROADCAST 1
  188. #define IP_SOF_BROADCAST_RECV 1
  189. /* Static IPv4 Address */
  190. #define RT_LWIP_IPADDR "192.168.31.55"
  191. #define RT_LWIP_GWADDR "192.168.31.1"
  192. #define RT_LWIP_MSKADDR "255.255.255.0"
  193. /* end of Static IPv4 Address */
  194. #define RT_LWIP_UDP
  195. #define RT_LWIP_TCP
  196. #define RT_LWIP_RAW
  197. #define RT_MEMP_NUM_NETCONN 16
  198. #define RT_LWIP_PBUF_NUM 256
  199. #define RT_LWIP_RAW_PCB_NUM 16
  200. #define RT_LWIP_UDP_PCB_NUM 16
  201. #define RT_LWIP_TCP_PCB_NUM 16
  202. #define RT_LWIP_TCP_SEG_NUM 64
  203. #define RT_LWIP_TCP_SND_BUF 16384
  204. #define RT_LWIP_TCP_WND 65535
  205. #define RT_LWIP_TCPTHREAD_PRIORITY 21
  206. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 256
  207. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  208. #define LWIP_NO_TX_THREAD
  209. #define RT_LWIP_ETHTHREAD_PRIORITY 22
  210. #define RT_LWIP_ETHTHREAD_STACKSIZE 4096
  211. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 256
  212. #define RT_LWIP_REASSEMBLY_FRAG
  213. #define LWIP_NETIF_STATUS_CALLBACK 1
  214. #define LWIP_NETIF_LINK_CALLBACK 1
  215. #define RT_LWIP_NETIF_NAMESIZE 6
  216. #define SO_REUSE 1
  217. #define LWIP_SO_RCVTIMEO 1
  218. #define LWIP_SO_SNDTIMEO 1
  219. #define LWIP_SO_RCVBUF 1
  220. #define LWIP_SO_LINGER 1
  221. #define RT_LWIP_NETIF_LOOPBACK
  222. #define LWIP_NETIF_LOOPBACK 1
  223. #define RT_LWIP_STATS
  224. #define RT_LWIP_USING_PING
  225. /* end of Network */
  226. /* Memory protection */
  227. /* end of Memory protection */
  228. /* Utilities */
  229. #define RT_USING_UTEST
  230. #define UTEST_THR_STACK_SIZE 4096
  231. #define UTEST_THR_PRIORITY 20
  232. #define RT_USING_ADT
  233. #define RT_USING_ADT_AVL
  234. #define RT_USING_ADT_BITMAP
  235. #define RT_USING_ADT_HASHMAP
  236. #define RT_USING_ADT_REF
  237. /* end of Utilities */
  238. /* Using USB legacy version */
  239. #define RT_USING_USB
  240. #define RT_USING_USB_HOST
  241. #define RT_USBH_MSTORAGE
  242. #define UDISK_MOUNTPOINT "/mnt/udisk"
  243. #define RT_USING_USB_DEVICE
  244. #define RT_USBD_THREAD_STACK_SZ 4096
  245. #define USB_VENDOR_ID 0x0FFE
  246. #define USB_PRODUCT_ID 0x0001
  247. #define RT_USB_DEVICE_COMPOSITE
  248. #define RT_USB_DEVICE_CDC
  249. #define RT_USB_DEVICE_NONE
  250. #define RT_USB_DEVICE_MSTORAGE
  251. #define RT_VCOM_TASK_STK_SIZE 2048
  252. #define RT_CDC_RX_BUFSIZE 128
  253. #define RT_VCOM_SERNO "32021919830108"
  254. #define RT_VCOM_SER_LEN 14
  255. #define RT_VCOM_TX_TIMEOUT 1000
  256. #define RT_USB_MSTORAGE_DISK_NAME "ramdisk1"
  257. /* end of Using USB legacy version */
  258. /* end of RT-Thread Components */
  259. /* RT-Thread Utestcases */
  260. /* end of RT-Thread Utestcases */
  261. /* RT-Thread online packages */
  262. /* IoT - internet of things */
  263. /* Wi-Fi */
  264. /* Marvell WiFi */
  265. /* end of Marvell WiFi */
  266. /* Wiced WiFi */
  267. /* end of Wiced WiFi */
  268. /* CYW43012 WiFi */
  269. /* end of CYW43012 WiFi */
  270. /* BL808 WiFi */
  271. /* end of BL808 WiFi */
  272. /* CYW43439 WiFi */
  273. /* end of CYW43439 WiFi */
  274. /* end of Wi-Fi */
  275. /* IoT Cloud */
  276. /* end of IoT Cloud */
  277. /* end of IoT - internet of things */
  278. /* security packages */
  279. /* end of security packages */
  280. /* language packages */
  281. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  282. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  283. /* XML: Extensible Markup Language */
  284. /* end of XML: Extensible Markup Language */
  285. /* end of language packages */
  286. /* multimedia packages */
  287. /* LVGL: powerful and easy-to-use embedded GUI library */
  288. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  289. /* u8g2: a monochrome graphic library */
  290. /* end of u8g2: a monochrome graphic library */
  291. /* end of multimedia packages */
  292. /* tools packages */
  293. /* end of tools packages */
  294. /* system packages */
  295. /* enhanced kernel services */
  296. /* end of enhanced kernel services */
  297. /* acceleration: Assembly language or algorithmic acceleration packages */
  298. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  299. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  300. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  301. /* Micrium: Micrium software products porting for RT-Thread */
  302. /* end of Micrium: Micrium software products porting for RT-Thread */
  303. /* end of system packages */
  304. /* peripheral libraries and drivers */
  305. /* HAL & SDK Drivers */
  306. /* STM32 HAL & SDK Drivers */
  307. /* end of STM32 HAL & SDK Drivers */
  308. /* Infineon HAL Packages */
  309. /* end of Infineon HAL Packages */
  310. /* Kendryte SDK */
  311. /* end of Kendryte SDK */
  312. /* end of HAL & SDK Drivers */
  313. /* sensors drivers */
  314. /* end of sensors drivers */
  315. /* touch drivers */
  316. /* end of touch drivers */
  317. /* end of peripheral libraries and drivers */
  318. /* AI packages */
  319. /* end of AI packages */
  320. /* Signal Processing and Control Algorithm Packages */
  321. /* end of Signal Processing and Control Algorithm Packages */
  322. /* miscellaneous packages */
  323. /* project laboratory */
  324. /* end of project laboratory */
  325. /* samples: kernel and components samples */
  326. /* end of samples: kernel and components samples */
  327. /* entertainment: terminal games and other interesting software packages */
  328. /* end of entertainment: terminal games and other interesting software packages */
  329. /* end of miscellaneous packages */
  330. /* Arduino libraries */
  331. /* Projects and Demos */
  332. /* end of Projects and Demos */
  333. /* Sensors */
  334. /* end of Sensors */
  335. /* Display */
  336. /* end of Display */
  337. /* Timing */
  338. /* end of Timing */
  339. /* Data Processing */
  340. /* end of Data Processing */
  341. /* Data Storage */
  342. /* Communication */
  343. /* end of Communication */
  344. /* Device Control */
  345. /* end of Device Control */
  346. /* Other */
  347. /* end of Other */
  348. /* Signal IO */
  349. /* end of Signal IO */
  350. /* Uncategorized */
  351. /* end of Arduino libraries */
  352. /* end of RT-Thread online packages */
  353. /* Hardware Drivers Config */
  354. /* On-chip Peripheral Drivers */
  355. #define SOC_SERIES_NUC980
  356. #define BSP_USE_STDDRIVER_SOURCE
  357. #define BSP_USING_MMU
  358. #define BSP_USING_PDMA
  359. #define NU_PDMA_MEMFUN_ACTOR_MAX 2
  360. #define BSP_USING_GPIO
  361. #define BSP_USING_EMAC
  362. #define BSP_USING_EMAC0
  363. #define BSP_USING_RTC
  364. #define NU_RTC_SUPPORT_IO_RW
  365. #define NU_RTC_SUPPORT_MSH_CMD
  366. #define BSP_USING_ADC
  367. #define BSP_USING_TMR
  368. #define BSP_USING_TIMER
  369. #define BSP_USING_TMR0
  370. #define BSP_USING_TIMER0
  371. #define BSP_USING_TMR1
  372. #define BSP_USING_TIMER1
  373. #define BSP_USING_TMR2
  374. #define BSP_USING_TIMER2
  375. #define BSP_USING_TMR3
  376. #define BSP_USING_TIMER3
  377. #define BSP_USING_TMR4
  378. #define BSP_USING_TIMER4
  379. #define BSP_USING_UART
  380. #define BSP_USING_UART0
  381. #define BSP_USING_UART1
  382. #define BSP_USING_UART1_TX_DMA
  383. #define BSP_USING_UART1_RX_DMA
  384. #define BSP_USING_I2C
  385. #define BSP_USING_I2C0
  386. #define BSP_USING_I2C2
  387. #define BSP_USING_SDH
  388. #define BSP_USING_SDH1
  389. #define NU_SDH_USING_PDMA
  390. #define NU_SDH_HOTPLUG
  391. #define BSP_USING_PWM
  392. #define BSP_USING_PWM0
  393. #define BSP_USING_SPI
  394. #define BSP_USING_SPI_PDMA
  395. #define BSP_USING_SPI0
  396. #define BSP_USING_SPI0_PDMA
  397. #define BSP_USING_SPI1_NONE
  398. #define BSP_USING_I2S
  399. #define NU_I2S_DMA_FIFO_SIZE 4096
  400. #define BSP_USING_QSPI
  401. #define BSP_USING_QSPI_PDMA
  402. #define BSP_USING_QSPI0
  403. #define BSP_USING_QSPI0_PDMA
  404. #define BSP_USING_CRYPTO
  405. #define BSP_USING_WDT
  406. #define BSP_USING_USBD
  407. #define BSP_USING_USBH
  408. /* end of On-chip Peripheral Drivers */
  409. /* On-board Peripheral Drivers */
  410. #define BSP_USING_CONSOLE
  411. #define BOARD_USING_IP101GR
  412. #define BOARD_USING_NAU8822
  413. #define BOARD_USING_STORAGE_SDCARD
  414. #define BOARD_USING_STORAGE_SPINAND
  415. #define BOARD_USING_USB0_DEVICE_HOST
  416. #define BOARD_USING_USB1_HOST
  417. /* end of On-board Peripheral Drivers */
  418. /* Board extended module drivers */
  419. /* end of Board extended module drivers */
  420. /* Nuvoton Packages Config */
  421. #define NU_PKG_USING_UTILS
  422. #define NU_PKG_USING_DEMO
  423. #define NU_PKG_USING_NAU8822
  424. #define NU_PKG_USING_SPINAND
  425. /* end of Nuvoton Packages Config */
  426. /* end of Hardware Drivers Config */
  427. #endif