-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
38 lines (32 loc) · 934 Bytes
/
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
; 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:simplefoc_lepton]
platform = ststm32
board = genericSTM32G031G8
framework = arduino
board_build.ldscript = ./variant/ldscript.ld
upload_protocol = stlink
lib_archive = false
monitor_speed = 115200
monitor_eol = LF
build_flags =
-D SERIAL_UART_INSTANCE=2
-D SIMPLEFOC_STM32_DEBUG
-D PIN_SPI_MOSI=PB5
-D PIN_SPI_MISO=PB4
-D PIN_SPI_SCK=PA5
-D PIN_SPI_SS=PA4
-D PIN_SERIAL_TX=PA_2_ALT1
-D PIN_SERIAL_RX=PA_15
-D PIN_WIRE_SDA=PB7
-D PIN_WIRE_SCL=PB8
lib_deps =
askuric/Simple FOC@^2.2.3
simplefoc/SimpleFOCDrivers@^1.0.2