-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplatformio.ini
89 lines (80 loc) · 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
83
84
85
86
87
88
89
; 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
[common]
include_dir = src
src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<driver/> -<blinky/> -<bootloader/>
monitor_speed = 230400
monitor_port = /dev/ttyUSB0
extra_scripts =
pre:script/pre_script.py
build_flags =
-Isrc/config
-Isrc/util
-Isrc/app
[stm32]
extends = common
platform = ststm32
framework = cmsis
debug_tool = stlink
upload_protocol = stlink
[cc2510]
extends = common
platform = https://github.com/bkleiner/platform-intel_mcs51.git#debug-support
board = cc2510
src_filter = ${stm32.src_filter} +<driver/cc2510> -<driver/cc2510/startup.asm>
build_unflags =
--opt-code-size
--std-sdcc11
--peep-return
-mmcs51
-DF_CPU=26000000L
-DHEAP_SIZE=128
build_flags =
${common.build_flags}
--opt-code-speed
-DFLASH_SIZE=0x4000
-DBOOTLOADER_SIZE=0x2000
-Isrc/driver/cc2510
[stm32f0]
extends = stm32
board = STM32F031K6
src_filter = ${stm32.src_filter} +<driver/stm32f0>
board_build.ldscript = $PROJECT_DIR/src/driver/stm32f0/STM32F031K6Tx_FLASH.ld
build_flags =
${stm32.build_flags}
-Isrc/driver/stm32f0
[stm32f1]
extends = stm32
board = STM32F103CB
src_filter = ${stm32.src_filter} +<driver/stm32f1>
board_build.ldscript = $PROJECT_DIR/src/driver/stm32f1/STM32F103XB_FLASH.ld
build_flags =
${stm32.build_flags}
-Isrc/driver/stm32f1
[env:radiomaster_r81]
extends = stm32f0
build_flags =
${stm32f0.build_flags}
-Isrc/target/r81
[env:frsky_d8r]
extends = stm32f1
build_flags =
${stm32f1.build_flags}
-Isrc/target/d8r
[env:frsky_xm]
extends = cc2510
build_flags =
${cc2510.build_flags}
-Isrc/target/xm
[env:frsky_xmp]
extends = cc2510
build_flags =
${cc2510.build_flags}
-Isrc/target/xmp