Fix STM32 flashing options (#2997)
[ExpressLRS.git] / src / include / target / Frsky_TX_R9M_LITE_PRO.h
blobeb4d6816bd0967e155f299b5bc86fc7f53aa8168
1 #ifndef DEVICE_NAME
2 #define DEVICE_NAME "FrSky R9M Lt Pro"
3 #endif
5 #define TARGET_USE_EEPROM 1
6 #define TARGET_EEPROM_ADDR 0x51
8 // GPIO pin definitions
9 #define GPIO_PIN_RFamp_APC1 PA4 //2.7V
10 #define GPIO_PIN_RFamp_APC2 PA5
11 #define GPIO_PIN_RFswitch_CONTROL PA6 // confirmed //HIGH = RX, LOW = TX
13 #define GPIO_PIN_NSS PB12 // confirmed
14 #define GPIO_PIN_DIO0 PA8 // confirmed
15 #define GPIO_PIN_MOSI PB15
16 #define GPIO_PIN_MISO PB14
17 #define GPIO_PIN_SCK PB13
18 #define GPIO_PIN_RST PA9 // NRESET
19 #define GPIO_PIN_RX_ENABLE GPIO_PIN_RFswitch_CONTROL
20 #define GPIO_PIN_SDA PB9 // EEPROM ST M24C02-W
21 #define GPIO_PIN_SCL PB8 // EEPROM ST M24C02-W
22 #define GPIO_PIN_RCSIGNAL_RX PB11 // s.port inverter
23 #define GPIO_PIN_RCSIGNAL_TX PB10 // s.port inverter
24 #define GPIO_PIN_LED_GREEN PA15 // Green LED
25 //#define GPIO_PIN_LED_RED PB3 // Red LED
26 #define GPIO_PIN_LED_RED PB4 // Blue LED
28 #define GPIO_PIN_DEBUG_RX PA3 // inverted UART JR
29 #define GPIO_PIN_DEBUG_TX PA2 // inverted UART JR
31 #define GPIO_PIN_BUFFER_OE PB2 //CONFIRMED
32 #define GPIO_PIN_BUFFER_OE_INVERTED 1
33 #define GPIO_PIN_VRF1 PA7 // 26SU Switch RF1
34 #define GPIO_PIN_VRF2 PB1 // 26SU Switch RF2
35 #define GPIO_PIN_SWR PA0 // SWR ADC1_IN1
37 // Output Power
38 #define MinPower PWR_10mW
39 #define HighPower PWR_250mW
40 #define MaxPower PWR_1000mW
41 #define POWER_OUTPUT_ANALOG
42 #define POWER_OUTPUT_VALUES {600,770,950,1150,1480,2000,3500}