-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
139 lines (121 loc) · 3.09 KB
/
platformio.ini
File metadata and controls
139 lines (121 loc) · 3.09 KB
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[env]
platform = ststm32
platform_packages =
platformio/toolchain-gccarmnoneeabi@^1.140201.0
platformio/tool-stlink
board = genericSTM32H725RGVX
board_build.ldscript = ${platformio.boards_dir}/ldscripts/STM32H725XG_FLASH.ld
framework = arduino
; upload_protocol = dfu
upload_protocol = stlink
debug_tool = stlink
monitor_speed = 460800
build_unflags =
-std=gnu++17
build_flags =
-std=gnu++20
; -flto ; Enable Link Time Optimization
; DEBUG
; -D DEBUG_SERIAL=Serial
; Hardware FPU
-mcpu=cortex-m7
-mthumb
-mfpu=fpv5-d16
-mfloat-abi=hard
; ARDUINO (BOARD SPECIFIC)
-D ARDUINO_GENERIC_H72add5RGVX
-D USE_PWR_DIRECT_SMPS_SUPPLY
; IRQ PRIORITY
-D TIM_IRQ_PRIO=3
; PLATFORMIO
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_SCANF
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
; SDMMC clock divisor: SDMMC_CK = sdmmc_ker_ck / (2 * SD_CLK_DIV)
; Default SDMMC_NSpeed_CLK_DIV=4 → 12 MHz at 48 MHz ker_ck; increase to slow down
-D SD_CLK_DIV=4
; FATFS MACROS
"-D f_unmount(path)=f_mount(0, path, 0)"
; CMSIS RTOS V2
-D configUSE_CMSIS_RTOS_V2=1
-D configUSE_NEWLIB_REENTRANT=1
-Wl,--wrap=delay
lib_deps =
lib-xcore=https://gitlab.com/vtneil/lib-xcore.git
FatFs=https://github.com/stm32duino/FatFs.git
STM32SD=https://github.com/stm32duino/STM32SD.git
STM32FreeRTOS=stm32duino/STM32duino FreeRTOS
BMP581=sparkfun/SparkFun BMP581 Arduino Library
BNO086=https://github.com/sparkfun/SparkFun_BNO08x_Arduino_Library
adafruit/Adafruit BNO08x
stm32duino/STM32duino ISM6HG256X
sparkfun/SparkFun u-blox GNSS v3
robtillaart/INA236
robtillaart/MS5611
adafruit/Adafruit NeoPixel
sparkfun/SparkFun VL53L1X 4m Laser Distance Sensor
stm32duino/STM32duino Low Power
[env:MAIN]
build_flags =
${env.build_flags}
-I ${PROJECT_INCLUDE_DIR}/config/Main
build_src_filter =
+<*.c>
+<*.cpp>
+<main/*.c>
+<main/*.cpp>
[env:UAV]
build_flags =
${env.build_flags}
-I ${PROJECT_INCLUDE_DIR}/config/UAV
build_src_filter =
+<*.c>
+<*.cpp>
+<uav/*.c>
+<uav/*.cpp>
[env:duty]
build_flags =
${env.build_flags}
-I ${PROJECT_INCLUDE_DIR}/config/Main
build_src_filter =
+<*.c>
+<*.cpp>
+<test_duty/*.c>
+<test_duty/*.cpp>
[env:test_path]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_path/*.c>
+<test_path/*.cpp>
[env:test_sd]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_sd/*.c>
+<test_sd/*.cpp>
[env:test_unit]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_unit/*.c>
+<test_unit/*.cpp>
[env:test_servoa]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_servoa/*.c>
+<test_servoa/*.cpp>
[env:test_servo_eeprom]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_servo_eeprom/*.c>
+<test_servo_eeprom/*.cpp>
[env:test_gps]
build_src_filter =
+<*.c>
+<*.cpp>
+<test_gps/*.c>
+<test_gps/*.cpp>