rtconfig.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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 1000
  10. #define RT_USING_OVERFLOW_CHECK
  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 1024
  16. /* kservice optimization */
  17. /* end of kservice optimization */
  18. #define RT_DEBUG
  19. #define RT_DEBUG_COLOR
  20. /* Inter-Thread communication */
  21. #define RT_USING_SEMAPHORE
  22. #define RT_USING_MUTEX
  23. #define RT_USING_EVENT
  24. #define RT_USING_MAILBOX
  25. #define RT_USING_MESSAGEQUEUE
  26. /* end of Inter-Thread communication */
  27. /* Memory Management */
  28. #define RT_USING_MEMPOOL
  29. #define RT_USING_SMALL_MEM
  30. #define RT_USING_SMALL_MEM_AS_HEAP
  31. #define RT_USING_HEAP
  32. /* end of Memory Management */
  33. /* Kernel Device Object */
  34. #define RT_USING_DEVICE
  35. #define RT_USING_CONSOLE
  36. #define RT_CONSOLEBUF_SIZE 128
  37. #define RT_CONSOLE_DEVICE_NAME "uart1"
  38. /* end of Kernel Device Object */
  39. #define RT_VER_NUM 0x40101
  40. /* end of RT-Thread Kernel */
  41. #define ARCH_ARM
  42. #define RT_USING_CPU_FFS
  43. #define ARCH_ARM_CORTEX_M
  44. #define ARCH_ARM_CORTEX_M4
  45. /* RT-Thread Components */
  46. #define RT_USING_COMPONENTS_INIT
  47. #define RT_USING_USER_MAIN
  48. #define RT_MAIN_THREAD_STACK_SIZE 2048
  49. #define RT_MAIN_THREAD_PRIORITY 10
  50. #define RT_USING_MSH
  51. #define RT_USING_FINSH
  52. #define FINSH_USING_MSH
  53. #define FINSH_THREAD_NAME "tshell"
  54. #define FINSH_THREAD_PRIORITY 20
  55. #define FINSH_THREAD_STACK_SIZE 4096
  56. #define FINSH_USING_HISTORY
  57. #define FINSH_HISTORY_LINES 5
  58. #define FINSH_USING_SYMTAB
  59. #define FINSH_CMD_SIZE 80
  60. #define MSH_USING_BUILT_IN_COMMANDS
  61. #define FINSH_USING_DESCRIPTION
  62. #define FINSH_ARG_MAX 10
  63. /* Device Drivers */
  64. #define RT_USING_DEVICE_IPC
  65. #define RT_USING_SERIAL
  66. #define RT_USING_SERIAL_V1
  67. #define RT_SERIAL_USING_DMA
  68. #define RT_SERIAL_RB_BUFSZ 64
  69. #define RT_USING_I2C
  70. #define RT_USING_I2C_BITOPS
  71. #define RT_USING_PIN
  72. #define RT_USING_SENSOR
  73. #define RT_USING_SENSOR_CMD
  74. /* Using USB */
  75. #define RT_USING_USB
  76. #define RT_USING_USB_DEVICE
  77. #define RT_USBD_THREAD_STACK_SZ 4096
  78. #define USB_VENDOR_ID 0x0FFE
  79. #define USB_PRODUCT_ID 0x0001
  80. #define _RT_USB_DEVICE_HID
  81. #define RT_USB_DEVICE_HID
  82. #define RT_USB_DEVICE_HID_MOUSE
  83. /* end of Using USB */
  84. /* end of Device Drivers */
  85. /* C/C++ and POSIX layer */
  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 C/C++ and POSIX layer */
  93. /* Network */
  94. /* end of Network */
  95. /* Utilities */
  96. /* end of Utilities */
  97. /* end of RT-Thread Components */
  98. /* RT-Thread online packages */
  99. /* IoT - internet of things */
  100. /* Wi-Fi */
  101. /* Marvell WiFi */
  102. /* end of Marvell WiFi */
  103. /* Wiced WiFi */
  104. /* end of Wiced WiFi */
  105. /* end of Wi-Fi */
  106. /* IoT Cloud */
  107. /* end of IoT Cloud */
  108. /* end of IoT - internet of things */
  109. /* security packages */
  110. /* end of security packages */
  111. /* language packages */
  112. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  113. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  114. /* XML: Extensible Markup Language */
  115. /* end of XML: Extensible Markup Language */
  116. /* end of language packages */
  117. /* multimedia packages */
  118. /* LVGL: powerful and easy-to-use embedded GUI library */
  119. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  120. /* u8g2: a monochrome graphic library */
  121. /* end of u8g2: a monochrome graphic library */
  122. /* end of multimedia packages */
  123. /* tools packages */
  124. /* end of tools packages */
  125. /* system packages */
  126. /* enhanced kernel services */
  127. /* end of enhanced kernel services */
  128. /* acceleration: Assembly language or algorithmic acceleration packages */
  129. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  130. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  131. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  132. /* Micrium: Micrium software products porting for RT-Thread */
  133. /* end of Micrium: Micrium software products porting for RT-Thread */
  134. /* end of system packages */
  135. /* peripheral libraries and drivers */
  136. /* sensors drivers */
  137. #define PKG_USING_ICM20608
  138. #define PKG_USING_ICM20608_V100
  139. /* end of sensors drivers */
  140. /* touch drivers */
  141. /* end of touch drivers */
  142. /* Kendryte SDK */
  143. /* end of Kendryte SDK */
  144. /* end of peripheral libraries and drivers */
  145. /* AI packages */
  146. /* end of AI packages */
  147. /* Signal Processing and Control Algorithm Packages */
  148. /* end of Signal Processing and Control Algorithm Packages */
  149. /* miscellaneous packages */
  150. /* project laboratory */
  151. /* end of project laboratory */
  152. /* samples: kernel and components samples */
  153. /* end of samples: kernel and components samples */
  154. /* entertainment: terminal games and other interesting software packages */
  155. /* end of entertainment: terminal games and other interesting software packages */
  156. /* end of miscellaneous packages */
  157. /* Arduino libraries */
  158. /* Projects */
  159. /* end of Projects */
  160. /* Sensors */
  161. /* end of Sensors */
  162. /* Display */
  163. /* end of Display */
  164. /* Timing */
  165. /* end of Timing */
  166. /* Data Processing */
  167. /* end of Data Processing */
  168. /* Data Storage */
  169. /* Communication */
  170. /* end of Communication */
  171. /* Device Control */
  172. /* end of Device Control */
  173. /* Other */
  174. /* end of Other */
  175. /* Signal IO */
  176. /* end of Signal IO */
  177. /* Uncategorized */
  178. /* end of Arduino libraries */
  179. /* end of RT-Thread online packages */
  180. #define SOC_FAMILY_STM32
  181. #define SOC_SERIES_STM32F4
  182. /* Hardware Drivers Config */
  183. #define SOC_STM32F407ZG
  184. #define BOARD_STM32F407_ATK_EXPLORER
  185. /* Onboard Peripheral Drivers */
  186. #define BSP_USING_ICM20608
  187. #define BSP_USING_USB_MOUSE
  188. /* end of Onboard Peripheral Drivers */
  189. /* On-chip Peripheral Drivers */
  190. #define BSP_USING_GPIO
  191. #define BSP_USING_UART
  192. #define BSP_USING_UART1
  193. #define BSP_USING_I2C
  194. #define BSP_USING_I2C2
  195. #define BSP_I2C2_SCL_PIN 81
  196. #define BSP_I2C2_SDA_PIN 80
  197. #define BSP_USING_USBD
  198. /* end of On-chip Peripheral Drivers */
  199. /* Board extended module Drivers */
  200. /* end of Board extended module Drivers */
  201. /* end of Hardware Drivers Config */
  202. #endif