mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2025-07-27 01:29:32 +00:00
84 lines
2.2 KiB
INI
84 lines
2.2 KiB
INI
; 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]
|
|
include_dir = Inc
|
|
src_dir = Src
|
|
|
|
;=================== VARIANT SELECTION ==========================
|
|
;default_envs = VARIANT_DEBUG ; DEBUG Variant
|
|
;default_envs = VARIANT_HOVERCAR ; HOVERCAR Variant
|
|
;default_envs = VARIANT_HOVERBOARD ; HOVERBOARD Variant
|
|
;================================================================
|
|
|
|
[env]
|
|
; use new GD32 platform and the bleeding-edge SPL package for it
|
|
platform = https://github.com/CommunityGD32Cores/platform-gd32.git#e712045bdba54790ed2e07c47a421345340efb31
|
|
platform_packages =
|
|
framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git#67a6fe90b20e00b11a9a52f55d318b7d15eeed84
|
|
|
|
;================================================================
|
|
|
|
[env:VARIANT_DEBUG]
|
|
board = genericGD32F130C6
|
|
debug_tool = stlink
|
|
upload_protocol = stlink
|
|
framework = spl
|
|
board_build.ldscript = ./GD32F130C6T_FLASH.ld
|
|
|
|
|
|
; Serial Port settings (make sure the COM port is correct)
|
|
monitor_port = COM5
|
|
monitor_speed = 115200
|
|
|
|
build_flags =
|
|
-IInc
|
|
-ISrc
|
|
-DUSE_STDPERIPH_DRIVER
|
|
-g -ggdb
|
|
-D VARIANT_DEBUG
|
|
|
|
|
|
;================================================================
|
|
|
|
[env:VARIANT_HOVERCAR]
|
|
board = genericGD32F130C6
|
|
debug_tool = stlink
|
|
upload_protocol = stlink
|
|
framework = spl
|
|
board_build.ldscript = ./GD32F130C6T_FLASH.ld
|
|
|
|
build_flags =
|
|
-IInc
|
|
-ISrc
|
|
-DUSE_STDPERIPH_DRIVER
|
|
-g -ggdb
|
|
-D VARIANT_HOVERCAR
|
|
|
|
;================================================================
|
|
|
|
[env:VARIANT_HOVERBOARD]
|
|
board = genericGD32F130C6
|
|
debug_tool = stlink
|
|
upload_protocol = stlink
|
|
framework = spl
|
|
board_build.ldscript = ./GD32F130C6T_FLASH.ld
|
|
|
|
build_flags =
|
|
-IInc
|
|
-ISrc
|
|
-DUSE_STDPERIPH_DRIVER
|
|
-g -ggdb
|
|
-D VARIANT_HOVERBOARD
|
|
|
|
;================================================================
|
|
|