-
Notifications
You must be signed in to change notification settings - Fork 4
/
platformio.ini
46 lines (42 loc) · 1.13 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
; 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 = lemon-pepper
src_dir = firmware/src
lib_dir = firmware/lib
include_dir = firmware/include
test_dir = firmware/test
[env:lemon-pepper]
platform = ststm32
board = genericSTM32G431CB
framework = arduino
upload_protocol = stlink
debug_tool = stlink
monitor_port = /dev/cu.usbmodem208A317F42531
monitor_speed = 115200
monitor_eol = LF
build_flags =
-D USBCON
-D SIMPLEFOC_STM32_DEBUG
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D HAL_FDCAN_MODULE_ENABLED
-D HAL_OPAMP_MODULE_ENABLED
-D HSE_VALUE=12000000U
-D FDCAN_ALT1
-D SN65HVD23x
-D ARDUINO_GENERIC_G431CBUX
-D SIMPLEFOC_STM32_CUSTOMCURRENTSENSE
-D LEMONPEPPER
; -D PCB_REV1 ; or PCB_REV2
; -D HAS_MONITOR
; lib_deps =
; askuric/Simple FOC@^2.3.1
; simplefoc/SimpleFOCDrivers@^1.0.5
lib_archive = false