-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
97 lines (73 loc) · 2.29 KB
/
platformio.ini
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
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
; this sets the base dir for src_filter in the board-specific envs
src_dir = .
; only build the src/main target by default
default_envs = default
;;
;; Shared environments section
;; Board-specific environments are below this section
;;
[base]
; common configuration for all targets
platform = ststm32
framework = mbed
; Mbed OS 5 needed for Serial API compatibility
platform_packages = framework-mbed @ ~6.51506.0
board = nucleo_f042k6
monitor_speed = 115200
; single-precision-constant saves a significant amount of flash
build_flags = -Isrc/ -DMBED_BUILD_PROFILE_RELEASE -fsingle-precision-constant
; to make floating-point performance effects a bit more visible
board_build.f_cpu = 12000000L
;;
;; Board-specific section
;;
[env:default]
extends = base
src_filter = +<src/*>
[env:sanity]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/sanity.cpp>
[env:solution_1_2]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab1.2.cpp>
[env:solution_1_3]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab1.3.cpp>
[env:solution_1_4]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab1.4.cpp>
[env:solution_1_5]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab1.5.cpp>
[env:solution_1_6]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab1.6.cpp>
[env:central]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/central.cpp>
[env:solution_2_2]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab2.2.cpp>
[env:solution_2_3]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab2.3.cpp>
[env:solution_2_4]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab2.4.cpp>
[env:solution_2_5]
extends = base
src_filter = +<src/*> -<src/main.cpp> +<solutions/lab2.5.cpp>
[env:slcan]
extends = base
build_flags = -Isrc/ -Islcan/ -DMBED_BUILD_PROFILE_RELEASE
src_filter = -<src/*> +<slcan/*>