vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / TAKERF722SE / target.h
blob599d5610ad45a6e8acc52c4e53ca95b060c7bf7f
1 /*
2 * This file is part of INAV Project.
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 * INAV 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 INAV. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "GEPR"
22 #define USBD_PRODUCT_STRING "TAKERF722SE"
24 #define LED0 PC14
27 // *************** BEEPER ************************
29 #define BEEPER PC13
30 #define BEEPER_INVERTED
33 // *************** LEDSTRIP ************************
34 #define USE_LED_STRIP
35 #define WS2811_PIN PA8
38 // *************** UART *****************************
39 #define USE_VCP
41 #define USE_UART1
42 #define UART1_TX_PIN PA9
43 #define UART1_RX_PIN PA10
45 #define USE_UART2
46 #define UART2_TX_PIN PA2
47 #define UART2_RX_PIN PA3
49 #define USE_UART3
50 #define UART3_TX_PIN PB10
51 #define UART3_RX_PIN PB11
53 #define USE_UART4
54 #define UART4_TX_PIN PA0
55 #define UART4_RX_PIN PA1
57 #define USE_UART5
58 #define UART5_TX_PIN PC12
59 #define UART5_RX_PIN PD2
61 #define USE_UART6
62 #define UART6_TX_PIN PC6
63 #define UART6_RX_PIN PC7
66 #define SERIAL_PORT_COUNT 7
68 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
69 #define SERIALRX_PROVIDER SERIALRX_SBUS
70 #define SERIALRX_UART SERIAL_PORT_USART2
73 // *************** SPI Bus **********************
75 #define USE_SPI
77 #define USE_SPI_DEVICE_1
78 #define SPI1_SCK_PIN PA5
79 #define SPI1_MISO_PIN PA6
80 #define SPI1_MOSI_PIN PA7
82 #define USE_SPI_DEVICE_2
83 #define SPI2_SCK_PIN PB13
84 #define SPI2_MISO_PIN PB14
85 #define SPI2_MOSI_PIN PB15
87 #define USE_SPI_DEVICE_3
88 #define SPI3_SCK_PIN PC10
89 #define SPI3_MISO_PIN PC11
90 #define SPI3_MOSI_PIN PB2
91 #define SPI3_SCK_AF GPIO_AF6_SPI3
92 #define SPI3_MISO_AF GPIO_AF6_SPI3
93 #define SPI3_MOSI_AF GPIO_AF7_SPI3
96 // *************** Gyro & ACC **********************
98 #define USE_IMU_MPU6000
99 #define IMU_MPU6000_ALIGN CW0_DEG
100 #define MPU6000_CS_PIN PA4
101 #define MPU6000_SPI_BUS BUS_SPI1
104 #define USE_IMU_ICM42605
105 #define IMU_ICM42605_ALIGN CW0_DEG
106 #define ICM42605_CS_PIN PA4
107 #define ICM42605_SPI_BUS BUS_SPI1
109 // *************** I2C/Baro/Mag *********************
110 #define USE_I2C
111 #define USE_I2C_DEVICE_1
112 #define I2C1_SCL PB8
113 #define I2C1_SDA PB9
116 //***************************************************
117 #define USE_BARO
118 #define BARO_I2C_BUS BUS_I2C1
119 #define USE_BARO_BMP280
120 #define USE_BARO_DPS310
121 #define USE_BARO_MS5611
123 #define USE_MAG
124 #define USE_MAG_ALL
125 #define MAG_I2C_BUS BUS_I2C1
127 #define TEMPERATURE_I2C_BUS BUS_I2C1
129 #define PITOT_I2C_BUS BUS_I2C1
131 #define USE_RANGEFINDER
132 #define RANGEFINDER_I2C_BUS BUS_I2C1
133 #define BNO055_I2C_BUS BUS_I2C1
135 // *************** FLASH **************************
137 #define USE_FLASHFS
139 #define USE_FLASH_M25P16
140 #define M25P16_CS_PIN PA15
141 #define M25P16_SPI_BUS BUS_SPI3
143 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
145 // *************** OSD *****************************
147 #define USE_MAX7456
148 #define MAX7456_SPI_BUS BUS_SPI2
149 #define MAX7456_CS_PIN PB12
151 // *************** ADC *****************************
153 #define USE_ADC
154 #define ADC_INSTANCE ADC1
155 #define ADC1_DMA_STREAM DMA2_Stream0
156 #define ADC_CHANNEL_1_PIN PC3
157 #define ADC_CHANNEL_2_PIN PC0
158 #define ADC_CHANNEL_3_PIN PC2
160 #define VBAT_ADC_CHANNEL ADC_CHN_1
161 #define RSSI_ADC_CHANNEL ADC_CHN_2
162 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_3
165 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_CURRENT_METER | FEATURE_TELEMETRY | FEATURE_VBAT | FEATURE_OSD | FEATURE_BLACKBOX)
170 //**************************************************
172 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
174 #define TARGET_IO_PORTA 0xffff
175 #define TARGET_IO_PORTB 0xffff
176 #define TARGET_IO_PORTC 0xffff
177 #define TARGET_IO_PORTD (BIT(2))
180 #define MAX_PWM_OUTPUT_PORTS 8
182 #define USE_DSHOT
183 #define USE_ESC_SENSOR