makes GPIO_PIN_RST optional for the sx1276
[ExpressLRS.git] / src / include / target / FM30_TX.h
blob4075d54293389ae249e0eb812278ffdac3fdbe83
1 #ifndef DEVICE_NAME
2 #define DEVICE_NAME "SIYI FM30"
3 #endif
5 // There is some special handling for this target
6 #define TARGET_TX_FM30
7 #define USE_SX1280_DCDC
9 // GPIO pin definitions
10 #define GPIO_PIN_NSS PB12
11 #define GPIO_PIN_DIO1 PB8
12 #define GPIO_PIN_MOSI PB15
13 #define GPIO_PIN_MISO PB14
14 #define GPIO_PIN_SCK PB13
15 #define GPIO_PIN_RST PB3
16 #define GPIO_PIN_TX_ENABLE PB9 // CTX on SE2431L
17 #define GPIO_PIN_ANT_CTRL PB4 // Low for left (stock), high for right (empty)
18 #define GPIO_PIN_RCSIGNAL_RX PA10 // UART1
19 #define GPIO_PIN_RCSIGNAL_TX PA9 // UART1
20 #define GPIO_PIN_BUFFER_OE PB7
21 #define GPIO_PIN_BUFFER_OE_INVERTED 0
22 #define GPIO_PIN_LED_RED PB2 // Right Red LED (active low)
23 #define GPIO_LED_RED_INVERTED 1
24 #define GPIO_PIN_LED_GREEN PA7 // Left Green LED (active low)
25 #define GPIO_LED_GREEN_INVERTED 1
26 #define GPIO_PIN_BUTTON PB0 // active low
27 #define GPIO_PIN_DEBUG_RX PA3 // UART2 (bluetooth)
28 #define GPIO_PIN_DEBUG_TX PA2 // UART2 (bluetooth)
29 #define GPIO_PIN_BLUETOOTH_EN PA8 // Bluetooth power on (active low)
30 // GPIO not currently used (but initialized)
31 #define GPIO_PIN_LED_RED_GREEN PB1 // Right Green LED (active low)
32 #define GPIO_PIN_LED_GREEN_RED PA15 // Left Red LED (active low)
33 #define GPIO_PIN_UART3RX_INVERT PB5 // Standalone inverter
34 #define GPIO_PIN_UART1RX_INVERT PB6 // XOR chip
35 #define GPIO_PIN_DIP1 PA0 // Rotary Switch 0001
36 #define GPIO_PIN_DIP2 PA1 // Rotary Switch 0010
37 #define GPIO_PIN_DIP3 PA4 // Rotary Switch 0100
38 #define GPIO_PIN_DIP4 PA5 // Rotary Switch 1000
39 //#define GPIO_PIN_RX_ENABLE UNDEF_PIN
40 //#define GPIO_PIN_BUZZER UNDEF_PIN
41 //#define GPIO_PIN_FAN_EN UNDEF_PIN
43 // Power output
44 #define MinPower PWR_10mW
45 #define HighPower PWR_100mW
46 #define MaxPower PWR_250mW
47 #define POWER_OUTPUT_VALUES {-15,-11,-7,-1,6}
49 #define Regulatory_Domain_ISM_2400 1