Merge pull request #1269 from pkendall64/crsf-max-output
[ExpressLRS.git] / src / targets / frsky.ini
blob65cce70206f9f6cb7d669ece8727f5e7a4f5bc2d
2 # ********************************
3 # Transmitter targets
4 # ********************************
6 ## TODO: R9M STLINK/stock and R9M Lite targets can be merged
7 [env:Frsky_TX_R9M_via_STLINK]
8 extends = env_common_stm32, radio_900
9 build_flags =
10 ${env_common_stm32.build_flags}
11 ${common_env_data.build_flags_tx}
12 ${radio_900.build_flags}
13 -include target/Frsky_TX_R9M.h
14 -flto
15 -D HSE_VALUE=12000000U
16 -DVECT_TAB_OFFSET=0x4000U
17 board_build.ldscript = variants/R9M_ldscript.ld
18 board_build.flash_offset = 0x4000
19 src_filter = ${env_common_stm32.src_filter} -<rx_*.cpp>
20 upload_flags =
21 BOOTLOADER=bootloader/r9m_bootloader.bin
22 VECT_OFFSET=0x4000
23 lib_deps =
24 https://github.com/PaoloP74/extEEPROM.git
26 [env:Frsky_TX_R9M_via_stock_BL]
27 extends = env:Frsky_TX_R9M_via_STLINK
29 [env:Frsky_TX_R9M_via_WIFI]
30 extends = env:Frsky_TX_R9M_via_STLINK
32 [env:Frsky_TX_R9M_LITE_via_STLINK]
33 extends = env:Frsky_TX_R9M_via_STLINK
34 build_flags =
35 ${env_common_stm32.build_flags}
36 ${common_env_data.build_flags_tx}
37 ${radio_900.build_flags}
38 -include target/Frsky_TX_R9M_LITE.h
39 -flto
40 -D HSE_VALUE=12000000U
41 -DVECT_TAB_OFFSET=0x4000U
43 [env:Frsky_TX_R9M_LITE_via_stock_BL]
44 extends = env:Frsky_TX_R9M_LITE_via_STLINK
46 [env:Frsky_TX_R9M_LITE_PRO_via_STLINK]
47 extends = env_common_stm32, radio_900
48 board = robotdyn_blackpill_f303cc
49 build_flags =
50 ${env_common_stm32.build_flags}
51 ${common_env_data.build_flags_tx}
52 ${radio_900.build_flags}
53 -include target/Frsky_TX_R9M_LITE_PRO.h
54 -D HSE_VALUE=12000000U
55 -DVECT_TAB_OFFSET=0x8000U
56 board_build.ldscript = variants/R9M_Lite_Pro_ldscript.ld
57 board_build.flash_offset = 0x8000
58 upload_flags =
59 BOOTLOADER=bootloader/r9m_lite_pro_bootloader.bin
60 VECT_OFFSET=0x8000
61 src_filter = ${env_common_stm32.src_filter} -<rx_*.cpp>
62 lib_deps =
63 https://github.com/PaoloP74/extEEPROM.git
66 # ********************************
67 # Receiver targets
68 # ********************************
70 [env:Frsky_RX_R9MM_R9MINI_via_STLINK]
71 extends = env_common_stm32, radio_900
72 board = R9MM
73 build_flags =
74 ${env_common_stm32.build_flags}
75 ${common_env_data.build_flags_rx}
76 ${radio_900.build_flags}
77 -include target/Frsky_RX_R9M.h
78 -D HSE_VALUE=24000000U
79 -DVECT_TAB_OFFSET=0x08008000U
80 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
81 upload_flags =
82 BOOTLOADER=bootloader/r9mm_bootloader.bin
83 VECT_OFFSET=0x8000
85 [env:Frsky_RX_R9MM_R9MINI_via_BetaflightPassthrough]
86 extends = env:Frsky_RX_R9MM_R9MINI_via_STLINK
88 [env:Frsky_RX_R9SLIM_via_STLINK]
89 extends = env:Frsky_RX_R9SLIM_via_BetaflightPassthrough
90 upload_flags =
91 BOOTLOADER=bootloader/r9slim_no_btn_bootloader.bin
92 VECT_OFFSET=0x8000
94 [env:Frsky_RX_R9SLIM_via_BetaflightPassthrough]
95 extends = env_common_stm32, radio_900
96 build_flags =
97 ${env_common_stm32.build_flags}
98 ${common_env_data.build_flags_rx}
99 ${radio_900.build_flags}
100 -D TARGET_R9SLIM_RX
101 -include target/Frsky_RX_R9M.h
102 -D HSE_VALUE=12000000U
103 -DVECT_TAB_OFFSET=0x08008000U
104 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
105 src_filter = ${common_env_data.src_filter} -<ESP32*.*> -<ESP8266*.*> -<WS281B*.*> -<tx_*.cpp>
106 lib_deps =
107 https://github.com/PaoloP74/extEEPROM.git
108 Wire
110 [env:Frsky_RX_R9SLIMPLUS_via_STLINK]
111 extends = env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough
112 upload_flags =
113 BOOTLOADER=bootloader/r9slim_plus_bootloader.bin
114 VECT_OFFSET=0x8000
116 [env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough]
117 extends = env_common_stm32, radio_900
118 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
119 build_flags =
120 ${env_common_stm32.build_flags}
121 ${common_env_data.build_flags_rx}
122 ${radio_900.build_flags}
123 -D TARGET_R9SLIMPLUS_RX
124 -include target/Frsky_RX_R9M.h
125 -D HSE_VALUE=12000000U
126 -DVECT_TAB_OFFSET=0x8000U
127 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
129 [env:Frsky_RX_R9SLIMPLUS_OTA_via_STLINK]
130 extends = env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough
131 board = robotdyn_blackpill_f303cc
132 board_build.ldscript = variants/stm32f303xx.ld
133 upload_flags =
134 BOOTLOADER=bootloader/r9slim_plus_ota_bootloader.bin
135 VECT_OFFSET=0x8000
137 [env:Frsky_RX_R9SLIMPLUS_OTA_via_BetaflightPassthrough]
138 extends = env:Frsky_RX_R9SLIMPLUS_OTA_via_STLINK
140 [env:Frsky_RX_R9MX_via_STLINK]
141 extends = env_common_stm32, radio_900
142 board = r9mx
143 build_flags =
144 ${env_common_stm32.build_flags}
145 ${common_env_data.build_flags_rx}
146 ${radio_900.build_flags}
147 -D TARGET_R9MX_RX
148 -include target/Frsky_RX_R9M.h
149 -DVECT_TAB_OFFSET=0x08008000U
150 -D HSI_VALUE=16000000
151 -Wl,--defsym=FLASH_OFFSET=0x8000
152 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
153 upload_flags =
154 BOOTLOADER=bootloader/r9mx_bootloader.bin
155 VECT_OFFSET=0x8000
157 [env:Frsky_RX_R9MX_via_BetaflightPassthrough]
158 extends = env:Frsky_RX_R9MX_via_STLINK
160 [env:Jumper_RX_R900MINI_via_STLINK]
161 extends = env:Jumper_RX_R900MINI_via_BetaflightPassthrough
162 upload_flags =
163 BOOTLOADER=bootloader/jumper_r900_bootloader.bin
164 VECT_OFFSET=0x8000
166 [env:Jumper_RX_R900MINI_via_BetaflightPassthrough]
167 extends = env_common_stm32, radio_900
168 build_flags =
169 ${env_common_stm32.build_flags}
170 ${common_env_data.build_flags_rx}
171 ${radio_900.build_flags}
172 -D TARGET_R900MINI_RX
173 -include target/Frsky_RX_R9M.h
174 -D HSE_VALUE=12000000U
175 -DVECT_TAB_OFFSET=0x8000U
176 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
177 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>