rtconfig.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  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_USING_WDT
  175. #define RT_USING_AUDIO
  176. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  177. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  178. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  179. #define RT_USING_SENSOR
  180. #define RT_USING_SENSOR_V2
  181. #define RT_USING_SENSOR_CMD
  182. #define RT_USING_HWCRYPTO
  183. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  184. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  185. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  186. #define RT_HWCRYPTO_USING_AES
  187. #define RT_HWCRYPTO_USING_AES_ECB
  188. #define RT_HWCRYPTO_USING_AES_CBC
  189. #define RT_HWCRYPTO_USING_AES_CFB
  190. #define RT_HWCRYPTO_USING_AES_CTR
  191. #define RT_HWCRYPTO_USING_AES_OFB
  192. #define RT_HWCRYPTO_USING_DES
  193. #define RT_HWCRYPTO_USING_DES_ECB
  194. #define RT_HWCRYPTO_USING_DES_CBC
  195. #define RT_HWCRYPTO_USING_3DES
  196. #define RT_HWCRYPTO_USING_3DES_ECB
  197. #define RT_HWCRYPTO_USING_3DES_CBC
  198. #define RT_HWCRYPTO_USING_SHA1
  199. #define RT_HWCRYPTO_USING_SHA2
  200. #define RT_HWCRYPTO_USING_SHA2_224
  201. #define RT_HWCRYPTO_USING_SHA2_256
  202. #define RT_HWCRYPTO_USING_SHA2_384
  203. #define RT_HWCRYPTO_USING_SHA2_512
  204. #define RT_HWCRYPTO_USING_RNG
  205. #define RT_HWCRYPTO_USING_CRC
  206. #define RT_HWCRYPTO_USING_CRC_07
  207. #define RT_HWCRYPTO_USING_CRC_8005
  208. #define RT_HWCRYPTO_USING_CRC_1021
  209. #define RT_HWCRYPTO_USING_CRC_04C11DB7
  210. #define RT_USING_BLK
  211. /* Partition Types */
  212. #define RT_BLK_PARTITION_DFS
  213. #define RT_BLK_PARTITION_EFI
  214. /* end of Partition Types */
  215. #define RT_USING_PIN
  216. #define RT_USING_HWTIMER
  217. /* end of Device Drivers */
  218. /* C/C++ and POSIX layer */
  219. /* ISO-ANSI C layer */
  220. /* Timezone and Daylight Saving Time */
  221. #define RT_LIBC_USING_LIGHT_TZ_DST
  222. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  223. #define RT_LIBC_TZ_DEFAULT_MIN 0
  224. #define RT_LIBC_TZ_DEFAULT_SEC 0
  225. /* end of Timezone and Daylight Saving Time */
  226. /* end of ISO-ANSI C layer */
  227. /* POSIX (Portable Operating System Interface) layer */
  228. #define RT_USING_POSIX_FS
  229. #define RT_USING_POSIX_DEVIO
  230. #define RT_USING_POSIX_POLL
  231. #define RT_USING_POSIX_SELECT
  232. #define RT_USING_POSIX_SOCKET
  233. /* Interprocess Communication (IPC) */
  234. /* Socket is in the 'Network' category */
  235. /* end of Interprocess Communication (IPC) */
  236. /* end of POSIX (Portable Operating System Interface) layer */
  237. /* end of C/C++ and POSIX layer */
  238. /* Network */
  239. #define RT_USING_SAL
  240. #define SAL_INTERNET_CHECK
  241. #define SOCKET_TABLE_STEP_LEN 4
  242. /* Docking with protocol stacks */
  243. #define SAL_USING_LWIP
  244. #define SAL_USING_AT
  245. /* end of Docking with protocol stacks */
  246. #define SAL_USING_POSIX
  247. #define RT_USING_NETDEV
  248. #define NETDEV_USING_IFCONFIG
  249. #define NETDEV_USING_PING
  250. #define NETDEV_USING_NETSTAT
  251. #define NETDEV_USING_AUTO_DEFAULT
  252. #define NETDEV_IPV4 1
  253. #define NETDEV_IPV6 0
  254. #define RT_USING_LWIP
  255. #define RT_USING_LWIP_LOCAL_VERSION
  256. #define RT_USING_LWIP212
  257. #define RT_USING_LWIP_VER_NUM 0x20102
  258. #define RT_LWIP_MEM_ALIGNMENT 4
  259. #define RT_LWIP_IGMP
  260. #define RT_LWIP_ICMP
  261. #define RT_LWIP_DNS
  262. #define RT_LWIP_DHCP
  263. #define IP_SOF_BROADCAST 1
  264. #define IP_SOF_BROADCAST_RECV 1
  265. /* Static IPv4 Address */
  266. #define RT_LWIP_IPADDR "192.168.31.55"
  267. #define RT_LWIP_GWADDR "192.168.31.1"
  268. #define RT_LWIP_MSKADDR "255.255.255.0"
  269. /* end of Static IPv4 Address */
  270. #define RT_LWIP_UDP
  271. #define RT_LWIP_TCP
  272. #define RT_LWIP_RAW
  273. #define RT_MEMP_NUM_NETCONN 8
  274. #define RT_LWIP_PBUF_NUM 64
  275. #define RT_LWIP_RAW_PCB_NUM 4
  276. #define RT_LWIP_UDP_PCB_NUM 4
  277. #define RT_LWIP_TCP_PCB_NUM 4
  278. #define RT_LWIP_TCP_SEG_NUM 64
  279. #define RT_LWIP_TCP_SND_BUF 8192
  280. #define RT_LWIP_TCP_WND 10240
  281. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  282. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 64
  283. #define RT_LWIP_TCPTHREAD_STACKSIZE 2048
  284. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  285. #define RT_LWIP_ETHTHREAD_STACKSIZE 2048
  286. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 64
  287. #define RT_LWIP_REASSEMBLY_FRAG
  288. #define LWIP_NETIF_STATUS_CALLBACK 1
  289. #define LWIP_NETIF_LINK_CALLBACK 1
  290. #define RT_LWIP_NETIF_NAMESIZE 6
  291. #define SO_REUSE 1
  292. #define LWIP_SO_RCVTIMEO 1
  293. #define LWIP_SO_SNDTIMEO 1
  294. #define LWIP_SO_RCVBUF 1
  295. #define LWIP_SO_LINGER 0
  296. #define RT_LWIP_NETIF_LOOPBACK
  297. #define LWIP_NETIF_LOOPBACK 1
  298. #define RT_LWIP_STATS
  299. #define RT_LWIP_USING_PING
  300. #define RT_USING_AT
  301. #define AT_USING_CLIENT
  302. #define AT_CLIENT_NUM_MAX 1
  303. #define AT_USING_SOCKET
  304. #define AT_USING_CLI
  305. #define AT_SW_VERSION_NUM 0x10301
  306. /* end of Network */
  307. /* Memory protection */
  308. /* end of Memory protection */
  309. /* Utilities */
  310. #define RT_USING_ULOG
  311. #define ULOG_OUTPUT_LVL_D
  312. #define ULOG_OUTPUT_LVL 7
  313. #define ULOG_ASSERT_ENABLE
  314. #define ULOG_LINE_BUF_SIZE 128
  315. /* log format */
  316. #define ULOG_USING_COLOR
  317. #define ULOG_OUTPUT_TIME
  318. #define ULOG_OUTPUT_LEVEL
  319. #define ULOG_OUTPUT_TAG
  320. /* end of log format */
  321. #define ULOG_BACKEND_USING_CONSOLE
  322. #define RT_USING_UTEST
  323. #define UTEST_THR_STACK_SIZE 4096
  324. #define UTEST_THR_PRIORITY 20
  325. #define RT_UTEST_MAX_OPTIONS 64
  326. /* end of Utilities */
  327. /* Using USB legacy version */
  328. #define RT_USING_USB
  329. #define RT_USING_USB_HOST
  330. #define RT_USBH_MSTORAGE
  331. #define UDISK_MOUNTPOINT "/mnt/udisk"
  332. #define RT_USING_USB_DEVICE
  333. #define RT_USBD_THREAD_STACK_SZ 4096
  334. #define USB_VENDOR_ID 0x0FFE
  335. #define USB_PRODUCT_ID 0x0001
  336. #define _RT_USB_DEVICE_MSTORAGE
  337. #define RT_USB_DEVICE_MSTORAGE
  338. #define RT_USB_MSTORAGE_DISK_NAME "sd0"
  339. /* end of Using USB legacy version */
  340. /* end of RT-Thread Components */
  341. /* RT-Thread Utestcases */
  342. /* end of RT-Thread Utestcases */
  343. /* RT-Thread online packages */
  344. /* IoT - internet of things */
  345. /* Wi-Fi */
  346. /* Marvell WiFi */
  347. /* end of Marvell WiFi */
  348. /* Wiced WiFi */
  349. /* end of Wiced WiFi */
  350. /* CYW43012 WiFi */
  351. /* end of CYW43012 WiFi */
  352. /* BL808 WiFi */
  353. /* end of BL808 WiFi */
  354. /* CYW43439 WiFi */
  355. /* end of CYW43439 WiFi */
  356. /* end of Wi-Fi */
  357. #define PKG_USING_AT_DEVICE
  358. #define AT_DEVICE_USING_ESP8266
  359. #define AT_DEVICE_ESP8266_INIT_ASYN
  360. #define AT_DEVICE_ESP8266_SOCKET
  361. #define AT_DEVICE_ESP8266_SAMPLE
  362. #define ESP8266_SAMPLE_WIFI_SSID "NT_ZY_BUFFALO"
  363. #define ESP8266_SAMPLE_WIFI_PASSWORD "12345678"
  364. #define ESP8266_SAMPLE_CLIENT_NAME "uart2"
  365. #define ESP8266_SAMPLE_RECV_BUFF_LEN 2048
  366. #define PKG_USING_AT_DEVICE_LATEST_VERSION
  367. #define PKG_AT_DEVICE_VER_NUM 0x99999
  368. /* IoT Cloud */
  369. /* end of IoT Cloud */
  370. /* end of IoT - internet of things */
  371. /* security packages */
  372. /* end of security packages */
  373. /* language packages */
  374. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  375. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  376. /* XML: Extensible Markup Language */
  377. /* end of XML: Extensible Markup Language */
  378. /* end of language packages */
  379. /* multimedia packages */
  380. /* LVGL: powerful and easy-to-use embedded GUI library */
  381. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  382. /* u8g2: a monochrome graphic library */
  383. /* end of u8g2: a monochrome graphic library */
  384. /* end of multimedia packages */
  385. /* tools packages */
  386. /* end of tools packages */
  387. /* system packages */
  388. /* enhanced kernel services */
  389. /* end of enhanced kernel services */
  390. /* acceleration: Assembly language or algorithmic acceleration packages */
  391. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  392. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  393. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  394. /* Micrium: Micrium software products porting for RT-Thread */
  395. /* end of Micrium: Micrium software products porting for RT-Thread */
  396. /* end of system packages */
  397. /* peripheral libraries and drivers */
  398. /* HAL & SDK Drivers */
  399. /* STM32 HAL & SDK Drivers */
  400. /* end of STM32 HAL & SDK Drivers */
  401. /* Infineon HAL Packages */
  402. /* end of Infineon HAL Packages */
  403. /* Kendryte SDK */
  404. /* end of Kendryte SDK */
  405. /* WCH HAL & SDK Drivers */
  406. /* end of WCH HAL & SDK Drivers */
  407. /* AT32 HAL & SDK Drivers */
  408. /* end of AT32 HAL & SDK Drivers */
  409. /* HC32 DDL Drivers */
  410. /* end of HC32 DDL Drivers */
  411. /* NXP HAL & SDK Drivers */
  412. /* end of NXP HAL & SDK Drivers */
  413. /* NUVOTON Drivers */
  414. #define PKG_USING_NUVOTON_CMSIS_DRIVER
  415. #define PKG_USING_NUVOTON_CMSIS_DRIVER_LATEST_VERSION
  416. #define PKG_USING_NUVOTON_SERIES_DRIVER
  417. #define PKG_USING_NUVOTON_SERIES_DRIVER_LATEST_VERSION
  418. /* end of NUVOTON Drivers */
  419. /* GD32 Drivers */
  420. /* end of GD32 Drivers */
  421. /* end of HAL & SDK Drivers */
  422. /* sensors drivers */
  423. /* end of sensors drivers */
  424. /* touch drivers */
  425. /* end of touch drivers */
  426. /* end of peripheral libraries and drivers */
  427. /* AI packages */
  428. /* end of AI packages */
  429. /* Signal Processing and Control Algorithm Packages */
  430. /* end of Signal Processing and Control Algorithm Packages */
  431. /* miscellaneous packages */
  432. /* project laboratory */
  433. /* end of project laboratory */
  434. /* samples: kernel and components samples */
  435. /* end of samples: kernel and components samples */
  436. /* entertainment: terminal games and other interesting software packages */
  437. /* end of entertainment: terminal games and other interesting software packages */
  438. /* end of miscellaneous packages */
  439. /* Arduino libraries */
  440. /* Projects and Demos */
  441. /* end of Projects and Demos */
  442. /* Sensors */
  443. /* end of Sensors */
  444. /* Display */
  445. /* end of Display */
  446. /* Timing */
  447. /* end of Timing */
  448. /* Data Processing */
  449. /* end of Data Processing */
  450. /* Data Storage */
  451. /* Communication */
  452. /* end of Communication */
  453. /* Device Control */
  454. /* end of Device Control */
  455. /* Other */
  456. /* end of Other */
  457. /* Signal IO */
  458. /* end of Signal IO */
  459. /* Uncategorized */
  460. /* end of Arduino libraries */
  461. /* end of RT-Thread online packages */
  462. /* Hardware Drivers Config */
  463. /* On-chip Peripheral Drivers */
  464. #define SOC_SERIES_M460
  465. #define BSP_USE_STDDRIVER_SOURCE
  466. #define BSP_USING_PDMA
  467. #define NU_PDMA_MEMFUN_ACTOR_MAX 2
  468. #define NU_PDMA_SGTBL_POOL_SIZE 32
  469. #define BSP_USING_FMC
  470. #define BSP_USING_GPIO
  471. #define BSP_USING_EMAC
  472. #define BSP_USING_RTC
  473. #define NU_RTC_SUPPORT_MSH_CMD
  474. #define BSP_USING_TMR
  475. #define BSP_USING_TIMER
  476. #define BSP_USING_TPWM
  477. #define BSP_USING_TIMER_CAPTURE
  478. #define BSP_USING_TMR0
  479. #define BSP_USING_TIMER0
  480. #define BSP_USING_TMR1
  481. #define BSP_USING_TPWM1
  482. #define BSP_USING_TMR2
  483. #define BSP_USING_TIMER2_CAPTURE
  484. #define BSP_USING_TMR3
  485. #define BSP_USING_TIMER3
  486. #define BSP_USING_UART
  487. #define BSP_USING_UART0
  488. #define BSP_USING_UART1
  489. #define BSP_USING_UART1_TX_DMA
  490. #define BSP_USING_UART1_RX_DMA
  491. #define BSP_USING_UART2
  492. #define BSP_USING_UART2_TX_DMA
  493. #define BSP_USING_UART2_RX_DMA
  494. #define BSP_USING_I2C
  495. #define BSP_USING_I2C2
  496. #define BSP_USING_SDH
  497. #define BSP_USING_SDH0
  498. #define BSP_USING_CANFD
  499. #define BSP_USING_CANFD0
  500. #define BSP_USING_SPI
  501. #define BSP_USING_SPI_PDMA
  502. #define BSP_USING_SPI0_NONE
  503. #define BSP_USING_SPI1_NONE
  504. #define BSP_USING_SPI2
  505. #define BSP_USING_SPI2_PDMA
  506. #define BSP_USING_SPI3_NONE
  507. #define BSP_USING_SPI4_NONE
  508. #define BSP_USING_SPI5_NONE
  509. #define BSP_USING_SPI6_NONE
  510. #define BSP_USING_SPI7_NONE
  511. #define BSP_USING_SPI8_NONE
  512. #define BSP_USING_SPI9_NONE
  513. #define BSP_USING_SPI10_NONE
  514. #define BSP_USING_QSPI
  515. #define BSP_USING_QSPI0
  516. #define BSP_USING_CRYPTO
  517. #define BSP_USING_TRNG
  518. #define BSP_USING_CRC
  519. #define NU_CRC_USE_PDMA
  520. #define BSP_USING_WDT
  521. #define BSP_USING_USBD
  522. #define BSP_USING_HSUSBH
  523. #define NU_USBHOST_HUB_POLLING_INTERVAL 100
  524. /* end of On-chip Peripheral Drivers */
  525. /* On-board Peripheral Drivers */
  526. #define BSP_USING_NULINKME
  527. #define BOARD_USING_RTL8201FI
  528. #define BOARD_USING_ESP8266
  529. #define BOARD_USING_STORAGE_SDCARD
  530. #define BOARD_USING_STORAGE_SPIFLASH
  531. #define BOARD_USING_CANFD0
  532. #define BOARD_USING_NCT7717U
  533. #define BOARD_USING_USB_D_H
  534. #define BOARD_USING_HSUSBH_USBD
  535. /* end of On-board Peripheral Drivers */
  536. /* Board extended module drivers */
  537. /* end of Board extended module drivers */
  538. /* Nuvoton Packages Config */
  539. #define NU_PKG_USING_UTILS
  540. #define NU_PKG_USING_DEMO
  541. #define NU_PKG_USING_NCT7717U
  542. /* end of Nuvoton Packages Config */
  543. /* end of Hardware Drivers Config */
  544. #endif