-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplatformio.ini
42 lines (37 loc) · 1.03 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
; 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 = aioli-foc
boards_dir = ./firmware/boards
src_dir = ./firmware/src
lib_dir = ./firmware/lib
include_dir = ./firmware/include
test_dir = ./firmware/test
[env:aioli-foc]
platform = ststm32
board = genericSTM32G431CB
board_build.f_cpu = 168000000
framework = arduino
upload_protocol = stlink
debug_tool = stlink
monitor_speed = 115200
monitor_eol = LF
build_flags =
-D USBCON
-D SIMPLEFOC_STM32_DEBUG
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
; -D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
-D HAL_CAN_MODULE_ENABLED
; -D HAS_MONITOR
lib_deps =
askuric/Simple FOC@^2.2.3
simplefoc/SimpleFOCDrivers@^1.0.2
lib_archive = false
check_tool = clangtidy, cppcheck