-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
57 lines (54 loc) · 1.38 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
; 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:genericSTM32G431RB]
platform = ststm32
board = genericSTM32G431RB
framework = arduino
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
monitor_speed = 115200
lib_deps =
bodmer/TFT_eSPI@^2.5.43
bolderflight/Bolder Flight Systems BMI088@^1.0.1
stm32duino/STM32duino FreeRTOS@^10.3.2
build_unflags = -std=gnu++14
build_flags =
-std=gnu++2a
-DUSER_SETUP_LOADED
-DSTM32
-DST7735_DRIVER
-DTFT_WIDTH=80
-DTFT_HEIGHT=160
-DST7735_GREENTAB160x80
-DTFT_BL=PC8
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_SPI_PORT=2
-DTFT_MOSI=PB15
-DTFT_MISO=PB14
-DTFT_SCLK=PB13
-DTFT_CS=PB12
-DTFT_DC=PC9
-DTFT_RST=-1
-DLOAD_FONT2
-DSMOOTH_FONT
-DSPI_FREQUENCY=27000000
-DENABLE_HWSERIAL1
-DENABLE_HWSERIAL2
-DENABLE_HWSERIAL3
-DARM_MATH_CM4
-DARM_MATH_ROUNDING
-mfloat-abi=hard
-mfpu=fpv4-sp-d16
-larm_cortexM4lf_math
-DDISABLE_ALL_LIBRARY_WARNINGS ; To shut up the TFT_eSPI library
-Iinclude ; Or the shitty FreeRTOS will be unable to find the fucking cfg file
-DULOG_ENABLED ; Enable the Ulog library
-DHSE_VALUE=16000000
; -DPID_TUNING