rtconfig.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  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_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_SMALL_MEM_AS_HEAP
  64. #define RT_USING_HEAP
  65. /* end of Memory Management */
  66. #define RT_USING_DEVICE
  67. #define RT_USING_CONSOLE
  68. #define RT_CONSOLEBUF_SIZE 256
  69. #define RT_CONSOLE_DEVICE_NAME "uart0"
  70. #define RT_VER_NUM 0x50201
  71. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  72. /* end of RT-Thread Kernel */
  73. #define RT_USING_HW_ATOMIC
  74. #define ARCH_ARM
  75. #define ARCH_ARM_CORTEX_M
  76. #define ARCH_ARM_CORTEX_M23
  77. /* RT-Thread Components */
  78. #define RT_USING_COMPONENTS_INIT
  79. #define RT_USING_USER_MAIN
  80. #define RT_MAIN_THREAD_STACK_SIZE 2048
  81. #define RT_MAIN_THREAD_PRIORITY 10
  82. #define RT_USING_MSH
  83. #define RT_USING_FINSH
  84. #define FINSH_USING_MSH
  85. #define FINSH_THREAD_NAME "tshell"
  86. #define FINSH_THREAD_PRIORITY 20
  87. #define FINSH_THREAD_STACK_SIZE 4096
  88. #define FINSH_USING_HISTORY
  89. #define FINSH_HISTORY_LINES 5
  90. #define FINSH_USING_SYMTAB
  91. #define FINSH_CMD_SIZE 80
  92. #define MSH_USING_BUILT_IN_COMMANDS
  93. #define FINSH_USING_DESCRIPTION
  94. #define FINSH_ARG_MAX 10
  95. #define FINSH_USING_OPTION_COMPLETION
  96. /* DFS: device virtual file system */
  97. #define RT_USING_DFS
  98. #define DFS_USING_POSIX
  99. #define DFS_USING_WORKDIR
  100. #define RT_USING_DFS_MNTTABLE
  101. #define DFS_FD_MAX 32
  102. #define RT_USING_DFS_V1
  103. #define DFS_FILESYSTEMS_MAX 4
  104. #define DFS_FILESYSTEM_TYPES_MAX 4
  105. #define RT_USING_DFS_ELMFAT
  106. /* elm-chan's FatFs, Generic FAT Filesystem Module */
  107. #define RT_DFS_ELM_CODE_PAGE 437
  108. #define RT_DFS_ELM_WORD_ACCESS
  109. #define RT_DFS_ELM_USE_LFN_3
  110. #define RT_DFS_ELM_USE_LFN 3
  111. #define RT_DFS_ELM_LFN_UNICODE_0
  112. #define RT_DFS_ELM_LFN_UNICODE 0
  113. #define RT_DFS_ELM_MAX_LFN 255
  114. #define RT_DFS_ELM_DRIVES 2
  115. #define RT_DFS_ELM_MAX_SECTOR_SIZE 4096
  116. #define RT_DFS_ELM_REENTRANT
  117. #define RT_DFS_ELM_MUTEX_TIMEOUT 3000
  118. /* end of elm-chan's FatFs, Generic FAT Filesystem Module */
  119. #define RT_USING_DFS_DEVFS
  120. /* end of DFS: device virtual file system */
  121. #define RT_USING_FAL
  122. #define FAL_USING_DEBUG
  123. #define FAL_PART_HAS_TABLE_CFG
  124. /* Device Drivers */
  125. #define RT_USING_DEVICE_IPC
  126. #define RT_UNAMED_PIPE_NUMBER 64
  127. #define RT_USING_SYSTEM_WORKQUEUE
  128. #define RT_SYSTEM_WORKQUEUE_STACKSIZE 2048
  129. #define RT_SYSTEM_WORKQUEUE_PRIORITY 23
  130. #define RT_USING_SERIAL
  131. #define RT_USING_SERIAL_V1
  132. #define RT_SERIAL_USING_DMA
  133. #define RT_SERIAL_RB_BUFSZ 2048
  134. #define RT_USING_CAN
  135. #define RT_CANMSG_BOX_SZ 16
  136. #define RT_CANSND_BOX_NUM 1
  137. #define RT_CANSND_MSG_TIMEOUT 100
  138. #define RT_CAN_NB_TX_FIFO_SIZE 256
  139. #define RT_USING_I2C
  140. #define RT_USING_I2C_BITOPS
  141. #define RT_USING_ADC
  142. #define RT_USING_PWM
  143. #define RT_USING_PM
  144. #define PM_TICKLESS_THRESHOLD_TIME 2
  145. #define RT_USING_RTC
  146. #define RT_USING_SDIO
  147. #define RT_SDIO_STACK_SIZE 2048
  148. #define RT_SDIO_THREAD_PRIORITY 15
  149. #define RT_MMCSD_STACK_SIZE 2048
  150. #define RT_MMCSD_THREAD_PRIORITY 22
  151. #define RT_MMCSD_MAX_PARTITION 16
  152. #define RT_SDIO_DEBUG
  153. #define RT_USING_SPI
  154. #define RT_USING_QSPI
  155. #define RT_USING_SFUD
  156. #define RT_SFUD_USING_SFDP
  157. #define RT_SFUD_USING_FLASH_INFO_TABLE
  158. #define RT_SFUD_USING_QSPI
  159. #define RT_SFUD_SPI_MAX_HZ 50000000
  160. #define RT_DEBUG_SFUD
  161. #define RT_USING_WDT
  162. #define RT_USING_AUDIO
  163. #define RT_AUDIO_REPLAY_MP_BLOCK_SIZE 4096
  164. #define RT_AUDIO_REPLAY_MP_BLOCK_COUNT 2
  165. #define RT_AUDIO_RECORD_PIPE_SIZE 2048
  166. #define RT_USING_SENSOR
  167. #define RT_USING_SENSOR_CMD
  168. #define RT_USING_HWCRYPTO
  169. #define RT_HWCRYPTO_DEFAULT_NAME "hwcryto"
  170. #define RT_HWCRYPTO_IV_MAX_SIZE 16
  171. #define RT_HWCRYPTO_KEYBIT_MAX_SIZE 256
  172. #define RT_HWCRYPTO_USING_AES
  173. #define RT_HWCRYPTO_USING_AES_ECB
  174. #define RT_HWCRYPTO_USING_AES_CBC
  175. #define RT_HWCRYPTO_USING_AES_CFB
  176. #define RT_HWCRYPTO_USING_AES_CTR
  177. #define RT_HWCRYPTO_USING_AES_OFB
  178. #define RT_HWCRYPTO_USING_DES
  179. #define RT_HWCRYPTO_USING_DES_ECB
  180. #define RT_HWCRYPTO_USING_DES_CBC
  181. #define RT_HWCRYPTO_USING_3DES
  182. #define RT_HWCRYPTO_USING_3DES_ECB
  183. #define RT_HWCRYPTO_USING_3DES_CBC
  184. #define RT_HWCRYPTO_USING_SHA1
  185. #define RT_HWCRYPTO_USING_SHA2
  186. #define RT_HWCRYPTO_USING_SHA2_224
  187. #define RT_HWCRYPTO_USING_SHA2_256
  188. #define RT_HWCRYPTO_USING_SHA2_384
  189. #define RT_HWCRYPTO_USING_SHA2_512
  190. #define RT_HWCRYPTO_USING_RNG
  191. #define RT_HWCRYPTO_USING_CRC
  192. #define RT_HWCRYPTO_USING_CRC_07
  193. #define RT_HWCRYPTO_USING_CRC_8005
  194. #define RT_HWCRYPTO_USING_CRC_1021
  195. #define RT_HWCRYPTO_USING_CRC_04C11DB7
  196. #define RT_USING_BLK
  197. /* Partition Types */
  198. #define RT_BLK_PARTITION_DFS
  199. #define RT_BLK_PARTITION_EFI
  200. /* end of Partition Types */
  201. #define RT_USING_PIN
  202. #define RT_USING_HWTIMER
  203. /* end of Device Drivers */
  204. /* C/C++ and POSIX layer */
  205. /* ISO-ANSI C layer */
  206. /* Timezone and Daylight Saving Time */
  207. #define RT_LIBC_USING_LIGHT_TZ_DST
  208. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  209. #define RT_LIBC_TZ_DEFAULT_MIN 0
  210. #define RT_LIBC_TZ_DEFAULT_SEC 0
  211. /* end of Timezone and Daylight Saving Time */
  212. /* end of ISO-ANSI C layer */
  213. /* POSIX (Portable Operating System Interface) layer */
  214. #define RT_USING_POSIX_FS
  215. #define RT_USING_POSIX_DEVIO
  216. #define RT_USING_POSIX_POLL
  217. #define RT_USING_POSIX_SELECT
  218. /* Interprocess Communication (IPC) */
  219. /* Socket is in the 'Network' category */
  220. /* end of Interprocess Communication (IPC) */
  221. /* end of POSIX (Portable Operating System Interface) layer */
  222. /* end of C/C++ and POSIX layer */
  223. /* Network */
  224. #define RT_USING_SAL
  225. #define SAL_INTERNET_CHECK
  226. #define SOCKET_TABLE_STEP_LEN 4
  227. /* Docking with protocol stacks */
  228. #define SAL_USING_AT
  229. /* end of Docking with protocol stacks */
  230. #define SAL_USING_POSIX
  231. #define RT_USING_NETDEV
  232. #define NETDEV_USING_IFCONFIG
  233. #define NETDEV_USING_PING
  234. #define NETDEV_USING_NETSTAT
  235. #define NETDEV_USING_AUTO_DEFAULT
  236. #define NETDEV_IPV4 1
  237. #define NETDEV_IPV6 0
  238. #define RT_USING_AT
  239. #define AT_USING_CLIENT
  240. #define AT_CLIENT_NUM_MAX 1
  241. #define AT_USING_SOCKET
  242. #define AT_USING_CLI
  243. #define AT_SW_VERSION_NUM 0x10301
  244. /* end of Network */
  245. /* Memory protection */
  246. /* end of Memory protection */
  247. /* Utilities */
  248. #define RT_USING_UTEST
  249. #define UTEST_THR_STACK_SIZE 4096
  250. #define UTEST_THR_PRIORITY 20
  251. #define RT_UTEST_MAX_OPTIONS 64
  252. /* end of Utilities */
  253. /* Using USB legacy version */
  254. #define RT_USING_USB
  255. #define RT_USING_USB_HOST
  256. #define RT_USBH_MSTORAGE
  257. #define UDISK_MOUNTPOINT "/"
  258. #define RT_USING_USB_DEVICE
  259. #define RT_USBD_THREAD_STACK_SZ 4096
  260. #define USB_VENDOR_ID 0x0FFE
  261. #define USB_PRODUCT_ID 0x0001
  262. #define _RT_USB_DEVICE_HID
  263. #define RT_USB_DEVICE_HID
  264. #define RT_USB_DEVICE_HID_MOUSE
  265. /* end of Using USB legacy version */
  266. /* end of RT-Thread Components */
  267. /* RT-Thread Utestcases */
  268. /* end of RT-Thread Utestcases */
  269. /* RT-Thread online packages */
  270. /* IoT - internet of things */
  271. /* Wi-Fi */
  272. /* Marvell WiFi */
  273. /* end of Marvell WiFi */
  274. /* Wiced WiFi */
  275. /* end of Wiced WiFi */
  276. /* CYW43012 WiFi */
  277. /* end of CYW43012 WiFi */
  278. /* BL808 WiFi */
  279. /* end of BL808 WiFi */
  280. /* CYW43439 WiFi */
  281. /* end of CYW43439 WiFi */
  282. /* end of Wi-Fi */
  283. #define PKG_USING_AT_DEVICE
  284. #define AT_DEVICE_USING_ESP8266
  285. #define AT_DEVICE_ESP8266_INIT_ASYN
  286. #define AT_DEVICE_ESP8266_SOCKET
  287. #define AT_DEVICE_ESP8266_SAMPLE
  288. #define ESP8266_SAMPLE_WIFI_SSID "NT_ZY_BUFFALO"
  289. #define ESP8266_SAMPLE_WIFI_PASSWORD "12345678"
  290. #define ESP8266_SAMPLE_CLIENT_NAME "uart4"
  291. #define ESP8266_SAMPLE_RECV_BUFF_LEN 2048
  292. #define PKG_USING_AT_DEVICE_LATEST_VERSION
  293. #define PKG_AT_DEVICE_VER_NUM 0x99999
  294. /* IoT Cloud */
  295. /* end of IoT Cloud */
  296. /* end of IoT - internet of things */
  297. /* security packages */
  298. /* end of security packages */
  299. /* language packages */
  300. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  301. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  302. /* XML: Extensible Markup Language */
  303. /* end of XML: Extensible Markup Language */
  304. /* end of language packages */
  305. /* multimedia packages */
  306. /* LVGL: powerful and easy-to-use embedded GUI library */
  307. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  308. /* u8g2: a monochrome graphic library */
  309. /* end of u8g2: a monochrome graphic library */
  310. /* end of multimedia packages */
  311. /* tools packages */
  312. /* end of tools packages */
  313. /* system packages */
  314. /* enhanced kernel services */
  315. /* end of enhanced kernel services */
  316. /* acceleration: Assembly language or algorithmic acceleration packages */
  317. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  318. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  319. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  320. /* Micrium: Micrium software products porting for RT-Thread */
  321. /* end of Micrium: Micrium software products porting for RT-Thread */
  322. /* end of system packages */
  323. /* peripheral libraries and drivers */
  324. /* HAL & SDK Drivers */
  325. /* STM32 HAL & SDK Drivers */
  326. /* end of STM32 HAL & SDK Drivers */
  327. /* Infineon HAL Packages */
  328. /* end of Infineon HAL Packages */
  329. /* Kendryte SDK */
  330. /* end of Kendryte SDK */
  331. /* WCH HAL & SDK Drivers */
  332. /* end of WCH HAL & SDK Drivers */
  333. /* AT32 HAL & SDK Drivers */
  334. /* end of AT32 HAL & SDK Drivers */
  335. /* HC32 DDL Drivers */
  336. /* end of HC32 DDL Drivers */
  337. /* NXP HAL & SDK Drivers */
  338. /* end of NXP HAL & SDK Drivers */
  339. /* NUVOTON Drivers */
  340. #define PKG_USING_NUVOTON_CMSIS_DRIVER
  341. #define PKG_USING_NUVOTON_CMSIS_DRIVER_LATEST_VERSION
  342. #define PKG_USING_NUVOTON_SERIES_DRIVER
  343. #define PKG_USING_NUVOTON_SERIES_DRIVER_LATEST_VERSION
  344. /* end of NUVOTON Drivers */
  345. /* GD32 Drivers */
  346. /* end of GD32 Drivers */
  347. /* end of HAL & SDK Drivers */
  348. /* sensors drivers */
  349. /* end of sensors drivers */
  350. /* touch drivers */
  351. /* end of touch drivers */
  352. /* end of peripheral libraries and drivers */
  353. /* AI packages */
  354. /* end of AI packages */
  355. /* Signal Processing and Control Algorithm Packages */
  356. /* end of Signal Processing and Control Algorithm Packages */
  357. /* miscellaneous packages */
  358. /* project laboratory */
  359. /* end of project laboratory */
  360. /* samples: kernel and components samples */
  361. /* end of samples: kernel and components samples */
  362. /* entertainment: terminal games and other interesting software packages */
  363. /* end of entertainment: terminal games and other interesting software packages */
  364. /* end of miscellaneous packages */
  365. /* Arduino libraries */
  366. /* Projects and Demos */
  367. /* end of Projects and Demos */
  368. /* Sensors */
  369. /* end of Sensors */
  370. /* Display */
  371. /* end of Display */
  372. /* Timing */
  373. /* end of Timing */
  374. /* Data Processing */
  375. /* end of Data Processing */
  376. /* Data Storage */
  377. /* Communication */
  378. /* end of Communication */
  379. /* Device Control */
  380. /* end of Device Control */
  381. /* Other */
  382. /* end of Other */
  383. /* Signal IO */
  384. /* end of Signal IO */
  385. /* Uncategorized */
  386. /* end of Arduino libraries */
  387. /* end of RT-Thread online packages */
  388. /* Hardware Drivers Config */
  389. /* On-chip Peripheral Drivers */
  390. #define SOC_SERIES_M2354
  391. #define BSP_USE_STDDRIVER_SOURCE
  392. #define BSP_USING_PDMA
  393. #define NU_PDMA_MEMFUN_ACTOR_MAX 2
  394. #define NU_PDMA_SGTBL_POOL_SIZE 16
  395. #define BSP_USING_FMC
  396. #define BSP_USING_GPIO
  397. #define BSP_USING_CLK
  398. #define NU_CLK_INVOKE_WKTMR
  399. #define BSP_USING_RTC
  400. #define NU_RTC_SUPPORT_MSH_CMD
  401. #define BSP_USING_EADC
  402. #define BSP_USING_EADC0
  403. #define BSP_USING_TMR
  404. #define BSP_USING_UART
  405. #define BSP_USING_UART0
  406. #define BSP_USING_UART1
  407. #define BSP_USING_UART4
  408. #define BSP_USING_UART4_TX_DMA
  409. #define BSP_USING_UART4_RX_DMA
  410. #define BSP_USING_I2C
  411. #define BSP_USING_I2C1
  412. #define BSP_USING_SDH
  413. #define BSP_USING_SDH0
  414. #define BSP_USING_SPI
  415. #define BSP_USING_SPI0
  416. #define BSP_USING_SPI1
  417. #define BSP_USING_SPI2_NONE
  418. #define BSP_USING_SPI3_NONE
  419. #define BSP_USING_CRYPTO
  420. #define BSP_USING_TRNG
  421. #define BSP_USING_CRC
  422. #define NU_CRC_USE_PDMA
  423. #define BSP_USING_WDT
  424. #define BSP_USING_SLCD
  425. #define BSP_USING_USBD
  426. #define BSP_USING_USBH
  427. #define NU_USBHOST_HUB_POLLING_INTERVAL 100
  428. #define BSP_USING_OTG
  429. /* end of On-chip Peripheral Drivers */
  430. /* On-board Peripheral Drivers */
  431. #define BSP_USING_NULINKME
  432. #define BOARD_USING_ESP8266
  433. #define BOARD_USING_STORAGE_SDCARD
  434. #define BOARD_USING_OTG
  435. /* end of On-board Peripheral Drivers */
  436. /* Board extended module drivers */
  437. #define BOARD_USING_SEGMENT_LCD
  438. /* end of Board extended module drivers */
  439. /* Nuvoton Packages Config */
  440. #define NU_PKG_USING_UTILS
  441. #define NU_PKG_USING_DEMO
  442. /* end of Nuvoton Packages Config */
  443. /* end of Hardware Drivers Config */
  444. #endif