-
Notifications
You must be signed in to change notification settings - Fork 84
/
platformio.ini
83 lines (65 loc) · 2.2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
; 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
;================================================================