vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / REVO / target.h
blob713c1a8ce38bae358daa22906f9ff486a1ccaa57
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "REVO"
22 #define USBD_PRODUCT_STRING "Revolution"
24 // Use target-specific MAG hardware descriptors (don't use common_hardware.h)
25 #define USE_TARGET_MAG_HARDWARE_DESCRIPTORS
27 #define LED0 PB5
28 #define LED1 PB4
30 #define BEEPER PB4
32 #define USE_DSHOT
33 #define USE_ESC_SENSOR
35 #define USE_IMU_MPU6000
36 #define IMU_MPU6000_ALIGN CW270_DEG
37 #define MPU6000_CS_PIN PA4
38 #define MPU6000_SPI_BUS BUS_SPI1
40 #define USE_MAG
41 #define USE_DUAL_MAG
42 #define MAG_I2C_BUS_EXT BUS_I2C2
43 #define MAG_I2C_BUS_INT BUS_I2C1
44 #define USE_MAG_ALL
46 #define TEMPERATURE_I2C_BUS BUS_I2C2
48 #define USE_BARO
49 #define BARO_I2C_BUS BUS_I2C1
50 #define USE_BARO_MS5611
52 #define PITOT_I2C_BUS BUS_I2C2
54 #define USE_RANGEFINDER
55 #define RANGEFINDER_I2C_BUS BUS_I2C2
57 #define M25P16_CS_PIN PB3
58 #define M25P16_SPI_BUS BUS_SPI3
60 #define USE_FLASHFS
61 #define USE_FLASH_M25P16
63 #define USE_VCP
64 #define VBUS_SENSING_PIN PC5
65 #define VBUS_SENSING_ENABLED
67 #define USE_UART_INVERTER
69 #define USE_UART1
70 #define UART1_RX_PIN PA10
71 #define UART1_TX_PIN PA9
72 #define UART1_AHB1_PERIPHERALS RCC_AHB1Periph_DMA2
73 // PC0 used as inverter select GPIO
74 #define INVERTER_PIN_UART1_RX PC0
76 #define USE_UART3
77 #define I2C_DEVICE_2_SHARES_UART3
78 #define UART3_RX_PIN PB11
79 #define UART3_TX_PIN PB10
81 #define USE_UART6
82 #define UART6_RX_PIN PC7
83 #define UART6_TX_PIN PC6
85 // #define USE_SOFTSERIAL1
86 // #define SOFTSERIAL_1_RX_PIN PC8
87 // #define SOFTSERIAL_1_TX_PIN PC9
89 #define SERIAL_PORT_COUNT 4 //VCP, USART1, USART3, USART6
91 #define USE_SPI
93 #define USE_SPI_DEVICE_1
95 #define USE_SPI_DEVICE_3
96 #define SPI3_NSS_PIN PB3
97 #define SPI3_SCK_PIN PC10
98 #define SPI3_MISO_PIN PC11
99 #define SPI3_MOSI_PIN PC12
101 #define USE_I2C
102 #define USE_I2C_DEVICE_1
103 #define USE_I2C_DEVICE_2
105 #define USE_ADC
106 #define ADC_CHANNEL_1_PIN PC1
107 #define ADC_CHANNEL_2_PIN PC2
108 #define ADC_CHANNEL_3_PIN PA0
109 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_1
110 #define VBAT_ADC_CHANNEL ADC_CHN_2
111 #define RSSI_ADC_CHANNEL ADC_CHN_3
114 #define SENSORS_SET (SENSOR_ACC|SENSOR_MAG|SENSOR_BARO)
116 #define USE_LED_STRIP
117 #define WS2811_PIN PA1
119 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
121 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
122 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
124 #define USE_SPEKTRUM_BIND
125 #define BIND_PIN PB11 //UART3_RX_PIN
127 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
129 // Number of available PWM outputs
130 #define MAX_PWM_OUTPUT_PORTS 10
132 #define TARGET_IO_PORTA 0xffff
133 #define TARGET_IO_PORTB 0xffff
134 #define TARGET_IO_PORTC 0xffff
135 #define TARGET_IO_PORTD 0xffff