rtconfig.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  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. #define RT_KLIBC_USING_VSNPRINTF_STANDARD
  8. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_SPECIFIERS
  9. #define RT_KLIBC_USING_VSNPRINTF_EXPONENTIAL_SPECIFIERS
  10. #define RT_KLIBC_USING_VSNPRINTF_WRITEBACK_SPECIFIER
  11. #define RT_KLIBC_USING_VSNPRINTF_CHECK_NUL_IN_FORMAT_SPECIFIER
  12. #define RT_KLIBC_USING_VSNPRINTF_INTEGER_BUFFER_SIZE 32
  13. #define RT_KLIBC_USING_VSNPRINTF_DECIMAL_BUFFER_SIZE 32
  14. #define RT_KLIBC_USING_VSNPRINTF_FLOAT_PRECISION 6
  15. #define RT_KLIBC_USING_VSNPRINTF_MAX_INTEGRAL_DIGITS_FOR_DECIMAL 9
  16. #define RT_KLIBC_USING_VSNPRINTF_LOG10_TAYLOR_TERMS 4
  17. /* end of rt_vsnprintf options */
  18. /* rt_vsscanf options */
  19. /* end of rt_vsscanf options */
  20. /* rt_memset options */
  21. /* end of rt_memset options */
  22. /* rt_memcpy options */
  23. /* end of rt_memcpy options */
  24. /* rt_memmove options */
  25. /* end of rt_memmove options */
  26. /* rt_memcmp options */
  27. /* end of rt_memcmp options */
  28. /* rt_strstr options */
  29. /* end of rt_strstr options */
  30. /* rt_strcasecmp options */
  31. /* end of rt_strcasecmp options */
  32. /* rt_strncpy options */
  33. /* end of rt_strncpy options */
  34. /* rt_strcpy options */
  35. /* end of rt_strcpy options */
  36. /* rt_strncmp options */
  37. /* end of rt_strncmp options */
  38. /* rt_strcmp options */
  39. /* end of rt_strcmp options */
  40. /* rt_strlen options */
  41. /* end of rt_strlen options */
  42. /* rt_strnlen options */
  43. /* end of rt_strnlen options */
  44. /* end of klibc options */
  45. #define RT_NAME_MAX 12
  46. #define RT_CPUS_NR 1
  47. #define RT_ALIGN_SIZE 8
  48. #define RT_THREAD_PRIORITY_32
  49. #define RT_THREAD_PRIORITY_MAX 32
  50. #define RT_TICK_PER_SECOND 1000
  51. #define RT_USING_OVERFLOW_CHECK
  52. #define RT_USING_HOOK
  53. #define RT_HOOK_USING_FUNC_PTR
  54. #define RT_USING_IDLE_HOOK
  55. #define RT_IDLE_HOOK_LIST_SIZE 4
  56. #define IDLE_THREAD_STACK_SIZE 1024
  57. /* kservice options */
  58. /* end of kservice options */
  59. #define RT_USING_DEBUG
  60. #define RT_DEBUGING_ASSERT
  61. #define RT_DEBUGING_COLOR
  62. #define RT_DEBUGING_CONTEXT
  63. /* Inter-Thread communication */
  64. #define RT_USING_SEMAPHORE
  65. #define RT_USING_MUTEX
  66. #define RT_USING_EVENT
  67. #define RT_USING_MAILBOX
  68. #define RT_USING_MESSAGEQUEUE
  69. #define RT_USING_SIGNALS
  70. /* end of Inter-Thread communication */
  71. /* Memory Management */
  72. #define RT_USING_MEMPOOL
  73. #define RT_USING_SMALL_MEM
  74. #define RT_USING_SMALL_MEM_AS_HEAP
  75. #define RT_USING_HEAP
  76. /* end of Memory Management */
  77. #define RT_USING_DEVICE
  78. #define RT_USING_CONSOLE
  79. #define RT_CONSOLEBUF_SIZE 256
  80. #define RT_CONSOLE_DEVICE_NAME "uart0"
  81. #define RT_VER_NUM 0x50201
  82. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  83. /* end of RT-Thread Kernel */
  84. #define RT_USING_HW_ATOMIC
  85. #define RT_USING_CPU_FFS
  86. #define ARCH_ARM
  87. #define ARCH_ARM_CORTEX_M
  88. #define ARCH_ARM_CORTEX_M4
  89. /* RT-Thread Components */
  90. #define RT_USING_COMPONENTS_INIT
  91. #define RT_USING_USER_MAIN
  92. #define RT_MAIN_THREAD_STACK_SIZE 2048
  93. #define RT_MAIN_THREAD_PRIORITY 10
  94. #define RT_USING_LEGACY
  95. #define RT_USING_MSH
  96. #define RT_USING_FINSH
  97. #define FINSH_USING_MSH
  98. #define FINSH_THREAD_NAME "tshell"
  99. #define FINSH_THREAD_PRIORITY 20
  100. #define FINSH_THREAD_STACK_SIZE 2048
  101. #define FINSH_USING_HISTORY
  102. #define FINSH_HISTORY_LINES 5
  103. #define FINSH_USING_SYMTAB
  104. #define FINSH_CMD_SIZE 80
  105. #define MSH_USING_BUILT_IN_COMMANDS
  106. #define FINSH_USING_DESCRIPTION
  107. #define FINSH_ARG_MAX 10
  108. #define FINSH_USING_OPTION_COMPLETION
  109. /* DFS: device virtual file system */
  110. #define RT_USING_DFS
  111. #define DFS_USING_POSIX
  112. #define DFS_USING_WORKDIR
  113. #define RT_USING_DFS_MNTTABLE
  114. #define DFS_FD_MAX 32
  115. #define RT_USING_DFS_V1
  116. #define DFS_FILESYSTEMS_MAX 8
  117. #define DFS_FILESYSTEM_TYPES_MAX 8
  118. #define RT_USING_DFS_ELMFAT
  119. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  120. #define RT_DFS_ELM_CODE_PAGE 437
  121. #define RT_DFS_ELM_WORD_ACCESS
  122. #define RT_DFS_ELM_USE_LFN_3
  123. #define RT_DFS_ELM_USE_LFN 3
  124. #define RT_DFS_ELM_LFN_UNICODE_0
  125. #define RT_DFS_ELM_LFN_UNICODE 0
  126. #define RT_DFS_ELM_MAX_LFN 255
  127. #define RT_DFS_ELM_DRIVES 8
  128. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  129. #define RT_DFS_ELM_REENTRANT
  130. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  131. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  132. #define RT_USING_DFS_DEVFS
  133. /* end of DFS: device virtual file system */
  134. #define RT_USING_FAL
  135. #define FAL_USING_DEBUG
  136. #define FAL_PART_HAS_TABLE_CFG
  137. #define FAL_USING_SFUD_PORT
  138. #define FAL_USING_NOR_FLASH_DEV_NAME "norflash0"
  139. /* Device Drivers */
  140. #define RT_USING_DEVICE_IPC
  141. #define RT_UNAMED_PIPE_NUMBER 64
  142. #define RT_USING_SYSTEM_WORKQUEUE
  143. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  144. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  145. #define RT_USING_SERIAL
  146. #define RT_USING_SERIAL_V1
  147. #define RT_SERIAL_USING_DMA
  148. #define RT_SERIAL_RB_BUFSZ 512
  149. #define RT_USING_CAN
  150. #define RT_CANMSG_BOX_SZ 16
  151. #define RT_CANSND_BOX_NUM 1
  152. #define RT_CANSND_MSG_TIMEOUT 100
  153. #define RT_CAN_NB_TX_FIFO_SIZE 256
  154. #define RT_USING_I2C
  155. #define RT_USING_I2C_BITOPS
  156. #define RT_USING_PWM
  157. #define RT_USING_INPUT_CAPTURE
  158. #define RT_INPUT_CAPTURE_RB_SIZE 100
  159. #define RT_USING_RTC
  160. #define RT_USING_SDIO
  161. #define RT_SDIO_STACK_SIZE 2048
  162. #define RT_SDIO_THREAD_PRIORITY 15
  163. #define RT_MMCSD_STACK_SIZE 2048
  164. #define RT_MMCSD_THREAD_PRIORITY 22
  165. #define RT_MMCSD_MAX_PARTITION 16
  166. #define RT_SDIO_DEBUG
  167. #define RT_USING_SPI
  168. #define RT_USING_QSPI
  169. #define RT_USING_SFUD
  170. #define RT_SFUD_USING_SFDP
  171. #define RT_SFUD_USING_FLASH_INFO_TABLE
  172. #define RT_SFUD_USING_QSPI
  173. #define RT_SFUD_SPI_MAX_HZ 50000000
  174. #define RT_DEBUG_SFUD
  175. #define RT_USING_WDT
  176. #define RT_USING_AUDIO
  177. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  178. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  179. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  180. #define RT_USING_SENSOR
  181. #define RT_USING_SENSOR_V2
  182. #define RT_USING_SENSOR_CMD
  183. #define RT_USING_HWCRYPTO
  184. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  185. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  186. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  187. #define RT_HWCRYPTO_USING_AES
  188. #define RT_HWCRYPTO_USING_AES_ECB
  189. #define RT_HWCRYPTO_USING_AES_CBC
  190. #define RT_HWCRYPTO_USING_AES_CFB
  191. #define RT_HWCRYPTO_USING_AES_CTR
  192. #define RT_HWCRYPTO_USING_AES_OFB
  193. #define RT_HWCRYPTO_USING_DES
  194. #define RT_HWCRYPTO_USING_DES_ECB
  195. #define RT_HWCRYPTO_USING_DES_CBC
  196. #define RT_HWCRYPTO_USING_3DES
  197. #define RT_HWCRYPTO_USING_3DES_ECB
  198. #define RT_HWCRYPTO_USING_3DES_CBC
  199. #define RT_HWCRYPTO_USING_SHA1
  200. #define RT_HWCRYPTO_USING_SHA2
  201. #define RT_HWCRYPTO_USING_SHA2_224
  202. #define RT_HWCRYPTO_USING_SHA2_256
  203. #define RT_HWCRYPTO_USING_SHA2_384
  204. #define RT_HWCRYPTO_USING_SHA2_512
  205. #define RT_HWCRYPTO_USING_RNG
  206. #define RT_HWCRYPTO_USING_CRC
  207. #define RT_HWCRYPTO_USING_CRC_07
  208. #define RT_HWCRYPTO_USING_CRC_8005
  209. #define RT_HWCRYPTO_USING_CRC_1021
  210. #define RT_HWCRYPTO_USING_CRC_04C11DB7
  211. #define RT_USING_BLK
  212. /* Partition Types */
  213. #define RT_BLK_PARTITION_DFS
  214. #define RT_BLK_PARTITION_EFI
  215. /* end of Partition Types */
  216. #define RT_USING_PIN
  217. #define RT_USING_HWTIMER
  218. /* end of Device Drivers */
  219. /* C/C++ and POSIX layer */
  220. /* ISO-ANSI C layer */
  221. /* Timezone and Daylight Saving Time */
  222. #define RT_LIBC_USING_LIGHT_TZ_DST
  223. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  224. #define RT_LIBC_TZ_DEFAULT_MIN 0
  225. #define RT_LIBC_TZ_DEFAULT_SEC 0
  226. /* end of Timezone and Daylight Saving Time */
  227. /* end of ISO-ANSI C layer */
  228. /* POSIX (Portable Operating System Interface) layer */
  229. #define RT_USING_POSIX_FS
  230. #define RT_USING_POSIX_DEVIO
  231. #define RT_USING_POSIX_POLL
  232. #define RT_USING_POSIX_SELECT
  233. #define RT_USING_POSIX_SOCKET
  234. /* Interprocess Communication (IPC) */
  235. /* Socket is in the 'Network' category */
  236. /* end of Interprocess Communication (IPC) */
  237. /* end of POSIX (Portable Operating System Interface) layer */
  238. /* end of C/C++ and POSIX layer */
  239. /* Network */
  240. #define RT_USING_SAL
  241. #define SOCKET_TABLE_STEP_LEN 4
  242. /* Docking with protocol stacks */
  243. #define SAL_USING_LWIP
  244. /* end of Docking with protocol stacks */
  245. #define SAL_USING_POSIX
  246. #define RT_USING_NETDEV
  247. #define NETDEV_USING_IFCONFIG
  248. #define NETDEV_USING_PING
  249. #define NETDEV_USING_NETSTAT
  250. #define NETDEV_USING_AUTO_DEFAULT
  251. #define NETDEV_IPV4 1
  252. #define NETDEV_IPV6 0
  253. #define RT_USING_LWIP
  254. #define RT_USING_LWIP212
  255. #define RT_USING_LWIP_VER_NUM 0x20102
  256. #define RT_LWIP_MEM_ALIGNMENT 4
  257. #define RT_LWIP_IGMP
  258. #define RT_LWIP_ICMP
  259. #define RT_LWIP_DNS
  260. #define RT_LWIP_DHCP
  261. #define IP_SOF_BROADCAST 1
  262. #define IP_SOF_BROADCAST_RECV 1
  263. /* Static IPv4 Address */
  264. #define RT_LWIP_IPADDR "192.168.31.55"
  265. #define RT_LWIP_GWADDR "192.168.31.1"
  266. #define RT_LWIP_MSKADDR "255.255.255.0"
  267. /* end of Static IPv4 Address */
  268. #define RT_LWIP_UDP
  269. #define RT_LWIP_TCP
  270. #define RT_LWIP_RAW
  271. #define RT_MEMP_NUM_NETCONN 8
  272. #define RT_LWIP_PBUF_NUM 64
  273. #define RT_LWIP_RAW_PCB_NUM 4
  274. #define RT_LWIP_UDP_PCB_NUM 4
  275. #define RT_LWIP_TCP_PCB_NUM 4
  276. #define RT_LWIP_TCP_SEG_NUM 64
  277. #define RT_LWIP_TCP_SND_BUF 8192
  278. #define RT_LWIP_TCP_WND 10240
  279. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  280. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 64
  281. #define RT_LWIP_TCPTHREAD_STACKSIZE 2048
  282. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  283. #define RT_LWIP_ETHTHREAD_STACKSIZE 2048
  284. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 64
  285. #define RT_LWIP_REASSEMBLY_FRAG
  286. #define LWIP_NETIF_STATUS_CALLBACK 1
  287. #define LWIP_NETIF_LINK_CALLBACK 1
  288. #define RT_LWIP_NETIF_NAMESIZE 6
  289. #define SO_REUSE 1
  290. #define LWIP_SO_RCVTIMEO 1
  291. #define LWIP_SO_SNDTIMEO 1
  292. #define LWIP_SO_RCVBUF 1
  293. #define LWIP_SO_LINGER 0
  294. #define RT_LWIP_NETIF_LOOPBACK
  295. #define LWIP_NETIF_LOOPBACK 1
  296. #define RT_LWIP_STATS
  297. #define RT_LWIP_USING_PING
  298. /* end of Network */
  299. /* Memory protection */
  300. /* end of Memory protection */
  301. /* Utilities */
  302. #define RT_USING_ULOG
  303. #define ULOG_OUTPUT_LVL_D
  304. #define ULOG_OUTPUT_LVL 7
  305. #define ULOG_ASSERT_ENABLE
  306. #define ULOG_LINE_BUF_SIZE 128
  307. /* log format */
  308. #define ULOG_USING_COLOR
  309. #define ULOG_OUTPUT_TIME
  310. #define ULOG_OUTPUT_LEVEL
  311. #define ULOG_OUTPUT_TAG
  312. /* end of log format */
  313. #define ULOG_BACKEND_USING_CONSOLE
  314. #define RT_USING_UTEST
  315. #define UTEST_THR_STACK_SIZE 4096
  316. #define UTEST_THR_PRIORITY 20
  317. #define RT_UTEST_MAX_OPTIONS 64
  318. /* end of Utilities */
  319. /* Using USB legacy version */
  320. #define RT_USING_USB
  321. #define RT_USING_USB_HOST
  322. #define RT_USBH_MSTORAGE
  323. #define UDISK_MOUNTPOINT "/mnt/udisk"
  324. #define RT_USING_USB_DEVICE
  325. #define RT_USBD_THREAD_STACK_SZ 4096
  326. #define USB_VENDOR_ID 0x0FFE
  327. #define USB_PRODUCT_ID 0x0001
  328. #define _RT_USB_DEVICE_MSTORAGE
  329. #define RT_USB_DEVICE_MSTORAGE
  330. #define RT_USB_MSTORAGE_DISK_NAME "ramdisk1"
  331. /* end of Using USB legacy version */
  332. /* end of RT-Thread Components */
  333. /* RT-Thread Utestcases */
  334. /* end of RT-Thread Utestcases */
  335. /* RT-Thread online packages */
  336. /* IoT - internet of things */
  337. /* Wi-Fi */
  338. /* Marvell WiFi */
  339. /* end of Marvell WiFi */
  340. /* Wiced WiFi */
  341. /* end of Wiced WiFi */
  342. /* CYW43012 WiFi */
  343. /* end of CYW43012 WiFi */
  344. /* BL808 WiFi */
  345. /* end of BL808 WiFi */
  346. /* CYW43439 WiFi */
  347. /* end of CYW43439 WiFi */
  348. /* end of Wi-Fi */
  349. /* IoT Cloud */
  350. /* end of IoT Cloud */
  351. /* end of IoT - internet of things */
  352. /* security packages */
  353. /* end of security packages */
  354. /* language packages */
  355. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  356. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  357. /* XML: Extensible Markup Language */
  358. /* end of XML: Extensible Markup Language */
  359. /* end of language packages */
  360. /* multimedia packages */
  361. /* LVGL: powerful and easy-to-use embedded GUI library */
  362. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  363. /* u8g2: a monochrome graphic library */
  364. /* end of u8g2: a monochrome graphic library */
  365. /* end of multimedia packages */
  366. /* tools packages */
  367. /* end of tools packages */
  368. /* system packages */
  369. /* enhanced kernel services */
  370. /* end of enhanced kernel services */
  371. /* acceleration: Assembly language or algorithmic acceleration packages */
  372. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  373. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  374. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  375. /* Micrium: Micrium software products porting for RT-Thread */
  376. /* end of Micrium: Micrium software products porting for RT-Thread */
  377. /* end of system packages */
  378. /* peripheral libraries and drivers */
  379. /* HAL & SDK Drivers */
  380. /* STM32 HAL & SDK Drivers */
  381. /* end of STM32 HAL & SDK Drivers */
  382. /* Infineon HAL Packages */
  383. /* end of Infineon HAL Packages */
  384. /* Kendryte SDK */
  385. /* end of Kendryte SDK */
  386. /* WCH HAL & SDK Drivers */
  387. /* end of WCH HAL & SDK Drivers */
  388. /* AT32 HAL & SDK Drivers */
  389. /* end of AT32 HAL & SDK Drivers */
  390. /* HC32 DDL Drivers */
  391. /* end of HC32 DDL Drivers */
  392. /* NXP HAL & SDK Drivers */
  393. /* end of NXP HAL & SDK Drivers */
  394. /* NUVOTON Drivers */
  395. #define PKG_USING_NUVOTON_CMSIS_DRIVER
  396. #define PKG_USING_NUVOTON_CMSIS_DRIVER_LATEST_VERSION
  397. #define PKG_USING_NUVOTON_SERIES_DRIVER
  398. #define PKG_USING_NUVOTON_SERIES_DRIVER_LATEST_VERSION
  399. /* end of NUVOTON Drivers */
  400. /* GD32 Drivers */
  401. /* end of GD32 Drivers */
  402. /* end of HAL & SDK Drivers */
  403. /* sensors drivers */
  404. /* end of sensors drivers */
  405. /* touch drivers */
  406. /* end of touch drivers */
  407. /* end of peripheral libraries and drivers */
  408. /* AI packages */
  409. /* end of AI packages */
  410. /* Signal Processing and Control Algorithm Packages */
  411. /* end of Signal Processing and Control Algorithm Packages */
  412. /* miscellaneous packages */
  413. /* project laboratory */
  414. /* end of project laboratory */
  415. /* samples: kernel and components samples */
  416. /* end of samples: kernel and components samples */
  417. /* entertainment: terminal games and other interesting software packages */
  418. /* end of entertainment: terminal games and other interesting software packages */
  419. /* end of miscellaneous packages */
  420. /* Arduino libraries */
  421. /* Projects and Demos */
  422. /* end of Projects and Demos */
  423. /* Sensors */
  424. /* end of Sensors */
  425. /* Display */
  426. /* end of Display */
  427. /* Timing */
  428. /* end of Timing */
  429. /* Data Processing */
  430. /* end of Data Processing */
  431. /* Data Storage */
  432. /* Communication */
  433. /* end of Communication */
  434. /* Device Control */
  435. /* end of Device Control */
  436. /* Other */
  437. /* end of Other */
  438. /* Signal IO */
  439. /* end of Signal IO */
  440. /* Uncategorized */
  441. /* end of Arduino libraries */
  442. /* end of RT-Thread online packages */
  443. /* Hardware Drivers Config */
  444. /* On-chip Peripheral Drivers */
  445. #define SOC_SERIES_M460
  446. #define BSP_USE_STDDRIVER_SOURCE
  447. #define BSP_USING_PDMA
  448. #define NU_PDMA_MEMFUN_ACTOR_MAX 2
  449. #define NU_PDMA_SGTBL_POOL_SIZE 32
  450. #define BSP_USING_FMC
  451. #define BSP_USING_GPIO
  452. #define BSP_USING_EMAC
  453. #define BSP_USING_RTC
  454. #define NU_RTC_SUPPORT_MSH_CMD
  455. #define BSP_USING_TMR
  456. #define BSP_USING_TIMER
  457. #define BSP_USING_TPWM
  458. #define BSP_USING_TIMER_CAPTURE
  459. #define BSP_USING_TMR0
  460. #define BSP_USING_TIMER0
  461. #define BSP_USING_TMR1
  462. #define BSP_USING_TPWM1
  463. #define BSP_USING_TMR2
  464. #define BSP_USING_TIMER2_CAPTURE
  465. #define BSP_USING_TMR3
  466. #define BSP_USING_TIMER3
  467. #define BSP_USING_UART
  468. #define BSP_USING_UART0
  469. #define BSP_USING_UART1
  470. #define BSP_USING_UART1_TX_DMA
  471. #define BSP_USING_UART1_RX_DMA
  472. #define BSP_USING_I2C
  473. #define BSP_USING_I2C2
  474. #define BSP_USING_SDH
  475. #define BSP_USING_SDH0
  476. #define BSP_USING_CANFD
  477. #define BSP_USING_CANFD0
  478. #define BSP_USING_SPI
  479. #define BSP_USING_SPI_PDMA
  480. #define BSP_USING_SPI0_NONE
  481. #define BSP_USING_SPI1_NONE
  482. #define BSP_USING_SPI2
  483. #define BSP_USING_SPI2_PDMA
  484. #define BSP_USING_SPI3_NONE
  485. #define BSP_USING_SPI4_NONE
  486. #define BSP_USING_SPI5_NONE
  487. #define BSP_USING_SPI6_NONE
  488. #define BSP_USING_SPI7_NONE
  489. #define BSP_USING_SPI8_NONE
  490. #define BSP_USING_SPI9_NONE
  491. #define BSP_USING_SPI10_NONE
  492. #define BSP_USING_I2S
  493. #define BSP_USING_I2S0
  494. #define NU_I2S_DMA_FIFO_SIZE 2048
  495. #define BSP_USING_QSPI
  496. #define BSP_USING_QSPI0
  497. #define BSP_USING_CRYPTO
  498. #define BSP_USING_TRNG
  499. #define BSP_USING_CRC
  500. #define NU_CRC_USE_PDMA
  501. #define BSP_USING_WDT
  502. #define BSP_USING_EBI
  503. #define BSP_USING_HBI
  504. #define BSP_USING_USBD
  505. #define BSP_USING_HSUSBH
  506. #define NU_USBHOST_HUB_POLLING_INTERVAL 100
  507. /* end of On-chip Peripheral Drivers */
  508. /* On-board Peripheral Drivers */
  509. #define BSP_USING_NULINKME
  510. #define BOARD_USING_RTL8201FI
  511. #define BOARD_USING_NAU8822
  512. #define BOARD_USING_STORAGE_SDCARD
  513. #define BOARD_USING_CANFD0
  514. #define BOARD_USING_EXTERNAL_HYPERRAM
  515. #define BOARD_USING_HYPERRAM_SIZE 8388608
  516. #define BOARD_USING_NCT7717U
  517. #define BOARD_USING_USB_D_H
  518. #define BOARD_USING_HSUSBH_USBD
  519. /* end of On-board Peripheral Drivers */
  520. /* Board extended module drivers */
  521. #define BOARD_USING_SENSON0_ID
  522. /* end of Board extended module drivers */
  523. /* Nuvoton Packages Config */
  524. #define NU_PKG_USING_UTILS
  525. #define NU_PKG_USING_NCT7717U
  526. #define NU_PKG_USING_NAU8822
  527. /* end of Nuvoton Packages Config */
  528. /* end of Hardware Drivers Config */
  529. #endif