rtconfig.h 12 KB

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