rtconfig.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. /* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */
  4. /* RT-Thread Kernel */
  5. #define RT_NAME_MAX 8
  6. #define RT_ALIGN_SIZE 4
  7. #define RT_THREAD_PRIORITY_32
  8. #define RT_THREAD_PRIORITY_MAX 32
  9. #define RT_TICK_PER_SECOND 100
  10. #define RT_USING_OVERFLOW_CHECK
  11. #define RT_USING_HOOK
  12. #define RT_USING_IDLE_HOOK
  13. #define RT_IDLE_HOOK_LIST_SIZE 4
  14. #define IDLE_THREAD_STACK_SIZE 256
  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. #define RT_DEBUG
  21. /* Inter-Thread communication */
  22. #define RT_USING_SEMAPHORE
  23. #define RT_USING_MUTEX
  24. #define RT_USING_EVENT
  25. #define RT_USING_MAILBOX
  26. #define RT_USING_MESSAGEQUEUE
  27. /* end of Inter-Thread communication */
  28. /* Memory Management */
  29. #define RT_USING_MEMPOOL
  30. #define RT_USING_SMALL_MEM
  31. #define RT_USING_SMALL_MEM_AS_HEAP
  32. #define RT_USING_HEAP
  33. /* end of Memory Management */
  34. /* Kernel Device Object */
  35. #define RT_USING_DEVICE
  36. #define RT_USING_DEVICE_OPS
  37. #define RT_USING_CONSOLE
  38. #define RT_CONSOLEBUF_SIZE 128
  39. #define RT_CONSOLE_DEVICE_NAME "uart1"
  40. /* end of Kernel Device Object */
  41. #define RT_VER_NUM 0x40100
  42. /* end of RT-Thread Kernel */
  43. #define ARCH_ARM
  44. #define ARCH_ARM_CORTEX_M
  45. #define ARCH_ARM_CORTEX_M0
  46. /* RT-Thread Components */
  47. #define RT_USING_COMPONENTS_INIT
  48. #define RT_USING_USER_MAIN
  49. #define RT_MAIN_THREAD_STACK_SIZE 2048
  50. #define RT_MAIN_THREAD_PRIORITY 10
  51. /* C++ features */
  52. /* end of C++ features */
  53. /* Command shell */
  54. #define RT_USING_FINSH
  55. #define RT_USING_MSH
  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. /* end of Command shell */
  68. /* Device virtual file system */
  69. /* end of Device virtual file system */
  70. /* Device Drivers */
  71. #define RT_USING_DEVICE_IPC
  72. #define RT_USING_SERIAL
  73. #define RT_USING_SERIAL_V1
  74. #define RT_SERIAL_USING_DMA
  75. #define RT_SERIAL_RB_BUFSZ 64
  76. #define RT_USING_HWTIMER
  77. #define RT_USING_PIN
  78. #define RT_USING_ADC
  79. #define RT_USING_WDT
  80. /* Using USB */
  81. /* end of Using USB */
  82. /* end of Device Drivers */
  83. /* POSIX layer and C standard library */
  84. #define RT_USING_LIBC
  85. #define RT_LIBC_USING_TIME
  86. #define RT_LIBC_DEFAULT_TIMEZONE 8
  87. /* POSIX (Portable Operating System Interface) layer */
  88. /* Interprocess Communication (IPC) */
  89. /* Socket is in the 'Network' category */
  90. /* end of Interprocess Communication (IPC) */
  91. /* end of POSIX (Portable Operating System Interface) layer */
  92. /* end of POSIX layer and C standard library */
  93. /* Network */
  94. /* Socket abstraction layer */
  95. /* end of Socket abstraction layer */
  96. /* Network interface device */
  97. /* end of Network interface device */
  98. /* light weight TCP/IP stack */
  99. /* end of light weight TCP/IP stack */
  100. /* AT commands */
  101. /* end of AT commands */
  102. /* end of Network */
  103. /* VBUS(Virtual Software BUS) */
  104. /* end of VBUS(Virtual Software BUS) */
  105. /* Utilities */
  106. /* end of Utilities */
  107. /* end of RT-Thread Components */
  108. /* RT-Thread Utestcases */
  109. /* end of RT-Thread Utestcases */
  110. /* RT-Thread online packages */
  111. /* IoT - internet of things */
  112. /* Wi-Fi */
  113. /* Marvell WiFi */
  114. /* end of Marvell WiFi */
  115. /* Wiced WiFi */
  116. /* end of Wiced WiFi */
  117. /* end of Wi-Fi */
  118. /* IoT Cloud */
  119. /* end of IoT Cloud */
  120. /* end of IoT - internet of things */
  121. /* security packages */
  122. /* end of security packages */
  123. /* language packages */
  124. /* end of language packages */
  125. /* multimedia packages */
  126. /* LVGL: powerful and easy-to-use embedded GUI library */
  127. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  128. /* u8g2: a monochrome graphic library */
  129. /* end of u8g2: a monochrome graphic library */
  130. /* PainterEngine: A cross-platform graphics application framework written in C language */
  131. /* end of PainterEngine: A cross-platform graphics application framework written in C language */
  132. /* end of multimedia packages */
  133. /* tools packages */
  134. /* end of tools packages */
  135. /* system packages */
  136. /* enhanced kernel services */
  137. /* end of enhanced kernel services */
  138. /* acceleration: Assembly language or algorithmic acceleration packages */
  139. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  140. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  141. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  142. /* Micrium: Micrium software products porting for RT-Thread */
  143. /* end of Micrium: Micrium software products porting for RT-Thread */
  144. /* end of system packages */
  145. /* peripheral libraries and drivers */
  146. /* end of peripheral libraries and drivers */
  147. /* AI packages */
  148. /* end of AI packages */
  149. /* miscellaneous packages */
  150. /* samples: kernel and components samples */
  151. /* end of samples: kernel and components samples */
  152. /* entertainment: terminal games and other interesting software packages */
  153. /* end of entertainment: terminal games and other interesting software packages */
  154. /* end of miscellaneous packages */
  155. /* end of RT-Thread online packages */
  156. #define SOC_SERIES_ACM32F0
  157. /* Hardware Drivers Config */
  158. #define SOC_ACM32F070RBT7
  159. #define SOC_SRAM_START_ADDR 0x20000000
  160. #define SOC_SRAM_SIZE 0x20
  161. #define SOC_FLASH_START_ADDR 0x00000000
  162. #define SOC_FLASH_SIZE 0x80
  163. /* Onboard Peripheral Drivers */
  164. /* On-chip Peripheral Drivers */
  165. /* Hardware GPIO */
  166. #define BSP_USING_GPIO1
  167. #define BSP_USING_GPIO2
  168. /* end of Hardware GPIO */
  169. #define BSP_USING_ADC
  170. /* Hardware UART */
  171. #define BSP_USING_UART1
  172. #define BSP_USING_UART2
  173. #define BSP_UART2_RX_USING_DMA
  174. #define BSP_UART2_TX_USING_DMA
  175. #define BSP_USING_UART3
  176. #define BSP_UART3_RX_USING_DMA
  177. #define BSP_UART3_TX_USING_DMA
  178. /* end of Hardware UART */
  179. /* Hardware I2C */
  180. /* end of Hardware I2C */
  181. /* Hardware CAN */
  182. /* end of Hardware CAN */
  183. /* Hardware TIMER */
  184. #define BSP_USING_TIM1
  185. #define BSP_USING_TIM3
  186. #define BSP_USING_TIM6
  187. #define BSP_USING_TIM14
  188. #define BSP_USING_TIM15
  189. #define BSP_USING_TIM16
  190. #define BSP_USING_TIM17
  191. /* end of Hardware TIMER */
  192. /* Hardware WDT */
  193. #define BSP_USING_WDT
  194. #define BSP_USING_IWDT
  195. /* end of Hardware WDT */
  196. /* Hardware SPI */
  197. /* end of Hardware SPI */
  198. /* Hardware CRYPTO */
  199. /* end of Hardware CRYPTO */
  200. /* end of On-chip Peripheral Drivers */
  201. /* Board extended module Drivers */
  202. /* end of Hardware Drivers Config */
  203. #endif