rtconfig.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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 512
  15. #define RT_USING_TIMER_SOFT
  16. #define RT_TIMER_THREAD_PRIO 4
  17. #define RT_TIMER_THREAD_STACK_SIZE 512
  18. /* kservice optimization */
  19. /* end of kservice optimization */
  20. /* klibc optimization */
  21. /* end of klibc optimization */
  22. #define RT_USING_DEBUG
  23. #define RT_DEBUGING_ASSERT
  24. #define RT_DEBUGING_COLOR
  25. #define RT_DEBUGING_CONTEXT
  26. #define RT_USING_OVERFLOW_CHECK
  27. /* Inter-Thread communication */
  28. #define RT_USING_SEMAPHORE
  29. #define RT_USING_MUTEX
  30. #define RT_USING_EVENT
  31. #define RT_USING_MAILBOX
  32. #define RT_USING_MESSAGEQUEUE
  33. /* end of Inter-Thread communication */
  34. /* Memory Management */
  35. #define RT_USING_MEMPOOL
  36. #define RT_USING_SMALL_MEM
  37. #define RT_USING_SMALL_MEM_AS_HEAP
  38. #define RT_USING_HEAP
  39. /* end of Memory Management */
  40. #define RT_USING_DEVICE
  41. #define RT_USING_CONSOLE
  42. #define RT_CONSOLEBUF_SIZE 256
  43. #define RT_CONSOLE_DEVICE_NAME "uart0"
  44. #define RT_VER_NUM 0x50200
  45. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  46. /* end of RT-Thread Kernel */
  47. #define ARCH_ARM
  48. #define ARCH_ARM_CORTEX_M
  49. #define ARCH_ARM_CORTEX_M0
  50. /* RT-Thread Components */
  51. #define RT_USING_COMPONENTS_INIT
  52. #define RT_USING_USER_MAIN
  53. #define RT_MAIN_THREAD_STACK_SIZE 2048
  54. #define RT_MAIN_THREAD_PRIORITY 10
  55. #define RT_USING_MSH
  56. #define RT_USING_FINSH
  57. #define FINSH_USING_MSH
  58. #define FINSH_THREAD_NAME "tshell"
  59. #define FINSH_THREAD_PRIORITY 20
  60. #define FINSH_THREAD_STACK_SIZE 4096
  61. #define FINSH_USING_HISTORY
  62. #define FINSH_HISTORY_LINES 5
  63. #define FINSH_USING_SYMTAB
  64. #define FINSH_CMD_SIZE 80
  65. #define MSH_USING_BUILT_IN_COMMANDS
  66. #define FINSH_USING_DESCRIPTION
  67. #define FINSH_ARG_MAX 10
  68. #define FINSH_USING_OPTION_COMPLETION
  69. /* DFS: device virtual file system */
  70. #define RT_USING_DFS
  71. #define DFS_USING_POSIX
  72. #define DFS_USING_WORKDIR
  73. #define DFS_FD_MAX 16
  74. #define RT_USING_DFS_V1
  75. #define DFS_FILESYSTEMS_MAX 2
  76. #define DFS_FILESYSTEM_TYPES_MAX 2
  77. #define RT_USING_DFS_DEVFS
  78. /* end of DFS: device virtual file system */
  79. /* Device Drivers */
  80. #define RT_USING_DEVICE_IPC
  81. #define RT_UNAMED_PIPE_NUMBER 64
  82. #define RT_USING_SERIAL
  83. #define RT_USING_SERIAL_V1
  84. #define RT_SERIAL_USING_DMA
  85. #define RT_SERIAL_RB_BUFSZ 64
  86. #define RT_USING_ADC
  87. #define RT_USING_PWM
  88. #define RT_USING_PM
  89. #define PM_TICKLESS_THRESHOLD_TIME 2
  90. #define RT_USING_RTC
  91. #define RT_USING_WDT
  92. #define RT_USING_PIN
  93. #define RT_USING_HWTIMER
  94. /* end of Device Drivers */
  95. /* C/C++ and POSIX layer */
  96. /* ISO-ANSI C layer */
  97. /* Timezone and Daylight Saving Time */
  98. #define RT_LIBC_USING_LIGHT_TZ_DST
  99. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  100. #define RT_LIBC_TZ_DEFAULT_MIN 0
  101. #define RT_LIBC_TZ_DEFAULT_SEC 0
  102. /* end of Timezone and Daylight Saving Time */
  103. /* end of ISO-ANSI C layer */
  104. /* POSIX (Portable Operating System Interface) layer */
  105. /* Interprocess Communication (IPC) */
  106. /* Socket is in the 'Network' category */
  107. /* end of Interprocess Communication (IPC) */
  108. /* end of POSIX (Portable Operating System Interface) layer */
  109. /* end of C/C++ and POSIX layer */
  110. /* Network */
  111. /* end of Network */
  112. /* Memory protection */
  113. /* end of Memory protection */
  114. /* Utilities */
  115. #define RT_USING_UTEST
  116. #define UTEST_THR_STACK_SIZE 4096
  117. #define UTEST_THR_PRIORITY 20
  118. /* end of Utilities */
  119. /* Using USB legacy version */
  120. #define RT_USING_USB
  121. #define RT_USING_USB_DEVICE
  122. #define RT_USBD_THREAD_STACK_SZ 4096
  123. #define USB_VENDOR_ID 0x0FFE
  124. #define USB_PRODUCT_ID 0x0001
  125. #define RT_USB_DEVICE_COMPOSITE
  126. #define RT_USB_DEVICE_NONE
  127. #define RT_USB_DEVICE_HID
  128. #define RT_USB_DEVICE_HID_MOUSE
  129. /* end of Using USB legacy version */
  130. /* end of RT-Thread Components */
  131. /* RT-Thread Utestcases */
  132. #define RT_USING_UTESTCASES
  133. /* Utest Self Testcase */
  134. #define UTEST_SELF_PASS_TC
  135. /* end of Utest Self Testcase */
  136. /* Kernel Testcase */
  137. #define UTEST_SMALL_MEM_TC
  138. /* end of Kernel Testcase */
  139. /* CPP11 Testcase */
  140. /* end of CPP11 Testcase */
  141. /* Utest Serial Testcase */
  142. /* end of Utest Serial Testcase */
  143. /* Utest IPC Testcase */
  144. /* end of Utest IPC Testcase */
  145. /* RTT Posix Testcase */
  146. /* end of RTT Posix Testcase */
  147. /* Memory Management Subsytem Testcase */
  148. /* end of Memory Management Subsytem Testcase */
  149. /* Tmpfs Testcase */
  150. /* end of Tmpfs Testcase */
  151. /* SMP Testcase */
  152. /* end of SMP Testcase */
  153. /* end of RT-Thread Utestcases */
  154. /* RT-Thread online packages */
  155. /* IoT - internet of things */
  156. /* Wi-Fi */
  157. /* Marvell WiFi */
  158. /* end of Marvell WiFi */
  159. /* Wiced WiFi */
  160. /* end of Wiced WiFi */
  161. /* CYW43012 WiFi */
  162. /* end of CYW43012 WiFi */
  163. /* BL808 WiFi */
  164. /* end of BL808 WiFi */
  165. /* CYW43439 WiFi */
  166. /* end of CYW43439 WiFi */
  167. /* end of Wi-Fi */
  168. /* IoT Cloud */
  169. /* end of IoT Cloud */
  170. /* end of IoT - internet of things */
  171. /* security packages */
  172. /* end of security packages */
  173. /* language packages */
  174. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  175. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  176. /* XML: Extensible Markup Language */
  177. /* end of XML: Extensible Markup Language */
  178. /* end of language packages */
  179. /* multimedia packages */
  180. /* LVGL: powerful and easy-to-use embedded GUI library */
  181. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  182. /* u8g2: a monochrome graphic library */
  183. /* end of u8g2: a monochrome graphic library */
  184. /* end of multimedia packages */
  185. /* tools packages */
  186. /* end of tools packages */
  187. /* system packages */
  188. /* enhanced kernel services */
  189. /* end of enhanced kernel services */
  190. /* acceleration: Assembly language or algorithmic acceleration packages */
  191. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  192. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  193. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  194. /* Micrium: Micrium software products porting for RT-Thread */
  195. /* end of Micrium: Micrium software products porting for RT-Thread */
  196. /* end of system packages */
  197. /* peripheral libraries and drivers */
  198. /* HAL & SDK Drivers */
  199. /* STM32 HAL & SDK Drivers */
  200. /* end of STM32 HAL & SDK Drivers */
  201. /* Infineon HAL Packages */
  202. /* end of Infineon HAL Packages */
  203. /* Kendryte SDK */
  204. /* end of Kendryte SDK */
  205. /* end of HAL & SDK Drivers */
  206. /* sensors drivers */
  207. /* end of sensors drivers */
  208. /* touch drivers */
  209. /* end of touch drivers */
  210. /* end of peripheral libraries and drivers */
  211. /* AI packages */
  212. /* end of AI packages */
  213. /* Signal Processing and Control Algorithm Packages */
  214. /* end of Signal Processing and Control Algorithm Packages */
  215. /* miscellaneous packages */
  216. /* project laboratory */
  217. /* end of project laboratory */
  218. /* samples: kernel and components samples */
  219. /* end of samples: kernel and components samples */
  220. /* entertainment: terminal games and other interesting software packages */
  221. /* end of entertainment: terminal games and other interesting software packages */
  222. /* end of miscellaneous packages */
  223. /* Arduino libraries */
  224. /* Projects and Demos */
  225. /* end of Projects and Demos */
  226. /* Sensors */
  227. /* end of Sensors */
  228. /* Display */
  229. /* end of Display */
  230. /* Timing */
  231. /* end of Timing */
  232. /* Data Processing */
  233. /* end of Data Processing */
  234. /* Data Storage */
  235. /* Communication */
  236. /* end of Communication */
  237. /* Device Control */
  238. /* end of Device Control */
  239. /* Other */
  240. /* end of Other */
  241. /* Signal IO */
  242. /* end of Signal IO */
  243. /* Uncategorized */
  244. /* end of Arduino libraries */
  245. /* end of RT-Thread online packages */
  246. /* Hardware Drivers Config */
  247. /* On-chip Peripheral Drivers */
  248. #define SOC_SERIES_M032
  249. #define BSP_USE_STDDRIVER_SOURCE
  250. #define BSP_USING_PDMA
  251. #define NU_PDMA_MEMFUN_ACTOR_MAX 4
  252. #define NU_PDMA_SGTBL_POOL_SIZE 16
  253. #define BSP_USING_GPIO
  254. #define BSP_USING_CLK
  255. #define NU_CLK_INVOKE_WKTMR
  256. #define BSP_USING_RTC
  257. #define NU_RTC_SUPPORT_IO_RW
  258. #define NU_RTC_SUPPORT_MSH_CMD
  259. #define BSP_USING_ADC
  260. #define BSP_USING_ADC0
  261. #define BSP_USING_TMR
  262. #define BSP_USING_TIMER
  263. #define BSP_USING_TMR0
  264. #define BSP_USING_TIMER0
  265. #define BSP_USING_TMR1
  266. #define BSP_USING_TIMER1
  267. #define BSP_USING_TMR2
  268. #define BSP_USING_TIMER2
  269. #define BSP_USING_UART
  270. #define BSP_USING_UART0
  271. #define BSP_USING_UART1
  272. #define BSP_USING_UART1_TX_DMA
  273. #define BSP_USING_UART1_RX_DMA
  274. #define BSP_USING_UART2
  275. #define BSP_USING_UART3
  276. #define BSP_USING_UART4
  277. #define BSP_USING_UART5
  278. #define BSP_USING_UART6
  279. #define BSP_USING_UART7
  280. #define BSP_USING_WDT
  281. #define BSP_USING_USBD
  282. /* end of On-chip Peripheral Drivers */
  283. /* On-board Peripheral Drivers */
  284. #define BSP_USING_NULINKME
  285. /* end of On-board Peripheral Drivers */
  286. /* Board extended module drivers */
  287. /* end of Board extended module drivers */
  288. /* Nuvoton Packages Config */
  289. #define NU_PKG_USING_UTILS
  290. #define NU_PKG_USING_DEMO
  291. /* end of Nuvoton Packages Config */
  292. /* end of Hardware Drivers Config */
  293. #endif