1 #define TARGET_UNIFIED_TX
3 #define HARDWARE_VERSION ""
5 // DEVICE_NAME is not defined here because we get it from the SPIFFS file system
7 #define GPIO_PIN_RCSIGNAL_RX hardware_pin(HARDWARE_serial_rx)
8 #define GPIO_PIN_RCSIGNAL_TX hardware_pin(HARDWARE_serial_tx)
11 #define GPIO_PIN_BUSY hardware_pin(HARDWARE_radio_busy)
12 #define GPIO_PIN_BUSY_2 hardware_pin(HARDWARE_radio_busy_2)
13 #define GPIO_PIN_DIO0 hardware_pin(HARDWARE_radio_dio0)
14 #define GPIO_PIN_DIO0_2 hardware_pin(HARDWARE_radio_dio0_2)
15 #define GPIO_PIN_DIO1 hardware_pin(HARDWARE_radio_dio1)
16 #define GPIO_PIN_DIO1_2 hardware_pin(HARDWARE_radio_dio1_2)
17 #define GPIO_PIN_DIO2 hardware_pin(HARDWARE_radio_dio2)
18 #define GPIO_PIN_MISO hardware_pin(HARDWARE_radio_miso)
19 #define GPIO_PIN_MOSI hardware_pin(HARDWARE_radio_mosi)
20 #define GPIO_PIN_NSS hardware_pin(HARDWARE_radio_nss)
21 #define GPIO_PIN_NSS_2 hardware_pin(HARDWARE_radio_nss_2)
22 #define GPIO_PIN_RST hardware_pin(HARDWARE_radio_rst)
23 #define GPIO_PIN_RST_2 hardware_pin(HARDWARE_radio_rst_2)
24 #define GPIO_PIN_SCK hardware_pin(HARDWARE_radio_sck)
25 #define USE_HARDWARE_DCDC
26 #define OPT_USE_HARDWARE_DCDC hardware_flag(HARDWARE_radio_dcdc)
29 #define GPIO_PIN_PA_ENABLE hardware_pin(HARDWARE_power_enable)
30 #define GPIO_PIN_RFamp_APC1 hardware_pin(HARDWARE_power_apc1)
31 #define GPIO_PIN_RFamp_APC2 hardware_pin(HARDWARE_power_apc2)
32 #define GPIO_PIN_RX_ENABLE hardware_pin(HARDWARE_power_rxen)
33 #define GPIO_PIN_TX_ENABLE hardware_pin(HARDWARE_power_txen)
34 #define LBT_RSSI_THRESHOLD_OFFSET_DB hardware_int(HARDWARE_power_lna_gain)
35 #define MinPower (PowerLevels_e)hardware_int(HARDWARE_power_min)
36 #define HighPower (PowerLevels_e)hardware_int(HARDWARE_power_high)
37 #define MaxPower (PowerLevels_e)hardware_int(HARDWARE_power_max)
38 #define DefaultPower (PowerLevels_e)hardware_int(HARDWARE_power_default)
40 //#define POWER_OUTPUT_DACWRITE (hardware_int(HARDWARE_power_control)==3)
41 #define POWER_OUTPUT_FIXED -99
42 #define POWER_OUTPUT_VALUES hardware_i16_array(HARDWARE_power_values)
43 #define POWER_OUTPUT_VALUES_COUNT hardware_int(HARDWARE_power_values_count)
44 #define POWER_OUTPUT_VALUES2 hardware_i16_array(HARDWARE_power_values)
45 #define POWER_OUTPUT_VALUES_DUAL hardware_i16_array(HARDWARE_power_values_dual)
46 #define POWER_OUTPUT_VALUES_DUAL_COUNT hardware_int(HARDWARE_power_values_dual_count)
49 #define GPIO_PIN_BUTTON hardware_pin(HARDWARE_button)
50 #define GPIO_PIN_BUTTON2 hardware_pin(HARDWARE_button2)
53 #define GPIO_PIN_LED hardware_pin(HARDWARE_led)
54 #define GPIO_PIN_LED_BLUE hardware_pin(HARDWARE_led_blue)
55 #define GPIO_LED_BLUE_INVERTED hardware_pin(HARDWARE_led_blue_invert)
56 #define GPIO_PIN_LED_GREEN hardware_pin(HARDWARE_led_green)
57 #define GPIO_LED_GREEN_INVERTED hardware_flag(HARDWARE_led_green_invert)
58 #define GPIO_PIN_LED_GREEN_RED hardware_pin(HARDWARE_led_green_red)
59 #define GPIO_PIN_LED_RED hardware_pin(HARDWARE_led_red)
60 #define GPIO_LED_RED_INVERTED hardware_pin(HARDWARE_led_red_invert)
61 #define GPIO_PIN_LED_RED_GREEN hardware_pin(HARDWARE_led_red_green)
62 #define GPIO_PIN_LED_WS2812 hardware_pin(HARDWARE_led_rgb)
63 // #define GPIO_PIN_LED_WS2812_FAST // stm32
65 #define OPT_WS2812_IS_GRB hardware_flag(HARDWARE_led_rgb_isgrb)
66 #define WS2812_STATUS_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_status)
67 #define WS2812_STATUS_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_status_count)
68 #define WS2812_VTX_STATUS_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_vtx)
69 #define WS2812_VTX_STATUS_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_vtx_count)
70 #define WS2812_BOOT_LEDS hardware_i16_array(HARDWARE_ledidx_rgb_boot)
71 #define WS2812_BOOT_LEDS_COUNT hardware_int(HARDWARE_ledidx_rgb_boot_count)
73 #define GPIO_PIN_FAN_EN hardware_pin(HARDWARE_misc_fan_en)