rtconfig.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. #ifndef RT_CONFIG_H__
  2. #define RT_CONFIG_H__
  3. #define SOC_STM32F407VE
  4. #define BOARD_STM32F407_LCKFB
  5. /* RT-Thread Kernel */
  6. #define RT_NAME_MAX 8
  7. #define RT_CPUS_NR 1
  8. #define RT_ALIGN_SIZE 8
  9. #define RT_THREAD_PRIORITY_32
  10. #define RT_THREAD_PRIORITY_MAX 32
  11. #define RT_TICK_PER_SECOND 1000
  12. #define RT_USING_HOOK
  13. #define RT_HOOK_USING_FUNC_PTR
  14. #define RT_USING_IDLE_HOOK
  15. #define RT_IDLE_HOOK_LIST_SIZE 4
  16. #define IDLE_THREAD_STACK_SIZE 1024
  17. /* kservice optimization */
  18. /* end of kservice optimization */
  19. /* klibc optimization */
  20. /* end of klibc optimization */
  21. #define RT_USING_DEBUG
  22. #define RT_DEBUGING_ASSERT
  23. #define RT_DEBUGING_COLOR
  24. #define RT_DEBUGING_CONTEXT
  25. #define RT_USING_OVERFLOW_CHECK
  26. /* Inter-Thread communication */
  27. #define RT_USING_SEMAPHORE
  28. #define RT_USING_MUTEX
  29. #define RT_USING_EVENT
  30. #define RT_USING_MAILBOX
  31. #define RT_USING_MESSAGEQUEUE
  32. /* end of Inter-Thread communication */
  33. /* Memory Management */
  34. #define RT_USING_MEMPOOL
  35. #define RT_USING_SMALL_MEM
  36. #define RT_USING_SMALL_MEM_AS_HEAP
  37. #define RT_USING_HEAP
  38. /* end of Memory Management */
  39. #define RT_USING_DEVICE
  40. #define RT_USING_CONSOLE
  41. #define RT_CONSOLEBUF_SIZE 128
  42. #define RT_CONSOLE_DEVICE_NAME "uart1"
  43. #define RT_VER_NUM 0x50200
  44. #define RT_BACKTRACE_LEVEL_MAX_NR 32
  45. /* end of RT-Thread Kernel */
  46. #define RT_USING_HW_ATOMIC
  47. #define RT_USING_CPU_FFS
  48. #define ARCH_ARM
  49. #define ARCH_ARM_CORTEX_M
  50. #define ARCH_ARM_CORTEX_M4
  51. /* RT-Thread Components */
  52. #define RT_USING_COMPONENTS_INIT
  53. #define RT_USING_USER_MAIN
  54. #define RT_MAIN_THREAD_STACK_SIZE 2048
  55. #define RT_MAIN_THREAD_PRIORITY 10
  56. #define RT_USING_MSH
  57. #define RT_USING_FINSH
  58. #define FINSH_USING_MSH
  59. #define FINSH_THREAD_NAME "tshell"
  60. #define FINSH_THREAD_PRIORITY 20
  61. #define FINSH_THREAD_STACK_SIZE 4096
  62. #define FINSH_USING_HISTORY
  63. #define FINSH_HISTORY_LINES 5
  64. #define FINSH_USING_SYMTAB
  65. #define FINSH_CMD_SIZE 80
  66. #define MSH_USING_BUILT_IN_COMMANDS
  67. #define FINSH_USING_DESCRIPTION
  68. #define FINSH_ARG_MAX 10
  69. #define FINSH_USING_OPTION_COMPLETION
  70. /* DFS: device virtual file system */
  71. /* end of DFS: device virtual file system */
  72. /* Device Drivers */
  73. #define RT_USING_DEVICE_IPC
  74. #define RT_UNAMED_PIPE_NUMBER 64
  75. #define RT_USING_SERIAL
  76. #define RT_USING_SERIAL_V1
  77. #define RT_SERIAL_USING_DMA
  78. #define RT_SERIAL_RB_BUFSZ 64
  79. #define RT_USING_SPI
  80. #define RT_USING_SFUD
  81. #define RT_SFUD_USING_SFDP
  82. #define RT_SFUD_USING_FLASH_INFO_TABLE
  83. #define RT_SFUD_SPI_MAX_HZ 50000000
  84. #define RT_USING_PIN
  85. /* end of Device Drivers */
  86. /* C/C++ and POSIX layer */
  87. /* ISO-ANSI C layer */
  88. /* Timezone and Daylight Saving Time */
  89. #define RT_LIBC_USING_LIGHT_TZ_DST
  90. #define RT_LIBC_TZ_DEFAULT_HOUR 8
  91. #define RT_LIBC_TZ_DEFAULT_MIN 0
  92. #define RT_LIBC_TZ_DEFAULT_SEC 0
  93. /* end of Timezone and Daylight Saving Time */
  94. /* end of ISO-ANSI C layer */
  95. /* POSIX (Portable Operating System Interface) layer */
  96. /* Interprocess Communication (IPC) */
  97. /* Socket is in the 'Network' category */
  98. /* end of Interprocess Communication (IPC) */
  99. /* end of POSIX (Portable Operating System Interface) layer */
  100. /* end of C/C++ and POSIX layer */
  101. /* Network */
  102. /* end of Network */
  103. /* Memory protection */
  104. /* end of Memory protection */
  105. /* Utilities */
  106. /* end of Utilities */
  107. /* Using USB legacy version */
  108. /* end of Using USB legacy version */
  109. /* end of RT-Thread Components */
  110. /* RT-Thread Utestcases */
  111. /* end of RT-Thread Utestcases */
  112. /* RT-Thread online packages */
  113. /* IoT - internet of things */
  114. /* Wi-Fi */
  115. /* Marvell WiFi */
  116. /* end of Marvell WiFi */
  117. /* Wiced WiFi */
  118. /* end of Wiced WiFi */
  119. /* CYW43012 WiFi */
  120. /* end of CYW43012 WiFi */
  121. /* BL808 WiFi */
  122. /* end of BL808 WiFi */
  123. /* CYW43439 WiFi */
  124. /* end of CYW43439 WiFi */
  125. /* end of Wi-Fi */
  126. /* IoT Cloud */
  127. /* end of IoT Cloud */
  128. /* end of IoT - internet of things */
  129. /* security packages */
  130. /* end of security packages */
  131. /* language packages */
  132. /* JSON: JavaScript Object Notation, a lightweight data-interchange format */
  133. /* end of JSON: JavaScript Object Notation, a lightweight data-interchange format */
  134. /* XML: Extensible Markup Language */
  135. /* end of XML: Extensible Markup Language */
  136. /* end of language packages */
  137. /* multimedia packages */
  138. /* LVGL: powerful and easy-to-use embedded GUI library */
  139. /* end of LVGL: powerful and easy-to-use embedded GUI library */
  140. /* u8g2: a monochrome graphic library */
  141. /* end of u8g2: a monochrome graphic library */
  142. /* end of multimedia packages */
  143. /* tools packages */
  144. /* end of tools packages */
  145. /* system packages */
  146. /* enhanced kernel services */
  147. /* end of enhanced kernel services */
  148. /* acceleration: Assembly language or algorithmic acceleration packages */
  149. /* end of acceleration: Assembly language or algorithmic acceleration packages */
  150. /* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  151. /* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */
  152. /* Micrium: Micrium software products porting for RT-Thread */
  153. /* end of Micrium: Micrium software products porting for RT-Thread */
  154. /* end of system packages */
  155. /* peripheral libraries and drivers */
  156. /* HAL & SDK Drivers */
  157. /* STM32 HAL & SDK Drivers */
  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_STM32F4
  206. /* Hardware Drivers Config */
  207. /* Onboard Peripheral Drivers */
  208. /* end of Onboard Peripheral Drivers */
  209. /* On-chip Peripheral Drivers */
  210. #define BSP_USING_GPIO
  211. #define BSP_USING_UART
  212. #define BSP_USING_UART1
  213. #define BSP_USING_ON_CHIP_FLASH
  214. #define BSP_USING_SPI
  215. #define BSP_USING_SPI1
  216. /* end of On-chip Peripheral Drivers */
  217. /* end of Hardware Drivers Config */
  218. #endif