forked from olliw42/mLRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
120 lines (94 loc) · 2.54 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
; 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]
src_dir = mLRS
[env]
framework = arduino
monitor_speed = 115200
;--------------------
; common environments
;--------------------
[env_common_esp82xx]
platform = [email protected]
board_build.f_cpu = 160000000L
build_type = release
; RX
[env_common_rx]
build_src_filter =
-<*>
+<CommonRx/mlrs-rx.cpp>
+<CommonRx/out.cpp>
+<Common/common_types.cpp>
+<Common/link_types.cpp>
+<Common/channel_order.cpp>
+<Common/diversity.cpp>
+<Common/fhss.cpp>
+<Common/libs/filters.cpp>
+<modules/stm32ll-lib/src/stdstm32.c>
[env_common_rx_esp82xx]
extends = env_common_esp82xx
build_src_filter = ${env_common_rx.build_src_filter}
;--------------------
; target boards
;--------------------
; ELRS generic layouts
[env:rx-generic-900]
extends = env_common_rx_esp82xx
board = esp8285
build_src_filter =
${env_common_rx_esp82xx.build_src_filter}
+<modules/sx12xx-lib/src/sx127x.cpp>
build_flags =
-DRX_ELRS_GENERIC_900_ESP8285
[env:rx-generic-900-pa]
extends = env_common_rx_esp82xx
board = esp8285
build_src_filter =
${env_common_rx_esp82xx.build_src_filter}
+<modules/sx12xx-lib/src/sx127x.cpp>
build_flags =
-DRX_ELRS_GENERIC_900_PA_ESP8285
[env:rx-generic-2400]
extends = env_common_rx_esp82xx
board = esp8285
build_src_filter =
${env_common_rx_esp82xx.build_src_filter}
+<modules/sx12xx-lib/src/sx128x.cpp>
build_flags =
-DRX_ELRS_GENERIC_2400_ESP8285
[env:rx-generic-2400-pa]
extends = env_common_rx_esp82xx
board = esp8285
build_src_filter =
${env_common_rx_esp82xx.build_src_filter}
+<modules/sx12xx-lib/src/sx128x.cpp>
build_flags =
-DRX_ELRS_GENERIC_2400_PA_ESP8285
; ELRS boards
[env:rx-bayck-nano-pro-900]
extends = env:rx-generic-900-pa
build_flags =
-DRX_ELRS_BAYCK_NANO_PRO_900_ESP8285
[env:rx-speedybee-nano-2400]
extends = env:rx-generic-2400-pa
build_flags =
-DRX_ELRS_SPEEDYBEE_NANO_2400_ESP8285
; ESP DIY boards
[env:rx-diyboard-900]
extends = env_common_esp82xx
board = nodemcuv2
board_build.f_cpu = 80000000L
build_type = debug
monitor_filters = esp8266_exception_decoder, default
build_src_filter =
${env_common_rx_esp82xx.build_src_filter}
+<modules/sx12xx-lib/src/sx127x.cpp>
build_flags =
-DRX_DIYBOARD_900_ESP8266