Skip to content

Commit 6ddc5df

Browse files
committed
Add pio env
1 parent be25d53 commit 6ddc5df

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

platformio.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ framework = arduino
3131
build_flags = -DIS_MCP2515
3232
lib_deps =
3333
https://github.com/sandeepmistry/arduino-CAN.git
34+
35+
[env:stm32f405]
36+
platform = ststm32
37+
board = adafruit_feather_f405
38+
framework = arduino
39+
build_flags =
40+
-DIS_STM32_BUILTIN
41+
; Enable serial.
42+
; See https://github.com/platformio/platform-ststm32/issues/420#issuecomment-672277396
43+
-USBCON
44+
-DPIO_FRAMEWORK_ARDUINO_ENABLE_CDC
45+
; Enable CAN module in HAL drivers.
46+
; See https://github.com/pazi88/STM32_CAN
47+
-DHAL_CAN_MODULE_ENABLED
48+
lib_deps =
49+
https://github.com/pazi88/STM32_CAN.git#1.2.0

0 commit comments

Comments
 (0)