rtconfig.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* RT-Thread Kernel */
  4. /* klibc options */
  5. /* rt_vsnprintf options */
  6. /* end of rt_vsnprintf options */
  7. /* rt_vsscanf options */
  8. /* end of rt_vsscanf options */
  9. /* rt_memset options */
  10. /* end of rt_memset options */
  11. /* rt_memcpy options */
  12. /* end of rt_memcpy options */
  13. /* rt_memmove options */
  14. /* end of rt_memmove options */
  15. /* rt_memcmp options */
  16. /* end of rt_memcmp options */
  17. /* rt_strstr options */
  18. /* end of rt_strstr options */
  19. /* rt_strcasecmp options */
  20. /* end of rt_strcasecmp options */
  21. /* rt_strncpy options */
  22. /* end of rt_strncpy options */
  23. /* rt_strcpy options */
  24. /* end of rt_strcpy options */
  25. /* rt_strncmp options */
  26. /* end of rt_strncmp options */
  27. /* rt_strcmp options */
  28. /* end of rt_strcmp options */
  29. /* rt_strlen options */
  30. /* end of rt_strlen options */
  31. /* rt_strnlen options */
  32. /* end of rt_strnlen options */
  33. /* end of klibc options */
  34. #define RT_NAME_MAX 16
  35. #define RT_CPUS_NR 1
  36. #define RT_ALIGN_SIZE 8
  37. #define RT_THREAD_PRIORITY_32
  38. #define RT_THREAD_PRIORITY_MAX 32
  39. #define RT_TICK_PER_SECOND 1000
  40. #define RT_USING_OVERFLOW_CHECK
  41. #define RT_USING_HOOK
  42. #define RT_HOOK_USING_FUNC_PTR
  43. #define RT_USING_IDLE_HOOK
  44. #define RT_IDLE_HOOK_LIST_SIZE 4
  45. #define IDLE_THREAD_STACK_SIZE 2048
  46. /* kservice options */
  47. /* end of kservice options */
  48. #define RT_USING_DEBUG
  49. #define RT_DEBUGING_ASSERT
  50. #define RT_DEBUGING_COLOR
  51. #define RT_DEBUGING_CONTEXT
  52. /* Inter-Thread communication */
  53. #define RT_USING_SEMAPHORE
  54. #define RT_USING_MUTEX
  55. #define RT_USING_EVENT
  56. #define RT_USING_MAILBOX
  57. #define RT_USING_MESSAGEQUEUE
  58. #define RT_USING_SIGNALS
  59. /* end of Inter-Thread communication */
  60. /* Memory Management */
  61. #define RT_USING_MEMPOOL
  62. #define RT_USING_SMALL_MEM
  63. #define RT_USING_MEMHEAP
  64. #define RT_MEMHEAP_FAST_MODE
  65. #define RT_USING_SMALL_MEM_AS_HEAP
  66. #define RT_USING_MEMTRACE
  67. #define RT_USING_HEAP
  68. /* end of Memory Management */
  69. #define RT_USING_DEVICE
  70. #define RT_USING_INTERRUPT_INFO
  71. #define RT_USING_CONSOLE
  72. #define RT_CONSOLEBUF_SIZE 256
  73. #define RT_CONSOLE_DEVICE_NAME "uart0"
  74. #define RT_VER_NUM 0x50201
  75. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  76. /* end of RT-Thread Kernel */
  77. #define RT_USING_CACHE
  78. #define ARCH_MM_MMU
  79. #define ARCH_ARM
  80. #define ARCH_ARM_MMU
  81. #define ARCH_ARM_ARM9
  82. /* RT-Thread Components */
  83. #define RT_USING_COMPONENTS_INIT
  84. #define RT_USING_USER_MAIN
  85. #define RT_MAIN_THREAD_STACK_SIZE 2048
  86. #define RT_MAIN_THREAD_PRIORITY 10
  87. #define RT_USING_MSH
  88. #define RT_USING_FINSH
  89. #define FINSH_USING_MSH
  90. #define FINSH_THREAD_NAME "tshell"
  91. #define FINSH_THREAD_PRIORITY 20
  92. #define FINSH_THREAD_STACK_SIZE 4096
  93. #define FINSH_USING_HISTORY
  94. #define FINSH_HISTORY_LINES 5
  95. #define FINSH_USING_SYMTAB
  96. #define FINSH_CMD_SIZE 80
  97. #define MSH_USING_BUILT_IN_COMMANDS
  98. #define FINSH_USING_DESCRIPTION
  99. #define FINSH_ARG_MAX 10
  100. #define FINSH_USING_OPTION_COMPLETION
  101. /* DFS: device virtual file system */
  102. #define RT_USING_DFS
  103. #define DFS_USING_POSIX
  104. #define DFS_USING_WORKDIR
  105. #define RT_USING_DFS_MNTTABLE
  106. #define DFS_FD_MAX 64
  107. #define RT_USING_DFS_V1
  108. #define DFS_FILESYSTEMS_MAX 16
  109. #define DFS_FILESYSTEM_TYPES_MAX 16
  110. #define RT_USING_DFS_ELMFAT
  111. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  112. #define RT_DFS_ELM_CODE_PAGE 437
  113. #define RT_DFS_ELM_WORD_ACCESS
  114. #define RT_DFS_ELM_USE_LFN_3
  115. #define RT_DFS_ELM_USE_LFN 3
  116. #define RT_DFS_ELM_LFN_UNICODE_0
  117. #define RT_DFS_ELM_LFN_UNICODE 0
  118. #define RT_DFS_ELM_MAX_LFN 255
  119. #define RT_DFS_ELM_DRIVES 8
  120. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  121. #define RT_DFS_ELM_REENTRANT
  122. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  123. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  124. #define RT_USING_DFS_DEVFS
  125. /* end of DFS: device virtual file system */
  126. #define RT_USING_FAL
  127. #define FAL_USING_DEBUG
  128. #define FAL_PART_HAS_TABLE_CFG
  129. #define FAL_USING_SFUD_PORT
  130. #define FAL_USING_NOR_FLASH_DEV_NAME "norflash0"
  131. /* Device Drivers */
  132. #define RT_USING_DEVICE_IPC
  133. #define RT_UNAMED_PIPE_NUMBER 64
  134. #define RT_USING_SYSTEM_WORKQUEUE
  135. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  136. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  137. #define RT_USING_SERIAL
  138. #define RT_USING_SERIAL_V1
  139. #define RT_SERIAL_RB_BUFSZ 2048
  140. #define RT_USING_CAN
  141. #define RT_CANMSG_BOX_SZ 16
  142. #define RT_CANSND_BOX_NUM 1
  143. #define RT_CANSND_MSG_TIMEOUT 100
  144. #define RT_CAN_NB_TX_FIFO_SIZE 256
  145. #define RT_USING_I2C
  146. #define RT_USING_I2C_BITOPS
  147. #define RT_USING_ADC
  148. #define RT_USING_PWM
  149. #define RT_USING_INPUT_CAPTURE
  150. #define RT_INPUT_CAPTURE_RB_SIZE 100
  151. #define RT_USING_MTD_NAND
  152. #define RT_USING_RTC
  153. #define RT_USING_ALARM
  154. #define RT_ALARM_STACK_SIZE 2048
  155. #define RT_ALARM_TIMESLICE 5
  156. #define RT_ALARM_PRIORITY 10
  157. #define RT_USING_SPI
  158. #define RT_USING_QSPI
  159. #define RT_USING_SFUD
  160. #define RT_SFUD_USING_SFDP
  161. #define RT_SFUD_USING_FLASH_INFO_TABLE
  162. #define RT_SFUD_USING_QSPI
  163. #define RT_SFUD_SPI_MAX_HZ 50000000
  164. #define RT_USING_WDT
  165. #define RT_USING_AUDIO
  166. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  167. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  168. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  169. #define RT_USING_TOUCH
  170. #define RT_USING_PIN
  171. #define RT_USING_HWTIMER
  172. /* end of Device Drivers */
  173. /* C/C++ and POSIX layer */
  174. /* ISO-ANSI C layer */
  175. /* Timezone and Daylight Saving Time */
  176. #define RT_LIBC_USING_LIGHT_TZ_DST
  177. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  178. #define RT_LIBC_TZ_DEFAULT_MIN 0
  179. #define RT_LIBC_TZ_DEFAULT_SEC 0
  180. /* end of Timezone and Daylight Saving Time */
  181. /* end of ISO-ANSI C layer */
  182. /* POSIX (Portable Operating System Interface) layer */
  183. #define RT_USING_POSIX_FS
  184. #define RT_USING_POSIX_DEVIO
  185. #define RT_USING_POSIX_POLL
  186. #define RT_USING_POSIX_SELECT
  187. /* Interprocess Communication (IPC) */
  188. /* Socket is in the 'Network' category */
  189. /* end of Interprocess Communication (IPC) */
  190. /* end of POSIX (Portable Operating System Interface) layer */
  191. /* end of C/C++ and POSIX layer */
  192. /* Network */
  193. #define RT_USING_SAL
  194. #define SAL_INTERNET_CHECK
  195. #define SOCKET_TABLE_STEP_LEN 4
  196. /* Docking with protocol stacks */
  197. #define SAL_USING_LWIP
  198. /* end of Docking with protocol stacks */
  199. #define SAL_USING_POSIX
  200. #define RT_USING_NETDEV
  201. #define NETDEV_USING_IFCONFIG
  202. #define NETDEV_USING_PING
  203. #define NETDEV_USING_NETSTAT
  204. #define NETDEV_USING_AUTO_DEFAULT
  205. #define NETDEV_IPV4 1
  206. #define NETDEV_IPV6 0
  207. #define RT_USING_LWIP
  208. #define RT_USING_LWIP203
  209. #define RT_USING_LWIP_VER_NUM 0x20003
  210. #define RT_LWIP_MEM_ALIGNMENT 4
  211. #define RT_LWIP_IGMP
  212. #define RT_LWIP_ICMP
  213. #define RT_LWIP_DNS
  214. #define RT_LWIP_DHCP
  215. #define IP_SOF_BROADCAST 1
  216. #define IP_SOF_BROADCAST_RECV 1
  217. /* Static IPv4 Address */
  218. #define RT_LWIP_IPADDR "192.168.1.30"
  219. #define RT_LWIP_GWADDR "192.168.1.1"
  220. #define RT_LWIP_MSKADDR "255.255.255.0"
  221. /* end of Static IPv4 Address */
  222. #define RT_LWIP_UDP
  223. #define RT_LWIP_TCP
  224. #define RT_LWIP_RAW
  225. #define RT_MEMP_NUM_NETCONN 32
  226. #define RT_LWIP_PBUF_NUM 256
  227. #define RT_LWIP_RAW_PCB_NUM 32
  228. #define RT_LWIP_UDP_PCB_NUM 32
  229. #define RT_LWIP_TCP_PCB_NUM 32
  230. #define RT_LWIP_TCP_SEG_NUM 256
  231. #define RT_LWIP_TCP_SND_BUF 32768
  232. #define RT_LWIP_TCP_WND 10240
  233. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  234. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 32
  235. #define RT_LWIP_TCPTHREAD_STACKSIZE 4096
  236. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  237. #define RT_LWIP_ETHTHREAD_STACKSIZE 1024
  238. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 32
  239. #define LWIP_NETIF_STATUS_CALLBACK 1
  240. #define LWIP_NETIF_LINK_CALLBACK 1
  241. #define RT_LWIP_NETIF_NAMESIZE 6
  242. #define SO_REUSE 1
  243. #define LWIP_SO_RCVTIMEO 1
  244. #define LWIP_SO_SNDTIMEO 1
  245. #define LWIP_SO_RCVBUF 1
  246. #define LWIP_SO_LINGER 0
  247. #define RT_LWIP_NETIF_LOOPBACK
  248. #define LWIP_NETIF_LOOPBACK 1
  249. #define RT_LWIP_STATS
  250. #define RT_LWIP_USING_PING
  251. /* end of Network */
  252. /* Memory protection */
  253. /* end of Memory protection */
  254. /* Utilities */
  255. #define RT_USING_UTEST
  256. #define UTEST_THR_STACK_SIZE 4096
  257. #define UTEST_THR_PRIORITY 20
  258. #define RT_UTEST_MAX_OPTIONS 64
  259. #define RT_USING_ADT
  260. #define RT_USING_ADT_AVL
  261. #define RT_USING_ADT_BITMAP
  262. #define RT_USING_ADT_HASHMAP
  263. #define RT_USING_ADT_REF
  264. /* end of Utilities */
  265. /* Memory management */
  266. #define RT_PAGE_AFFINITY_BLOCK_SIZE 0x1000
  267. #define RT_PAGE_MAX_ORDER 11
  268. /* Debugging */
  269. /* end of Debugging */
  270. /* end of Memory management */
  271. /* Using USB legacy version */
  272. #define RT_USING_USB
  273. #define RT_USING_USB_HOST
  274. #define RT_USBH_MSTORAGE
  275. #define UDISK_MOUNTPOINT "/mnt/udisk"
  276. #define RT_USING_USB_DEVICE
  277. #define RT_USBD_THREAD_STACK_SZ 4096
  278. #define USB_VENDOR_ID 0x0FFE
  279. #define USB_PRODUCT_ID 0x0001
  280. #define RT_USB_DEVICE_COMPOSITE
  281. #define RT_USB_DEVICE_CDC
  282. #define RT_USB_DEVICE_NONE
  283. #define RT_USB_DEVICE_MSTORAGE
  284. #define RT_VCOM_TASK_STK_SIZE 512
  285. #define RT_CDC_RX_BUFSIZE 128
  286. #define RT_VCOM_SERNO "32021919830108"
  287. #define RT_VCOM_SER_LEN 14
  288. #define RT_VCOM_TX_TIMEOUT 1000
  289. #define RT_USB_MSTORAGE_DISK_NAME "ramdisk1"
  290. /* end of Using USB legacy version */
  291. /* end of RT-Thread Components */
  292. /* RT-Thread Utestcases */
  293. /* end of RT-Thread Utestcases */
  294. /* RT-Thread online packages */
  295. /* IoT - internet of things */
  296. /* Wi-Fi */
  297. /* Marvell WiFi */
  298. /* end of Marvell WiFi */
  299. /* Wiced WiFi */
  300. /* end of Wiced WiFi */
  301. /* CYW43012 WiFi */
  302. /* end of CYW43012 WiFi */
  303. /* BL808 WiFi */
  304. /* end of BL808 WiFi */
  305. /* CYW43439 WiFi */
  306. /* end of CYW43439 WiFi */
  307. /* end of Wi-Fi */
  308. /* IoT Cloud */
  309. /* end of IoT Cloud */
  310. /* end of IoT - internet of things */
  311. /* security packages */
  312. /* end of security packages */
  313. /* language packages */
  314. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  315. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  316. /* XML: Extensible Markup Language */
  317. /* end of XML: Extensible Markup Language */
  318. /* end of language packages */
  319. /* multimedia packages */
  320. /* LVGL: powerful and easy-to-use embedded GUI library */
  321. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  322. /* u8g2: a monochrome graphic library */
  323. /* end of u8g2: a monochrome graphic library */
  324. /* end of multimedia packages */
  325. /* tools packages */
  326. /* end of tools packages */
  327. /* system packages */
  328. /* enhanced kernel services */
  329. /* end of enhanced kernel services */
  330. /* acceleration: Assembly language or algorithmic acceleration packages */
  331. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  332. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  333. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  334. /* Micrium: Micrium software products porting for RT-Thread */
  335. /* end of Micrium: Micrium software products porting for RT-Thread */
  336. /* end of system packages */
  337. /* peripheral libraries and drivers */
  338. /* HAL & SDK Drivers */
  339. /* STM32 HAL & SDK Drivers */
  340. /* end of STM32 HAL & SDK Drivers */
  341. /* Infineon HAL Packages */
  342. /* end of Infineon HAL Packages */
  343. /* Kendryte SDK */
  344. /* end of Kendryte SDK */
  345. /* WCH HAL & SDK Drivers */
  346. /* end of WCH HAL & SDK Drivers */
  347. /* AT32 HAL & SDK Drivers */
  348. /* end of AT32 HAL & SDK Drivers */
  349. /* HC32 DDL Drivers */
  350. /* end of HC32 DDL Drivers */
  351. /* NXP HAL & SDK Drivers */
  352. /* end of NXP HAL & SDK Drivers */
  353. /* NUVOTON Drivers */
  354. #define PKG_USING_NUVOTON_ARM926_LIB
  355. #define PKG_USING_NUVOTON_ARM926_LIB_LATEST_VERSION
  356. /* end of NUVOTON Drivers */
  357. /* GD32 Drivers */
  358. /* end of GD32 Drivers */
  359. /* end of HAL & SDK Drivers */
  360. /* sensors drivers */
  361. /* end of sensors drivers */
  362. /* touch drivers */
  363. /* end of touch drivers */
  364. /* end of peripheral libraries and drivers */
  365. /* AI packages */
  366. /* end of AI packages */
  367. /* Signal Processing and Control Algorithm Packages */
  368. /* end of Signal Processing and Control Algorithm Packages */
  369. /* miscellaneous packages */
  370. /* project laboratory */
  371. /* end of project laboratory */
  372. /* samples: kernel and components samples */
  373. /* end of samples: kernel and components samples */
  374. /* entertainment: terminal games and other interesting software packages */
  375. /* end of entertainment: terminal games and other interesting software packages */
  376. /* end of miscellaneous packages */
  377. /* Arduino libraries */
  378. /* Projects and Demos */
  379. /* end of Projects and Demos */
  380. /* Sensors */
  381. /* end of Sensors */
  382. /* Display */
  383. /* end of Display */
  384. /* Timing */
  385. /* end of Timing */
  386. /* Data Processing */
  387. /* end of Data Processing */
  388. /* Data Storage */
  389. /* Communication */
  390. /* end of Communication */
  391. /* Device Control */
  392. /* end of Device Control */
  393. /* Other */
  394. /* end of Other */
  395. /* Signal IO */
  396. /* end of Signal IO */
  397. /* Uncategorized */
  398. /* end of Arduino libraries */
  399. /* end of RT-Thread online packages */
  400. /* Hardware Drivers Config */
  401. /* On-chip Peripheral Drivers */
  402. #define SOC_SERIES_N9H30
  403. #define BSP_USING_MMU
  404. #define BSP_USING_GPIO
  405. #define BSP_USING_EMAC
  406. #define BSP_USING_EMAC0
  407. #define BSP_USING_EMAC1
  408. #define BSP_USING_RTC
  409. #define BSP_USING_ADC
  410. #define BSP_USING_ADC_TOUCH
  411. #define BSP_USING_ETMR
  412. #define BSP_USING_ETIMER
  413. #define BSP_USING_ETIMER_CAPTURE
  414. #define BSP_USING_ETMR0
  415. #define BSP_USING_ETIMER0
  416. #define BSP_USING_ETMR1
  417. #define BSP_USING_ETIMER1
  418. #define BSP_USING_ETMR2
  419. #define BSP_USING_ETIMER2_CAPTURE
  420. #define BSP_USING_ETMR3
  421. #define BSP_USING_ETIMER3_CAPTURE
  422. #define BSP_USING_TMR
  423. #define BSP_USING_TIMER
  424. #define BSP_USING_TIMER0
  425. #define BSP_USING_TIMER1
  426. #define BSP_USING_TIMER2
  427. #define BSP_USING_TIMER3
  428. #define BSP_USING_UART
  429. #define BSP_USING_UART0
  430. #define BSP_USING_I2C
  431. #define BSP_USING_I2C0
  432. #define BSP_USING_SDH
  433. #define BSP_USING_SDH0
  434. #define BSP_USING_SDH1
  435. #define NU_SDH_HOTPLUG
  436. #define BSP_USING_CAN
  437. #define BSP_USING_CAN0
  438. #define BSP_USING_PWM
  439. #define BSP_USING_PWM0
  440. #define BSP_USING_QSPI
  441. #define BSP_USING_QSPI0
  442. #define BSP_USING_QSPI1_NONE
  443. #define BSP_USING_I2S
  444. #define NU_I2S_DMA_FIFO_SIZE 2048
  445. #define BSP_USING_WDT
  446. #define BSP_USING_EBI
  447. #define BSP_USING_VPOST
  448. #define LCM_USING_FW070TFT
  449. #define VPOST_USING_LCD_IDX 3
  450. #define BSP_LCD_BPP 32
  451. #define BSP_LCD_WIDTH 800
  452. #define BSP_LCD_HEIGHT 480
  453. #define BSP_USING_VPOST_OSD
  454. #define BSP_USING_USBD
  455. #define BSP_USING_USBH
  456. /* end of On-chip Peripheral Drivers */
  457. /* On-board Peripheral Drivers */
  458. #define BSP_USING_CONSOLE
  459. #define BOARD_USING_IP101GR
  460. #define BOARD_USING_NAU8822
  461. #define BOARD_USING_STORAGE_SDCARD
  462. #define BOARD_USING_STORAGE_SPIFLASH
  463. #define BOARD_USING_BUZZER
  464. #define BOARD_USING_USB0_DEVICE_HOST
  465. #define BOARD_USING_USB1_HOST
  466. /* end of On-board Peripheral Drivers */
  467. /* Board extended module drivers */
  468. #define BOARD_USING_LCM
  469. #define BOARD_USING_LCM_FW070TFT_WVGA
  470. #define BOARD_USING_ADCTOUCH
  471. /* end of Board extended module drivers */
  472. /* Nuvoton Packages Config */
  473. #define NU_PKG_USING_UTILS
  474. #define NU_PKG_USING_NAU8822
  475. #define NU_PKG_USING_ADC_TOUCH
  476. /* end of Nuvoton Packages Config */
  477. /* end of Hardware Drivers Config */
  478. #endif