-
Notifications
You must be signed in to change notification settings - Fork 14
/
platformio.tpl
121 lines (113 loc) · 3.03 KB
/
platformio.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#
# Template for Web Builder, STM32H7xx
#
[platformio]
include_dir = Inc
src_dir = Src
[common]
build_flags =
-I .
-I boards
-D L1_CACHE_ENABLE=1
-D OVERRIDE_MY_MACHINE
-I FATFS/Target
-I FATFS/App
-I Middlewares/Third_Party/FatFs/src
-Wl,-u,_printf_float
-Wl,-u,_scanf_float
lib_deps =
boards
bluetooth
grbl
eeprom
fans
keypad
laser
motors
trinamic
odometer
openpnp
plugins
sdcard
spindle
webui
FATFS/App
FATFS/Target
Middlewares/Third_Party/FatFs
lib_extra_dirs =
.
# Build settings for USB serial support, include in board environments as needed
[usb]
build_flags =
-I Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
-I Middlewares/ST/STM32_USB_Device_Library/Core/Inc
-I USB_DEVICE/Target
-I USB_DEVICE/App
lib_deps =
USB_DEVICE/App
USB_DEVICE/Target
Middlewares/ST/STM32_USB_Device_Library/Class
Middlewares/ST/STM32_USB_Device_Library/Core
lib_extra_dirs =
# Build settings for H723 USB serial support, include in board environments as needed
# (STM32H723xx does not have a FS USB peripherial, using the HS peripheral in FS mode)
[usb_h723]
build_flags =
-I Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
-I Middlewares/ST/STM32_USB_Device_Library/Core/Inc
-I USB_DEVICE_H723/Target
-I USB_DEVICE_H723/App
lib_deps =
USB_DEVICE_H723/App
USB_DEVICE_H723/Target
Middlewares/ST/STM32_USB_Device_Library/Class
Middlewares/ST/STM32_USB_Device_Library/Core
lib_extra_dirs =
[eth_networking]
build_flags =
-I LWIP/App
-I LWIP/Target
-I Middlewares/Third_Party/LwIP/src/include
-I Middlewares/Third_Party/LwIP/system
-I Middlewares/Third_Party/LwIP/src/include/netif
-I Middlewares/Third_Party/LwIP/src/include/lwip
-I Drivers/BSP/Components/lan8742
lib_deps =
networking
webui
LWIP/App
LWIP/Target
Middlewares/Third_Party/LwIP
Drivers/BSP/Components/lan8742
lib_extra_dirs =
[wiznet_networking]
build_flags =
-I networking/wiznet
-I Middlewares/Third_Party/LwIP/src/include
-I Middlewares/Third_Party/LwIP/system
-I Middlewares/Third_Party/LwIP/src/include/netif
-I Middlewares/Third_Party/LwIP/src/include/lwip
lib_deps =
networking
webui
Middlewares/Third_Party/LwIP
lib_extra_dirs =
# Note: The platformio package registry does not yet include [email protected], which introduced
# the rewritten ST ethernet driver. We are therefore using a custom location for the framework, cloned
# from the official ST repo at https://github.com/STMicroelectronics/STM32CubeH7, with only minimal
# changes to remove unneeded content & add a package.json file.
[env]
platform = ststm32
platform_packages = framework-stm32cubeh7 @ https://github.com/dresco/STM32CubeH7.git
framework = stm32cube
# Do not produce .a files for lib deps (which would prevent them from overriding weak symbols)
lib_archive = no
lib_ldf_mode = off
[env:%env_name%]
board = %board%
board_build.ldscript = %ldscript%
build_flags = ${common.build_flags}
%build_flags%
lib_deps = ${common.lib_deps}
%lib_deps%
lib_extra_dirs = ${common.lib_extra_dirs}