forked from ExpressLRS/ExpressLRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FM30_RX_MINI.h
54 lines (51 loc) · 1.84 KB
/
FM30_RX_MINI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#if defined(RX_AS_TX)
#ifndef DEVICE_NAME
#define DEVICE_NAME "SIYI FR Mini"
#endif
// There is some special handling for this target
#define TARGET_TX_FM30_MINI
#else
// There is some special handling for this target
#define TARGET_RX_FM30_MINI
#ifndef DEVICE_NAME
#define DEVICE_NAME "SIYI FM30 MINI"
#endif
#endif
#define USE_SX1280_DCDC
// GPIO pin definitions
#define GPIO_PIN_NSS PA15
#define GPIO_PIN_BUSY PE9
#define GPIO_PIN_DIO1 PE8
#define GPIO_PIN_MOSI PB5
#define GPIO_PIN_MISO PB4
#define GPIO_PIN_SCK PB3
#define GPIO_PIN_RST PB2
#define GPIO_PIN_TX_ENABLE PD8 // CTX on SE2431L
#define GPIO_PIN_LED_RED PB6
#define GPIO_PIN_LED_GREEN PB7
#define GPIO_PIN_DEBUG_RX PA10 // UART1
#define GPIO_PIN_DEBUG_TX PA9 // UART1
#define GPIO_LED_RED_INVERTED 1
#define GPIO_LED_GREEN_INVERTED 1
#define GPIO_PIN_RCSIGNAL_TX PA2 // UART2 NOTE: Not the "OUT" pinheader pad
#if defined(RX_AS_TX)
#define GPIO_PIN_RCSIGNAL_RX PA2 // UART2 (half duplex)
#define GPIO_PIN_ANT_CTRL_2 PA8 // Low for left, high for right
#else
#define GPIO_PIN_RCSIGNAL_RX PA3 // UART2
#define GPIO_PIN_ANTENNA_SELECT PA8 // Low for left, high for right
#endif
// Unused pins
#define GPIO_PIN_UART1TX_INVERT PF6
// Power output
#if defined(RX_AS_TX)
#define MinPower PWR_10mW
#define HighPower PWR_100mW
#define MaxPower PWR_250mW
#define POWER_OUTPUT_VALUES {-15,-11,-7,-1,6}
#else
#define MinPower PWR_10mW
#define MaxPower PWR_100mW
#define DefaultPower PWR_100mW
#define POWER_OUTPUT_VALUES {-10,-6,-3,1} //has PA, use Power array
#endif