Add missing wifi targets for some DIY modules (#1210)
[ExpressLRS.git] / src / targets / diy_2400.ini
blob0149d461e34506fb130db4d152eefb7e32c4ac5e
2 # ********************************
3 # Transmitter targets
4 # ********************************
6 [env:DIY_2400_TX_ESP32_SX1280_Mini_via_UART]
7 extends = env_common_esp32, radio_2400
8 build_flags =
9 ${env_common_esp32.build_flags}
10 ${common_env_data.build_flags_tx}
11 ${radio_2400.build_flags}
12 -include target/DIY_2400_TX_ESP32_SX1280_Mini.h
13 -D VTABLES_IN_FLASH=1
14 -O2
15 src_filter = ${env_common_esp32.src_filter} -<rx_*.cpp>
17 [env:DIY_2400_TX_ESP32_SX1280_Mini_via_WIFI]
18 extends = env:DIY_2400_TX_ESP32_SX1280_Mini_via_UART
20 [env:DIY_2400_TX_ESP32_SX1280_E28_via_UART]
21 extends = env_common_esp32, radio_2400
22 build_flags =
23 ${env_common_esp32.build_flags}
24 ${common_env_data.build_flags_tx}
25 ${radio_2400.build_flags}
26 -include target/DIY_2400_TX_ESP32_SX1280_E28.h
27 -D VTABLES_IN_FLASH=1
28 -O2
29 src_filter = ${env_common_esp32.src_filter} -<rx_*.cpp>
30 lib_deps =
31 ${env_common_esp32.lib_deps}
32 olikraus/U8g2@^2.28.8
34 [env:DIY_2400_TX_ESP32_SX1280_E28_via_WIFI]
35 extends = env:DIY_2400_TX_ESP32_SX1280_E28_via_UART
37 [env:DIY_2400_TX_ESP32_SX1280_LORA1280F27_via_UART]
38 extends = env_common_esp32, radio_2400
39 build_flags =
40 ${env_common_esp32.build_flags}
41 ${common_env_data.build_flags_tx}
42 ${radio_2400.build_flags}
43 -include target/DIY_2400_TX_ESP32_SX1280_LORA1280F27.h
44 -D VTABLES_IN_FLASH=1
45 -O2
46 src_filter = ${env_common_esp32.src_filter} -<rx_*.cpp>
47 lib_deps =
48 ${env_common_esp32.lib_deps}
49 olikraus/U8g2@^2.28.8
51 [env:DIY_2400_TX_ESP32_SX1280_LORA1280F27_via_WIFI]
52 extends = env:DIY_2400_TX_ESP32_SX1280_LORA1280F27_via_UART
54 [env:DIY_2400_TX_ESP8285_SX1280_via_UART]
55 # Status: These TXes work as free-running transmitters, but do not have working halfduplex inverted UART
56 # to let them work in handsets so if someone could fix that for CapnBry, he'd love you with mouth
57 extends = env_common_esp82xx, radio_2400
58 build_flags =
59 ${env_common_esp82xx.build_flags}
60 ${common_env_data.build_flags_tx}
61 ${radio_2400.build_flags}
62 -include target/DIY_2400_TX_ESP8285_SX1280.h
63 src_filter = ${env_common_esp82xx.src_filter} -<rx_*.cpp>
64 upload_speed = 921600
66 # ********************************
67 # Receiver targets
68 # ********************************
70 [env:DIY_2400_RX_ESP8285_SX1280_via_UART]
71 extends = env_common_esp82xx, radio_2400
72 build_flags =
73 ${env_common_esp82xx.build_flags}
74 ${common_env_data.build_flags_rx}
75 ${radio_2400.build_flags}
76 -include target/DIY_2400_RX_ESP8285_SX1280.h
77 src_filter = ${env_common_esp82xx.src_filter} -<tx_*.cpp>
79 [env:DIY_2400_RX_ESP8285_SX1280_via_BetaflightPassthrough]
80 extends = env:DIY_2400_RX_ESP8285_SX1280_via_UART
81 upload_protocol = custom
82 upload_speed = 420000
83 upload_command = ${env_common_esp82xx.bf_upload_command}
85 [env:DIY_2400_RX_ESP8285_SX1280_via_WIFI]
86 extends = env:DIY_2400_RX_ESP8285_SX1280_via_UART
88 [env:DIY_2400_RX_PWMP_via_UART]
89 extends = env_common_esp82xx
90 build_flags =
91 ${env_common_esp82xx.build_flags}
92 ${common_env_data.build_flags_rx}
93 -include target/DIY_2400_RX_PWMP.h
94 src_filter = ${env_common_esp82xx.src_filter} -<tx_*.cpp>
96 [env:DIY_2400_RX_PWMP_via_WIFI]
97 extends = env:DIY_2400_RX_PWMP_via_UART
99 [env:DIY_2400_RX_STM32_CCG_Nano_v0_5_via_STLINK]
100 extends = env_common_stm32, radio_2400
101 platform = ststm32@9.0.0
102 board = l432kb
103 # max size = 131072 - 0x4000 = 114688
104 board_upload.maximum_size = 114688
105 build_flags =
106 ${env_common_stm32.build_flags}
107 ${common_env_data.build_flags_rx}
108 ${radio_2400.build_flags}
109 -include target/DIY_2400_RX_STM32_CCG_Nano_v0_5.h
110 -D HAL_RTC_MODULE_DISABLED=1
111 -D HAL_ADC_MODULE_DISABLED=1
112 -D DISABLE_GENERIC_SERIALUSB=1
113 -D HSI_VALUE=16000000U
114 -D USE_HSI=1
116 -D FLASH_BASE_ADDRESS='((uint32_t)((FLASH_SIZE) - FLASH_PAGE_SIZE))'
117 -D VECT_TAB_OFFSET=0x4000U
118 -D FLASH_APP_OFFSET=0x4000U
119 -Wl,--defsym=FLASH_APP_OFFSET=16K
120 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
121 upload_flags =
122 BOOTLOADER=bootloader/bootloader_sx1280_rx_ccg_nano_v05.bin
123 VECT_OFFSET=0x4000
125 [env:DIY_2400_RX_STM32_CCG_Nano_v0_5_via_BetaflightPassthrough]
126 extends = env:DIY_2400_RX_STM32_CCG_Nano_v0_5_via_STLINK