-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplatformio.ini
More file actions
43 lines (35 loc) · 1.06 KB
/
platformio.ini
File metadata and controls
43 lines (35 loc) · 1.06 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
; 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
[env:astra_fc]
platform = ststm32
board = astra_fc_v1
framework = arduino
monitor_speed = 57600
; Note - this is here to point openocd at the correct board file
upload_command = openocd -f "${PROJECT_DIR}/boards/astra_fc_v1.cfg" -c "program {$SOURCE} verify reset exit"
lib_ldf_mode = chain+
lib_deps =
SPI
SD
https://github.com/pfeerick/elapsedMillis
hideakitai/ArduinoEigen@^0.3.0
monitor_echo = yes
monitor_filters =
send_on_enter
log2file
build_unflags =
-Os ; don't compile for size
build_flags =
-D SERIAL_RX_BUFFER_SIZE=256 ; increase serial buffer size
-Wl,-u,_printf_float
-Wl,-u,_scanf_float
-D USBCON
-D USBD_USE_CDC
-O3 ; compile for speed