-
Notifications
You must be signed in to change notification settings - Fork 6
/
platformio.tpl
94 lines (88 loc) · 1.9 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
#
# Template for Web Builder, STM32F7xx
#
[platformio]
include_dir = Inc
src_dir = Src
[common]
build_flags =
-I .
-D L1_CACHE_ENABLE=1
-D OVERRIDE_MY_MACHINE
-I FatFs
-I FatFs/STM
-I Drivers/FATFS/Target
-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
-D _USE_IOCTL=1
-D _USE_WRITE=1
-D _VOLUMES=1
-Wl,-u,_printf_float
-Wl,-u,_scanf_float
lib_deps =
bluetooth
grbl
eeprom
fans
keypad
laser
motors
odometer
openpnp
sdcard
spindle
FatFs
Drivers/FATFS/App
Drivers/FATFS/Target
USB_DEVICE/App
USB_DEVICE/Target
Middlewares/ST/STM32_USB_Device_Library/Class
Middlewares/ST/STM32_USB_Device_Library/Core
lib_extra_dirs =
.
%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 =
[env]
platform = ststm32
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}