-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
67 lines (53 loc) · 1.41 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
; 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]
; default_envs = megaatmega2560
default_envs = disco_f407vg
[specific_defines]
build_flags =
-D I2C
; -D BMP_180
;-D MPXV7002DP
;-D MPX2010DP
;-D MPX10DP
;-D MS4525DO
;-D MS4525_AS_Gauge_Pressure
-D FLOW_SENSOR_INSTALLED
-D SFM3200AW
; -D FLOW_SENSOR_CN
-D FS6122
-D Led ; Led debugging / Signal
; -D ActiveBeeper
-D EN_ALARMS
; -D E2PROM ;Uses the internal EEPROM for parameter storage
-D CLOSED_LOOP
;-D __DEBUG
-D TX_SERIAL_TELEMETRY
; -D TEL_AT_UART0
-D QT_PLOTTER
; -D EN_WATCHDOG
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags = ${specific_defines.build_flags}
monitor_speed = 115200
;[env:custom_monitor_speedrate]
[env:disco_f407vg]
platform = ststm32
board = disco_f407vg
framework = arduino
; change microcontroller
board_build.mcu = stm32f407vgt6
build_flags = ${specific_defines.build_flags}
; change MCU frequency
board_build.f_cpu = 168000000L ;168MHz
debug_tool = stlink
upload_protocol = stlink