platformio.ini 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [platformio]
  2. src_dir = ./
  3. ; include_dir = User
  4. build_dir = Build
  5. [env:genericSTM32F407IGT6]
  6. platform = ststm32
  7. board = genericSTM32F407IGT6
  8. board_build.cmsis.custom_config_header = yes
  9. ; 表示使用项目目录下的链接文件
  10. board_build.ldscript = Project/GCC/STM32F417IG_FLASH.ld
  11. extra_scripts = Project/GCC/scripts.py
  12. monitor_speed = 115200
  13. build_flags =
  14. -IUser
  15. -IUser/bsp/led
  16. -IUser/UCOS-CONFIG
  17. -ILibraries/CMSIS/Include
  18. -ILibraries/CMSIS/Device/ST/STM32F4xx/Include
  19. -ILibraries/STM32F4xx_StdPeriph_Driver/inc
  20. -ILibraries/STM32F4x7_ETH_Driver/inc
  21. -IMiddleWare/uCOS_II/uC-CPU
  22. -IMiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/GNU
  23. -IMiddleWare/uCOS_II/uC-LIB
  24. -IMiddleWare/uCOS_II/uCOS-BSP
  25. -IMiddleWare/uCOS_II/uCOS-II/Source
  26. -IMiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/GNU
  27. -IMiddleWare/lwip-2.0.2
  28. -IMiddleWare/lwip-2.0.2/src
  29. -IMiddleWare/lwip-2.0.2/src/include
  30. -IMiddleWare/lwip-2.0.2/src/include/lwip
  31. -IMiddleWare/lwip-2.0.2/src/include/lwip/apps
  32. -IMiddleWare/lwip-2.0.2/src/include/lwip/priv
  33. -IMiddleWare/lwip-2.0.2/src/include/lwip/prot
  34. -IMiddleWare/lwip-2.0.2/src/include/netif
  35. -IMiddleWare/lwip-2.0.2/src/include/posix
  36. -IMiddleWare/lwip-2.0.2/port/STM32F4x7
  37. -IMiddleWare/lwip-2.0.2/port/STM32F4x7/arch
  38. -IMiddleWare/lwip-2.0.2/port/STM32F4x7/UCOS-II
  39. ; 定义全局宏
  40. -D STM32F40_41xxx
  41. -D USE_STDPERIPH_DRIVER
  42. build_unflags =
  43. -DSTM32F407xx
  44. -DSTM32F4
  45. src_filter = +<User/> +<Project/GCC/> +<Libraries/STM32F4xx_StdPeriph_Driver/src/>
  46. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_qspi.c>
  47. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmpi2c.c>
  48. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fmc.c>
  49. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cec.c>
  50. -<Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spdifrx.c>
  51. +<Libraries/STM32F4x7_ETH_Driver/src/>
  52. +<MiddleWare/uCOS_II>
  53. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M0>
  54. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M3>
  55. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/RealView>
  56. -<MiddleWare/uCOS_II/uC-CPU/ARM-Cortex-M4/IAR>
  57. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M0>
  58. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M3>
  59. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/IAR>
  60. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  61. -<MiddleWare/uCOS_II/uC-LIB/Ports/ARM-Cortex-M4/RealView>
  62. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M0>
  63. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M3>
  64. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/IAR>
  65. -<MiddleWare/uCOS_II/uCOS-II/Ports/ARM-Cortex-M4/Generic/RealView>
  66. +<MiddleWare/lwip-2.0.2/src>
  67. -<MiddleWare/lwip-2.0.2/src/apps>
  68. +<MiddleWare/lwip-2.0.2/port/STM32F4x7/arch>
  69. +<MiddleWare/lwip-2.0.2/port/STM32F4x7/UCOS-II>
  70. -<User/app>
  71. debug_tool = stlink
  72. upload_protocol = stlink