makes GPIO_PIN_RST optional for the sx1276
[ExpressLRS.git] / src / targets / diy_2400.ini
blob55ceff48983f37acdb62e59b0fc2c30301b25a5a
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 board = l432kb
102 # max size = 131072 - 0x4000 = 114688
103 board_upload.maximum_size = 114688
104 build_flags =
105 ${env_common_stm32.build_flags}
106 ${common_env_data.build_flags_rx}
107 ${radio_2400.build_flags}
108 -include target/DIY_2400_RX_STM32_CCG_Nano_v0_5.h
109 -D HAL_RTC_MODULE_DISABLED=1
110 -D HAL_ADC_MODULE_DISABLED=1
111 -D DISABLE_GENERIC_SERIALUSB=1
112 -D HSI_VALUE=16000000U
113 -D USE_HSI=1
115 -D FLASH_BASE_ADDRESS='((uint32_t)((FLASH_SIZE) - FLASH_PAGE_SIZE))'
116 -D VECT_TAB_OFFSET=0x4000U
117 -D FLASH_APP_OFFSET=0x4000U
118 -Wl,--defsym=FLASH_APP_OFFSET=16K
119 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
120 upload_flags =
121 BOOTLOADER=bootloader/sx1280_rx_nano_pcb_v0.5_bootloader.bin
122 VECT_OFFSET=0x4000
124 [env:DIY_2400_RX_STM32_CCG_Nano_v0_5_via_BetaflightPassthrough]
125 extends = env:DIY_2400_RX_STM32_CCG_Nano_v0_5_via_STLINK