Fix STM32 flashing options (#2997)
[ExpressLRS.git] / src / include / target / FM30_RX_MINI.h
blob95fc272ee54b2ec2b2a26e5c2c5e1807fa0addd0
1 #if defined(RX_AS_TX)
2 #ifndef DEVICE_NAME
3 #define DEVICE_NAME "SIYI FR Mini"
4 #endif
5 // There is some special handling for this target
6 #define TARGET_TX_FM30_MINI
7 #else
8 // There is some special handling for this target
9 #define TARGET_RX_FM30_MINI
10 #ifndef DEVICE_NAME
11 #define DEVICE_NAME "SIYI FM30 MINI"
12 #endif
13 #endif
15 #define USE_HARDWARE_DCDC
17 // GPIO pin definitions
18 #define GPIO_PIN_NSS PA15
19 #define GPIO_PIN_BUSY PE9
20 #define GPIO_PIN_DIO1 PE8
21 #define GPIO_PIN_MOSI PB5
22 #define GPIO_PIN_MISO PB4
23 #define GPIO_PIN_SCK PB3
24 #define GPIO_PIN_RST PB2
25 #define GPIO_PIN_TX_ENABLE PD8 // CTX on SE2431L
26 #define GPIO_PIN_LED_RED PB6
27 #define GPIO_PIN_LED_GREEN PB7
28 #define GPIO_PIN_DEBUG_RX PA10 // UART1
29 #define GPIO_PIN_DEBUG_TX PA9 // UART1
30 #define GPIO_LED_RED_INVERTED 1
31 #define GPIO_LED_GREEN_INVERTED 1
32 #define GPIO_PIN_RCSIGNAL_TX PA2 // UART2 NOTE: Not the "OUT" pinheader pad
33 #define GPIO_PIN_ANT_CTRL PA8 // Low for left, high for right
34 #if defined(RX_AS_TX)
35 #define GPIO_PIN_RCSIGNAL_RX PA2 // UART2 (half duplex)
36 #else
37 #define GPIO_PIN_RCSIGNAL_RX PA3 // UART2
38 #endif
39 // Unused pins
40 #define GPIO_PIN_UART1TX_INVERT PF6
42 // Power output
43 #define MinPower PWR_10mW
44 #define HighPower PWR_100mW
45 #define MaxPower PWR_250mW
46 #define POWER_OUTPUT_VALUES {-15,-11,-7,-1,6}
47 #if !defined(RX_AS_TX)
48 #define DefaultPower PWR_100mW
49 #endif