Add tlmConfirm to tlm_dl ota packet-structure (#2991)
[ExpressLRS.git] / src / include / target / Unified_ESP8285_TX.h
blob5761dd71a7d1ce84d36696885910e64e87b109d5
1 #define HARDWARE_VERSION ""
3 // DEVICE_NAME is not defined here because we get it from the SPIFFS file system
4 // Serial
5 #define GPIO_PIN_RCSIGNAL_RX hardware_pin(HARDWARE_serial_rx)
6 #define GPIO_PIN_RCSIGNAL_TX hardware_pin(HARDWARE_serial_tx)
8 // Radio
9 #define GPIO_PIN_BUSY hardware_pin(HARDWARE_radio_busy)
10 #define GPIO_PIN_BUSY_2 hardware_pin(HARDWARE_radio_busy_2)
11 #define GPIO_PIN_DIO0 hardware_pin(HARDWARE_radio_dio0)
12 #define GPIO_PIN_DIO0_2 hardware_pin(HARDWARE_radio_dio0_2)
13 #define GPIO_PIN_DIO1 hardware_pin(HARDWARE_radio_dio1)
14 #define GPIO_PIN_DIO1_2 hardware_pin(HARDWARE_radio_dio1_2)
15 #define GPIO_PIN_DIO2 hardware_pin(HARDWARE_radio_dio2)
16 #define GPIO_PIN_MISO hardware_pin(HARDWARE_radio_miso)
17 #define GPIO_PIN_MOSI hardware_pin(HARDWARE_radio_mosi)
18 #define GPIO_PIN_NSS hardware_pin(HARDWARE_radio_nss)
19 #define GPIO_PIN_NSS_2 hardware_pin(HARDWARE_radio_nss_2)
20 #define GPIO_PIN_RST hardware_pin(HARDWARE_radio_rst)
21 #define GPIO_PIN_RST_2 hardware_pin(HARDWARE_radio_rst_2)
22 #define GPIO_PIN_SCK hardware_pin(HARDWARE_radio_sck)
23 #define USE_HARDWARE_DCDC
24 #define OPT_USE_HARDWARE_DCDC hardware_flag(HARDWARE_radio_dcdc)
26 // Radio power
27 #define GPIO_PIN_PA_ENABLE hardware_pin(HARDWARE_power_enable)
28 #define GPIO_PIN_RFamp_APC1 hardware_pin(HARDWARE_power_apc1)
29 #define GPIO_PIN_RFamp_APC2 hardware_pin(HARDWARE_power_apc2)
30 #define GPIO_PIN_RX_ENABLE hardware_pin(HARDWARE_power_rxen)
31 #define GPIO_PIN_TX_ENABLE hardware_pin(HARDWARE_power_txen)
32 #define LBT_RSSI_THRESHOLD_OFFSET_DB hardware_int(HARDWARE_power_lna_gain)
33 #define MinPower (PowerLevels_e)hardware_int(HARDWARE_power_min)
34 #define MaxPower (PowerLevels_e)hardware_int(HARDWARE_power_max)
35 #define DefaultPower (PowerLevels_e)hardware_int(HARDWARE_power_default)
37 #define POWER_OUTPUT_DACWRITE false // Not supported on 8285 based hardware
38 #define POWER_OUTPUT_VALUES hardware_i16_array(HARDWARE_power_values)
39 #define POWER_OUTPUT_VALUES_COUNT hardware_int(HARDWARE_power_values_count)
40 #define POWER_OUTPUT_VALUES2 hardware_i16_array(HARDWARE_power_values)
41 #define POWER_OUTPUT_VALUES_DUAL hardware_i16_array(HARDWARE_power_values_dual)
42 #define POWER_OUTPUT_VALUES_DUAL_COUNT hardware_int(HARDWARE_power_values_dual_count)
44 // Input
45 #define GPIO_PIN_BUTTON hardware_pin(HARDWARE_button)
46 #define GPIO_PIN_BUTTON2 UNDEF_PIN
48 // Lighting
49 #define GPIO_PIN_LED_BLUE hardware_pin(HARDWARE_led_blue)
50 #define GPIO_LED_BLUE_INVERTED hardware_pin(HARDWARE_led_blue_invert)
51 #define GPIO_PIN_LED_GREEN hardware_pin(HARDWARE_led_green)
52 #define GPIO_LED_GREEN_INVERTED hardware_flag(HARDWARE_led_green_invert)
53 #define GPIO_PIN_LED_RED hardware_pin(HARDWARE_led)
54 #define GPIO_LED_RED_INVERTED hardware_pin(HARDWARE_led_red_invert)
56 #define GPIO_PIN_LED_WS2812 hardware_pin(HARDWARE_led_rgb)
57 #define OPT_WS2812_IS_GRB hardware_flag(HARDWARE_led_rgb_isgrb)
58 #define WS2812_STATUS_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_status)
59 #define WS2812_STATUS_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_status_count)
60 #define WS2812_VTX_STATUS_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_vtx)
61 #define WS2812_VTX_STATUS_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_vtx_count)
62 #define WS2812_BOOT_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_boot)
63 #define WS2812_BOOT_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_boot_count)
65 #define OPT_HAS_THERMAL false
66 #define OPT_HAS_THERMAL_LM75A false
68 #define OPT_USE_TX_BACKPACK false
69 #define GPIO_PIN_BACKPACK_EN UNDEF_PIN
70 #define OPT_HAS_GSENSOR false
71 #define OPT_HAS_GSENSOR_STK8xxx false
72 #define GPIO_PIN_GSENSOR_INT UNDEF_PIN