rtconfig.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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 12
  35. #define RT_USING_SMART
  36. #define RT_CPUS_NR 1
  37. #define RT_ALIGN_SIZE 4
  38. #define RT_THREAD_PRIORITY_32
  39. #define RT_THREAD_PRIORITY_MAX 32
  40. #define RT_TICK_PER_SECOND 1000
  41. #define RT_USING_OVERFLOW_CHECK
  42. #define RT_USING_HOOK
  43. #define RT_HOOK_USING_FUNC_PTR
  44. #define RT_USING_IDLE_HOOK
  45. #define RT_IDLE_HOOK_LIST_SIZE 4
  46. #define IDLE_THREAD_STACK_SIZE 8192
  47. #define RT_USING_TIMER_SOFT
  48. #define RT_TIMER_THREAD_PRIO 4
  49. #define RT_TIMER_THREAD_STACK_SIZE 4096
  50. #define RT_USING_CPU_USAGE_TRACER
  51. /* kservice options */
  52. /* end of kservice options */
  53. #define RT_USING_DEBUG
  54. #define RT_DEBUGING_ASSERT
  55. #define RT_DEBUGING_COLOR
  56. #define RT_DEBUGING_CONTEXT
  57. /* Inter-Thread communication */
  58. #define RT_USING_SEMAPHORE
  59. #define RT_USING_MUTEX
  60. #define RT_USING_EVENT
  61. #define RT_USING_MAILBOX
  62. #define RT_USING_MESSAGEQUEUE
  63. #define RT_USING_SIGNALS
  64. /* end of Inter-Thread communication */
  65. /* Memory Management */
  66. #define RT_USING_MEMPOOL
  67. #define RT_USING_SMALL_MEM
  68. #define RT_USING_MEMHEAP
  69. #define RT_MEMHEAP_FAST_MODE
  70. #define RT_USING_SMALL_MEM_AS_HEAP
  71. #define RT_USING_MEMTRACE
  72. #define RT_USING_HEAP
  73. /* end of Memory Management */
  74. #define RT_USING_DEVICE
  75. #define RT_USING_DEVICE_OPS
  76. #define RT_USING_INTERRUPT_INFO
  77. #define RT_USING_CONSOLE
  78. #define RT_CONSOLEBUF_SIZE 256
  79. #define RT_CONSOLE_DEVICE_NAME "uart0"
  80. #define RT_VER_NUM 0x50201
  81. #define RT_USING_STDC_ATOMIC
  82. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  83. /* end of RT-Thread Kernel */
  84. #define RT_USING_CACHE
  85. #define RT_USING_HW_ATOMIC
  86. #define RT_USING_CPU_FFS
  87. #define ARCH_MM_MMU
  88. #define ARCH_ARM
  89. #define ARCH_ARM_MMU
  90. #define KERNEL_VADDR_START 0xc0000000
  91. #define ARCH_ARM_CORTEX_A
  92. #define RT_USING_GIC_V2
  93. #define ARCH_ARM_CORTEX_A7
  94. #define ARCH_ARM_SECURE_MODE
  95. #define RT_BACKTRACE_FUNCTION_NAME
  96. /* RT-Thread Components */
  97. #define RT_USING_COMPONENTS_INIT
  98. #define RT_USING_USER_MAIN
  99. #define RT_MAIN_THREAD_STACK_SIZE 4096
  100. #define RT_MAIN_THREAD_PRIORITY 10
  101. #define RT_USING_MSH
  102. #define RT_USING_FINSH
  103. #define FINSH_USING_MSH
  104. #define FINSH_THREAD_NAME "tshell"
  105. #define FINSH_THREAD_PRIORITY 20
  106. #define FINSH_THREAD_STACK_SIZE 4096
  107. #define FINSH_USING_HISTORY
  108. #define FINSH_HISTORY_LINES 5
  109. #define FINSH_USING_SYMTAB
  110. #define FINSH_CMD_SIZE 80
  111. #define MSH_USING_BUILT_IN_COMMANDS
  112. #define FINSH_USING_DESCRIPTION
  113. #define FINSH_ARG_MAX 10
  114. #define FINSH_USING_OPTION_COMPLETION
  115. /* DFS: device virtual file system */
  116. #define RT_USING_DFS
  117. #define DFS_USING_POSIX
  118. #define DFS_USING_WORKDIR
  119. #define DFS_FD_MAX 32
  120. #define RT_USING_DFS_V2
  121. #define RT_USING_DFS_ELMFAT
  122. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  123. #define RT_DFS_ELM_CODE_PAGE 437
  124. #define RT_DFS_ELM_WORD_ACCESS
  125. #define RT_DFS_ELM_USE_LFN_3
  126. #define RT_DFS_ELM_USE_LFN 3
  127. #define RT_DFS_ELM_LFN_UNICODE_0
  128. #define RT_DFS_ELM_LFN_UNICODE 0
  129. #define RT_DFS_ELM_MAX_LFN 255
  130. #define RT_DFS_ELM_DRIVES 2
  131. #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
  132. #define RT_DFS_ELM_REENTRANT
  133. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  134. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  135. #define RT_USING_DFS_DEVFS
  136. #define RT_USING_DFS_ROMFS
  137. #define RT_USING_DFS_PTYFS
  138. #define RT_USING_DFS_TMPFS
  139. #define RT_USING_PAGECACHE
  140. /* page cache config */
  141. #define RT_PAGECACHE_COUNT 4096
  142. #define RT_PAGECACHE_ASPACE_COUNT 1024
  143. #define RT_PAGECACHE_PRELOAD 4
  144. #define RT_PAGECACHE_HASH_NR 1024
  145. #define RT_PAGECACHE_GC_WORK_LEVEL 90
  146. #define RT_PAGECACHE_GC_STOP_LEVEL 70
  147. /* end of page cache config */
  148. /* end of DFS: device virtual file system */
  149. /* Device Drivers */
  150. #define RT_USING_DEV_BUS
  151. #define RT_USING_DEVICE_IPC
  152. #define RT_UNAMED_PIPE_NUMBER 64
  153. #define RT_USING_SYSTEM_WORKQUEUE
  154. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 4096
  155. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  156. #define RT_USING_SERIAL
  157. #define RT_USING_SERIAL_V1
  158. #define RT_SERIAL_RB_BUFSZ 64
  159. #define RT_USING_SERIAL_BYPASS
  160. #define RT_USING_CPUTIME
  161. #define CPUTIME_TIMER_FREQ 0
  162. #define RT_USING_I2C
  163. #define RT_USING_NULL
  164. #define RT_USING_ZERO
  165. #define RT_USING_RANDOM
  166. #define RT_USING_PWM
  167. #define RT_USING_RTC
  168. #define RT_USING_SDIO
  169. #define RT_SDIO_STACK_SIZE 4096
  170. #define RT_SDIO_THREAD_PRIORITY 15
  171. #define RT_MMCSD_STACK_SIZE 4096
  172. #define RT_MMCSD_THREAD_PRIORITY 22
  173. #define RT_MMCSD_MAX_PARTITION 16
  174. #define RT_USING_SPI
  175. #define RT_USING_TOUCH
  176. #define RT_TOUCH_PIN_IRQ
  177. #define RT_USING_LCD
  178. #define RT_USING_WIFI
  179. #define RT_WLAN_DEVICE_STA_NAME "wlan0"
  180. #define RT_WLAN_DEVICE_AP_NAME "wlan1"
  181. #define RT_WLAN_SSID_MAX_LENGTH 32
  182. #define RT_WLAN_PASSWORD_MAX_LENGTH 32
  183. #define RT_WLAN_DEV_EVENT_NUM 2
  184. #define RT_WLAN_MANAGE_ENABLE
  185. #define RT_WLAN_SCAN_WAIT_MS 10000
  186. #define RT_WLAN_CONNECT_WAIT_MS 10000
  187. #define RT_WLAN_SCAN_SORT
  188. #define RT_WLAN_MSH_CMD_ENABLE
  189. #define RT_WLAN_JOIN_SCAN_BY_MGNT
  190. #define RT_WLAN_AUTO_CONNECT_ENABLE
  191. #define AUTO_CONNECTION_PERIOD_MS 2000
  192. #define RT_WLAN_CFG_ENABLE
  193. #define RT_WLAN_CFG_INFO_MAX 3
  194. #define RT_WLAN_PROT_ENABLE
  195. #define RT_WLAN_PROT_NAME_LEN 8
  196. #define RT_WLAN_PROT_MAX 2
  197. #define RT_WLAN_DEFAULT_PROT "lwip"
  198. #define RT_WLAN_PROT_LWIP_ENABLE
  199. #define RT_WLAN_PROT_LWIP_NAME "lwip"
  200. #define RT_WLAN_WORK_THREAD_ENABLE
  201. #define RT_WLAN_WORKQUEUE_THREAD_NAME "wlan"
  202. #define RT_WLAN_WORKQUEUE_THREAD_SIZE 2048
  203. #define RT_WLAN_WORKQUEUE_THREAD_PRIO 15
  204. #define RT_USING_BLK
  205. /* Partition Types */
  206. #define RT_BLK_PARTITION_DFS
  207. #define RT_BLK_PARTITION_EFI
  208. /* end of Partition Types */
  209. #define RT_USING_PIN
  210. #define RT_USING_KTIME
  211. /* end of Device Drivers */
  212. /* C/C++ and POSIX layer */
  213. /* ISO-ANSI C layer */
  214. /* Timezone and Daylight Saving Time */
  215. #define RT_LIBC_USING_LIGHT_TZ_DST
  216. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  217. #define RT_LIBC_TZ_DEFAULT_MIN 0
  218. #define RT_LIBC_TZ_DEFAULT_SEC 0
  219. /* end of Timezone and Daylight Saving Time */
  220. /* end of ISO-ANSI C layer */
  221. /* POSIX (Portable Operating System Interface) layer */
  222. #define RT_USING_POSIX_FS
  223. #define RT_USING_POSIX_DEVIO
  224. #define RT_USING_POSIX_STDIO
  225. #define RT_USING_POSIX_POLL
  226. #define RT_USING_POSIX_TERMIOS
  227. #define RT_USING_POSIX_DELAY
  228. #define RT_USING_POSIX_CLOCK
  229. #define RT_USING_POSIX_TIMER
  230. /* Interprocess Communication (IPC) */
  231. /* Socket is in the 'Network' category */
  232. /* end of Interprocess Communication (IPC) */
  233. /* end of POSIX (Portable Operating System Interface) layer */
  234. /* end of C/C++ and POSIX layer */
  235. /* Network */
  236. #define RT_USING_SAL
  237. #define SAL_INTERNET_CHECK
  238. #define SOCKET_TABLE_STEP_LEN 4
  239. /* Docking with protocol stacks */
  240. #define SAL_USING_LWIP
  241. /* end of Docking with protocol stacks */
  242. #define SAL_USING_POSIX
  243. #define RT_USING_NETDEV
  244. #define NETDEV_USING_IFCONFIG
  245. #define NETDEV_USING_NETSTAT
  246. #define NETDEV_USING_AUTO_DEFAULT
  247. #define NETDEV_USING_IPV6
  248. #define NETDEV_IPV4 1
  249. #define NETDEV_IPV6 1
  250. #define NETDEV_IPV6_SCOPES
  251. #define RT_USING_LWIP
  252. #define RT_USING_LWIP212
  253. #define RT_USING_LWIP_VER_NUM 0x20102
  254. #define RT_USING_LWIP_IPV6
  255. #define RT_LWIP_MEM_ALIGNMENT 4
  256. #define RT_LWIP_IGMP
  257. #define RT_LWIP_ICMP
  258. #define RT_LWIP_DNS
  259. #define RT_LWIP_DHCP
  260. #define IP_SOF_BROADCAST 1
  261. #define IP_SOF_BROADCAST_RECV 1
  262. /* Static IPv4 Address */
  263. #define RT_LWIP_IPADDR "192.168.1.30"
  264. #define RT_LWIP_GWADDR "192.168.1.1"
  265. #define RT_LWIP_MSKADDR "255.255.255.0"
  266. /* end of Static IPv4 Address */
  267. #define RT_LWIP_UDP
  268. #define RT_LWIP_TCP
  269. #define RT_LWIP_RAW
  270. #define RT_MEMP_NUM_NETCONN 8
  271. #define RT_LWIP_PBUF_NUM 16
  272. #define RT_LWIP_RAW_PCB_NUM 4
  273. #define RT_LWIP_UDP_PCB_NUM 4
  274. #define RT_LWIP_TCP_PCB_NUM 4
  275. #define RT_LWIP_TCP_SEG_NUM 40
  276. #define RT_LWIP_TCP_SND_BUF 8196
  277. #define RT_LWIP_TCP_WND 8196
  278. #define RT_LWIP_TCPTHREAD_PRIORITY 10
  279. #define RT_LWIP_TCPTHREAD_MBOX_SIZE 8
  280. #define RT_LWIP_TCPTHREAD_STACKSIZE 8192
  281. #define LWIP_NO_TX_THREAD
  282. #define RT_LWIP_ETHTHREAD_PRIORITY 12
  283. #define RT_LWIP_ETHTHREAD_STACKSIZE 8192
  284. #define RT_LWIP_ETHTHREAD_MBOX_SIZE 8
  285. #define LWIP_NETIF_STATUS_CALLBACK 1
  286. #define LWIP_NETIF_LINK_CALLBACK 1
  287. #define RT_LWIP_NETIF_NAMESIZE 6
  288. #define SO_REUSE 1
  289. #define LWIP_SO_RCVTIMEO 1
  290. #define LWIP_SO_SNDTIMEO 1
  291. #define LWIP_SO_RCVBUF 1
  292. #define LWIP_SO_LINGER 0
  293. #define RT_LWIP_NETIF_LOOPBACK
  294. #define LWIP_NETIF_LOOPBACK 1
  295. /* end of Network */
  296. /* Memory protection */
  297. /* end of Memory protection */
  298. /* Utilities */
  299. #define RT_USING_ULOG
  300. #define ULOG_OUTPUT_LVL_D
  301. #define ULOG_OUTPUT_LVL 7
  302. #define ULOG_ASSERT_ENABLE
  303. #define ULOG_LINE_BUF_SIZE 128
  304. /* log format */
  305. #define ULOG_USING_COLOR
  306. #define ULOG_OUTPUT_TIME
  307. #define ULOG_OUTPUT_LEVEL
  308. #define ULOG_OUTPUT_TAG
  309. /* end of log format */
  310. #define ULOG_BACKEND_USING_CONSOLE
  311. #define RT_USING_RESOURCE_ID
  312. #define RT_USING_ADT
  313. #define RT_USING_ADT_AVL
  314. #define RT_USING_ADT_BITMAP
  315. #define RT_USING_ADT_HASHMAP
  316. #define RT_USING_ADT_REF
  317. /* end of Utilities */
  318. /* Memory management */
  319. #define RT_PAGE_AFFINITY_BLOCK_SIZE 0x1000
  320. #define RT_PAGE_MAX_ORDER 11
  321. /* Debugging */
  322. /* end of Debugging */
  323. /* end of Memory management */
  324. #define RT_USING_LWP
  325. #define LWP_USING_RUNTIME
  326. #define RT_LWP_MAX_NR 30
  327. #define LWP_TASK_STACK_SIZE 16384
  328. #define RT_CH_MSG_MAX_NR 1024
  329. #define LWP_TID_MAX_NR 64
  330. #define LWP_ENABLE_ASID
  331. #define RT_LWP_SHM_MAX_NR 64
  332. #define RT_USING_LDSO
  333. #define LWP_USING_TERMINAL
  334. #define LWP_PTY_MAX_PARIS_LIMIT 64
  335. /* Using USB legacy version */
  336. #define RT_USING_USB
  337. #define RT_USING_USB_DEVICE
  338. #define RT_USBD_THREAD_STACK_SZ 4096
  339. #define USB_VENDOR_ID 0x0FFE
  340. #define USB_PRODUCT_ID 0x0001
  341. #define _RT_USB_DEVICE_WINUSB
  342. #define RT_USB_DEVICE_WINUSB
  343. #define RT_WINUSB_GUID "{6860DC3C-C05F-4807-8807-1CA861CC1D66}"
  344. /* end of Using USB legacy version */
  345. /* end of RT-Thread Components */
  346. /* RT-Thread Utestcases */
  347. /* end of RT-Thread Utestcases */
  348. /* RT-Thread online packages */
  349. /* IoT - internet of things */
  350. /* Wi-Fi */
  351. /* Marvell WiFi */
  352. /* end of Marvell WiFi */
  353. /* Wiced WiFi */
  354. /* end of Wiced WiFi */
  355. #define PKG_USING_RW007
  356. #define PKG_USING_RW007_LATEST_VERSION
  357. #define RW007_NOT_USE_EXAMPLE_DRIVERS
  358. #define RW007_SPI_MAX_HZ 30000000
  359. /* CYW43012 WiFi */
  360. /* end of CYW43012 WiFi */
  361. /* BL808 WiFi */
  362. /* end of BL808 WiFi */
  363. /* CYW43439 WiFi */
  364. /* end of CYW43439 WiFi */
  365. /* end of Wi-Fi */
  366. /* IoT Cloud */
  367. /* end of IoT Cloud */
  368. /* end of IoT - internet of things */
  369. /* security packages */
  370. /* end of security packages */
  371. /* language packages */
  372. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  373. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  374. /* XML: Extensible Markup Language */
  375. /* end of XML: Extensible Markup Language */
  376. /* end of language packages */
  377. /* multimedia packages */
  378. /* LVGL: powerful and easy-to-use embedded GUI library */
  379. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  380. /* u8g2: a monochrome graphic library */
  381. /* end of u8g2: a monochrome graphic library */
  382. /* end of multimedia packages */
  383. /* tools packages */
  384. /* end of tools packages */
  385. /* system packages */
  386. /* enhanced kernel services */
  387. /* end of enhanced kernel services */
  388. /* acceleration: Assembly language or algorithmic acceleration packages */
  389. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  390. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  391. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  392. /* Micrium: Micrium software products porting for RT-Thread */
  393. /* end of Micrium: Micrium software products porting for RT-Thread */
  394. /* end of system packages */
  395. /* peripheral libraries and drivers */
  396. /* HAL & SDK Drivers */
  397. /* STM32 HAL & SDK Drivers */
  398. /* end of STM32 HAL & SDK Drivers */
  399. /* Infineon HAL Packages */
  400. /* end of Infineon HAL Packages */
  401. /* Kendryte SDK */
  402. /* end of Kendryte SDK */
  403. /* WCH HAL & SDK Drivers */
  404. /* end of WCH HAL & SDK Drivers */
  405. /* AT32 HAL & SDK Drivers */
  406. /* end of AT32 HAL & SDK Drivers */
  407. /* HC32 DDL Drivers */
  408. /* end of HC32 DDL Drivers */
  409. /* NXP HAL & SDK Drivers */
  410. #define PKG_USING_NXP_IMX6UL_DRIVER
  411. #define PKG_USING_NXP_IMX6UL_DRIVER_LATEST_VERSION
  412. /* end of NXP HAL & SDK Drivers */
  413. /* NUVOTON Drivers */
  414. /* end of NUVOTON Drivers */
  415. /* GD32 Drivers */
  416. /* end of GD32 Drivers */
  417. /* end of HAL & SDK Drivers */
  418. /* sensors drivers */
  419. /* end of sensors drivers */
  420. /* touch drivers */
  421. /* end of touch drivers */
  422. /* end of peripheral libraries and drivers */
  423. /* AI packages */
  424. /* end of AI packages */
  425. /* Signal Processing and Control Algorithm Packages */
  426. /* end of Signal Processing and Control Algorithm Packages */
  427. /* miscellaneous packages */
  428. /* project laboratory */
  429. /* end of project laboratory */
  430. /* samples: kernel and components samples */
  431. /* end of samples: kernel and components samples */
  432. /* entertainment: terminal games and other interesting software packages */
  433. /* end of entertainment: terminal games and other interesting software packages */
  434. /* end of miscellaneous packages */
  435. /* Arduino libraries */
  436. /* Projects and Demos */
  437. /* end of Projects and Demos */
  438. /* Sensors */
  439. /* end of Sensors */
  440. /* Display */
  441. /* end of Display */
  442. /* Timing */
  443. /* end of Timing */
  444. /* Data Processing */
  445. /* end of Data Processing */
  446. /* Data Storage */
  447. /* Communication */
  448. /* end of Communication */
  449. /* Device Control */
  450. /* end of Device Control */
  451. /* Other */
  452. /* end of Other */
  453. /* Signal IO */
  454. /* end of Signal IO */
  455. /* Uncategorized */
  456. /* end of Arduino libraries */
  457. /* end of RT-Thread online packages */
  458. #define SOC_IMX6ULL
  459. #define CPU_MCIMX6Y2CVM05
  460. #define FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL 1
  461. #define FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL 1
  462. /* Platform Driver Configuration */
  463. /* Select UART Driver */
  464. #define BSP_USING_UART1
  465. /* end of Select UART Driver */
  466. /* Select SPI Driver */
  467. #define BSP_USING_SPI
  468. #define BSP_USING_SPI1
  469. #define BSP_USING_SPI2
  470. #define BSP_USING_SPI3
  471. #define BSP_USING_SPI4
  472. /* end of Select SPI Driver */
  473. /* Select I2C Driver */
  474. #define BSP_USING_I2C
  475. #define BSP_USING_I2C3
  476. #define I2C3_BAUD_RATE 400000
  477. #define BSP_USING_I2C4
  478. #define I2C4_BAUD_RATE 100000
  479. /* end of Select I2C Driver */
  480. /* Select LCD Driver */
  481. #define BSP_USING_LCD
  482. #define BSP_LCD_WIDTH 480
  483. #define BSP_LCD_HEIGHT 272
  484. #define BSP_LCD_VSW 2
  485. #define BSP_LCD_VBP 23
  486. #define BSP_LCD_VFP 22
  487. #define BSP_LCD_HSW 2
  488. #define BSP_LCD_HBP 46
  489. #define BSP_LCD_HFP 210
  490. #define BSP_LCD_PLL_DIV 8
  491. /* end of Select LCD Driver */
  492. /* Select SDHC Driver */
  493. #define RT_USING_SDIO1
  494. #define RT_USING_SDIO2
  495. /* end of Select SDHC Driver */
  496. /* Select RTC Driver */
  497. #define BSP_USING_ONCHIP_RTC
  498. /* end of Select RTC Driver */
  499. /* Select PWM Driver */
  500. #define BSP_USING_PWM1
  501. /* end of Select PWM Driver */
  502. /* Select ADC Driver */
  503. /* end of Select ADC Driver */
  504. /* Select WDT Driver */
  505. /* end of Select WDT Driver */
  506. /* Select ENET Driver */
  507. #define RT_USING_ENET1
  508. #define RT_USING_ENET2
  509. /* end of Select ENET Driver */
  510. /* Select Wifi Driver */
  511. #define RT_USING_WIFI_RW007
  512. #define RW007_DAFAULT_SSID "rt-thread"
  513. #define RW007_DAFAULT_PASSWARD "12345678"
  514. /* end of Select Wifi Driver */
  515. /* Select USB Driver */
  516. #define BSP_USING_USB_DEVICE
  517. /* end of Select USB Driver */
  518. /* end of Platform Driver Configuration */
  519. #endif