remove redundant code (#2155)
[ExpressLRS.git] / src / targets / unified.ini
blobb53063bbd6969e7832bb7a131ef8c52ab8f0ab4c
1 # ********************************
2 # Transmitter targets
3 # ********************************
5 [env:Unified_ESP32_2400_TX_via_ETX]
6 extends = env_common_esp32, radio_2400
7 build_flags =
8 ${env_common_esp32.build_flags}
9 ${radio_2400.build_flags}
10 ${common_env_data.build_flags_tx}
11 -include target/Unified_ESP32_TX.h
12 -D TARGET_AXIS_THOR_2400_TX=1
13 -D VTABLES_IN_FLASH=1
14 -O2
15 build_src_filter = ${env_common_esp32.build_src_filter} -<rx_*.cpp>
16 lib_deps =
17 ${env_common_esp32.tft_lib_deps}
18 ${env_common_esp32.oled_lib_deps}
19 SPIFFS
20 upload_speed = 460800
21 monitor_speed = 420000
23 [env:Unified_ESP32_2400_TX_via_UART]
24 extends = env:Unified_ESP32_2400_TX_via_ETX
26 [env:Unified_ESP32_2400_TX_via_WIFI]
27 extends = env:Unified_ESP32_2400_TX_via_ETX
29 [env:Unified_ESP32_900_TX_via_ETX]
30 extends = env_common_esp32, radio_900
31 build_flags =
32 ${env_common_esp32.build_flags}
33 ${radio_900.build_flags}
34 ${common_env_data.build_flags_tx}
35 -include target/Unified_ESP32_TX.h
36 -D TARGET_AXIS_THOR_2400_TX=1
37 -D VTABLES_IN_FLASH=1
38 -O2
39 build_src_filter = ${env_common_esp32.build_src_filter} -<rx_*.cpp>
40 lib_deps =
41 ${env_common_esp32.tft_lib_deps}
42 ${env_common_esp32.oled_lib_deps}
43 SPIFFS
44 upload_speed = 460800
45 monitor_speed = 460800
47 [env:Unified_ESP32_900_TX_via_UART]
48 extends = env:Unified_ESP32_900_TX_via_ETX
50 [env:Unified_ESP32_900_TX_via_WIFI]
51 extends = env:Unified_ESP32_900_TX_via_ETX
53 [env:Unified_ESP8285_2400_TX_via_UART]
54 extends = env_common_esp82xx, radio_2400
55 board_build.f_cpu = 80000000L
56 build_flags =
57 ${env_common_esp82xx.build_flags}
58 ${radio_2400.build_flags}
59 ${common_env_data.build_flags_tx}
60 -include target/Unified_ESP8285_TX.h
61 build_src_filter = ${env_common_esp82xx.build_src_filter} -<rx_*.cpp>
62 board_build.ldscript = ./elrs.flash.1m64.ld
64 [env:Unified_ESP8285_2400_TX_via_WIFI]
65 extends = env:Unified_ESP8285_2400_TX_via_UART
68 # ********************************
69 # Receiver targets
70 # ********************************
72 [env:Unified_ESP8285_2400_RX_via_UART]
73 extends = env_common_esp82xx, radio_2400
74 build_flags =
75 ${env_common_esp82xx.build_flags}
76 ${radio_2400.build_flags}
77 ${common_env_data.build_flags_rx}
78 -include target/Unified_ESP_RX.h
79 build_src_filter = ${env_common_esp82xx.build_src_filter} -<tx_*.cpp>
80 board_build.ldscript = ./elrs.flash.1m64.ld
82 [env:Unified_ESP8285_2400_RX_via_BetaflightPassthrough]
83 extends = env:Unified_ESP8285_2400_RX_via_UART
85 [env:Unified_ESP8285_2400_RX_via_WIFI]
86 extends = env:Unified_ESP8285_2400_RX_via_UART
88 [env:Unified_ESP8285_900_RX_via_UART]
89 extends = env_common_esp82xx, radio_900
90 build_flags =
91 ${env_common_esp82xx.build_flags}
92 ${radio_900.build_flags}
93 ${common_env_data.build_flags_rx}
94 -include target/Unified_ESP_RX.h
95 build_src_filter = ${env_common_esp82xx.build_src_filter} -<tx_*.cpp>
96 board_build.ldscript = ./elrs.flash.1m64.ld
98 [env:Unified_ESP8285_900_RX_via_BetaflightPassthrough]
99 extends = env:Unified_ESP8285_900_RX_via_UART
101 [env:Unified_ESP8285_900_RX_via_WIFI]
102 extends = env:Unified_ESP8285_900_RX_via_UART
105 [env:Unified_ESP32_2400_RX_via_UART]
106 extends = env_common_esp32rx, radio_2400
107 build_flags =
108 ${env_common_esp32rx.build_flags}
109 ${radio_2400.build_flags}
110 ${common_env_data.build_flags_rx}
111 -include target/Unified_ESP_RX.h
112 build_src_filter = ${env_common_esp32rx.build_src_filter} -<tx_*.cpp>
114 [env:Unified_ESP32_2400_RX_via_BetaflightPassthrough]
115 extends = env:Unified_ESP32_2400_RX_via_UART
117 [env:Unified_ESP32_2400_RX_via_WIFI]
118 extends = env:Unified_ESP32_2400_RX_via_UART
120 [env:Unified_ESP32_900_RX_via_UART]
121 extends = env_common_esp32rx, radio_900
122 build_flags =
123 ${env_common_esp32rx.build_flags}
124 ${radio_900.build_flags}
125 ${common_env_data.build_flags_rx}
126 -include target/Unified_ESP_RX.h
127 build_src_filter = ${env_common_esp32rx.build_src_filter} -<tx_*.cpp>
129 [env:Unified_ESP32_900_RX_via_BetaflightPassthrough]
130 extends = env:Unified_ESP32_900_RX_via_UART
132 [env:Unified_ESP32_900_RX_via_WIFI]
133 extends = env:Unified_ESP32_900_RX_via_UART