rtconfig.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32L431RC
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 8
  6. #define RT_CPUS_NR 1
  7. #define RT_ALIGN_SIZE 8
  8. #define RT_THREAD_PRIORITY_32
  9. #define RT_THREAD_PRIORITY_MAX 32
  10. #define RT_TICK_PER_SECOND 1000
  11. #define RT_USING_HOOK
  12. #define RT_HOOK_USING_FUNC_PTR
  13. #define RT_USING_IDLE_HOOK
  14. #define RT_IDLE_HOOK_LIST_SIZE 4
  15. #define IDLE_THREAD_STACK_SIZE 256
  16. /* kservice optimization */
  17. /* end of kservice optimization */
  18. /* klibc optimization */
  19. /* end of klibc optimization */
  20. #define RT_USING_DEBUG
  21. #define RT_DEBUGING_ASSERT
  22. #define RT_DEBUGING_COLOR
  23. #define RT_DEBUGING_CONTEXT
  24. #define RT_USING_OVERFLOW_CHECK
  25. /* Inter-Thread communication */
  26. #define RT_USING_SEMAPHORE
  27. #define RT_USING_MUTEX
  28. #define RT_USING_EVENT
  29. #define RT_USING_MAILBOX
  30. #define RT_USING_MESSAGEQUEUE
  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 "uart1"
  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 RT_USING_CPU_FFS
  47. #define ARCH_ARM
  48. #define ARCH_ARM_CORTEX_M
  49. #define ARCH_ARM_CORTEX_M4
  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. /* end of DFS: device virtual file system */
  71. /* Device Drivers */
  72. #define RT_USING_DEVICE_IPC
  73. #define RT_UNAMED_PIPE_NUMBER 64
  74. #define RT_USING_SERIAL
  75. #define RT_USING_SERIAL_V1
  76. #define RT_SERIAL_USING_DMA
  77. #define RT_SERIAL_RB_BUFSZ 64
  78. #define RT_USING_PIN
  79. /* end of Device Drivers */
  80. /* C/C++ and POSIX layer */
  81. /* ISO-ANSI C layer */
  82. /* Timezone and Daylight Saving Time */
  83. #define RT_LIBC_USING_LIGHT_TZ_DST
  84. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  85. #define RT_LIBC_TZ_DEFAULT_MIN 0
  86. #define RT_LIBC_TZ_DEFAULT_SEC 0
  87. /* end of Timezone and Daylight Saving Time */
  88. /* end of ISO-ANSI C layer */
  89. /* POSIX (Portable Operating System Interface) layer */
  90. /* Interprocess Communication (IPC) */
  91. /* Socket is in the 'Network' category */
  92. /* end of Interprocess Communication (IPC) */
  93. /* end of POSIX (Portable Operating System Interface) layer */
  94. /* end of C/C++ and POSIX layer */
  95. /* Network */
  96. /* end of Network */
  97. /* Memory protection */
  98. /* end of Memory protection */
  99. /* Utilities */
  100. /* end of Utilities */
  101. /* Using USB legacy version */
  102. /* end of Using USB legacy version */
  103. /* end of RT-Thread Components */
  104. /* RT-Thread Utestcases */
  105. /* end of RT-Thread Utestcases */
  106. /* RT-Thread online packages */
  107. /* IoT - internet of things */
  108. /* Wi-Fi */
  109. /* Marvell WiFi */
  110. /* end of Marvell WiFi */
  111. /* Wiced WiFi */
  112. /* end of Wiced WiFi */
  113. /* CYW43012 WiFi */
  114. /* end of CYW43012 WiFi */
  115. /* BL808 WiFi */
  116. /* end of BL808 WiFi */
  117. /* CYW43439 WiFi */
  118. /* end of CYW43439 WiFi */
  119. /* end of Wi-Fi */
  120. /* IoT Cloud */
  121. /* end of IoT Cloud */
  122. /* end of IoT - internet of things */
  123. /* security packages */
  124. /* end of security packages */
  125. /* language packages */
  126. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  127. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  128. /* XML: Extensible Markup Language */
  129. /* end of XML: Extensible Markup Language */
  130. /* end of language packages */
  131. /* multimedia packages */
  132. /* LVGL: powerful and easy-to-use embedded GUI library */
  133. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  134. /* u8g2: a monochrome graphic library */
  135. /* end of u8g2: a monochrome graphic library */
  136. /* end of multimedia packages */
  137. /* tools packages */
  138. /* end of tools packages */
  139. /* system packages */
  140. /* enhanced kernel services */
  141. /* end of enhanced kernel services */
  142. /* acceleration: Assembly language or algorithmic acceleration packages */
  143. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  144. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  145. #define PKG_USING_CMSIS_CORE
  146. #define PKG_USING_CMSIS_CORE_LATEST_VERSION
  147. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  148. /* Micrium: Micrium software products porting for RT-Thread */
  149. /* end of Micrium: Micrium software products porting for RT-Thread */
  150. /* end of system packages */
  151. /* peripheral libraries and drivers */
  152. /* HAL & SDK Drivers */
  153. /* STM32 HAL & SDK Drivers */
  154. #define PKG_USING_STM32L4_HAL_DRIVER
  155. #define PKG_USING_STM32L4_HAL_DRIVER_LATEST_VERSION
  156. #define PKG_USING_STM32L4_CMSIS_DRIVER
  157. #define PKG_USING_STM32L4_CMSIS_DRIVER_LATEST_VERSION
  158. /* end of STM32 HAL & SDK Drivers */
  159. /* Infineon HAL Packages */
  160. /* end of Infineon HAL Packages */
  161. /* Kendryte SDK */
  162. /* end of Kendryte SDK */
  163. /* end of HAL & SDK Drivers */
  164. /* sensors drivers */
  165. /* end of sensors drivers */
  166. /* touch drivers */
  167. /* end of touch drivers */
  168. /* end of peripheral libraries and drivers */
  169. /* AI packages */
  170. /* end of AI packages */
  171. /* Signal Processing and Control Algorithm Packages */
  172. /* end of Signal Processing and Control Algorithm Packages */
  173. /* miscellaneous packages */
  174. /* project laboratory */
  175. /* end of project laboratory */
  176. /* samples: kernel and components samples */
  177. /* end of samples: kernel and components samples */
  178. /* entertainment: terminal games and other interesting software packages */
  179. /* end of entertainment: terminal games and other interesting software packages */
  180. /* end of miscellaneous packages */
  181. /* Arduino libraries */
  182. /* Projects and Demos */
  183. /* end of Projects and Demos */
  184. /* Sensors */
  185. /* end of Sensors */
  186. /* Display */
  187. /* end of Display */
  188. /* Timing */
  189. /* end of Timing */
  190. /* Data Processing */
  191. /* end of Data Processing */
  192. /* Data Storage */
  193. /* Communication */
  194. /* end of Communication */
  195. /* Device Control */
  196. /* end of Device Control */
  197. /* Other */
  198. /* end of Other */
  199. /* Signal IO */
  200. /* end of Signal IO */
  201. /* Uncategorized */
  202. /* end of Arduino libraries */
  203. /* end of RT-Thread online packages */
  204. #define SOC_FAMILY_STM32
  205. #define SOC_SERIES_STM32L4
  206. /* Hardware Drivers Config */
  207. /* Onboard Peripheral Drivers */
  208. /* On-chip Peripheral Drivers */
  209. #define BSP_USING_GPIO
  210. #define BSP_USING_UART
  211. #define BSP_USING_UART2
  212. /* end of On-chip Peripheral Drivers */
  213. /* Board extended module Drivers */
  214. /* end of Hardware Drivers Config */
  215. #endif