vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / ANYFC / target.h
blob4e1abcc0d007c5463bb93622573233dddfea064a
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 "ANYF"
22 #define USBD_PRODUCT_STRING "AnyFC"
24 #define LED0 PB7
25 #define LED1 PB6
27 #define BEEPER PB2
28 #define BEEPER_INVERTED
30 #define MPU6000_CS_PIN PA4
31 #define MPU6000_SPI_BUS BUS_SPI1
33 #define USE_IMU_MPU6000
34 #define IMU_MPU6000_ALIGN CW270_DEG
36 #define USE_MAG
37 #define MAG_I2C_BUS BUS_I2C2
38 #define USE_MAG_ALL
40 #define TEMPERATURE_I2C_BUS BUS_I2C2
42 #define USE_RANGEFINDER
43 #define RANGEFINDER_I2C_BUS BUS_I2C2
45 #define USE_BARO
46 #define BARO_I2C_BUS BUS_I2C1
47 #define USE_BARO_MS5611
49 #define PITOT_I2C_BUS BUS_I2C2
51 #define USE_VCP
52 #define VBUS_SENSING_PIN PA8
54 #define USE_UART_INVERTER
56 #define USE_UART1
57 #define UART1_RX_PIN PA10
58 #define UART1_TX_PIN PA9
59 #define INVERTER_PIN_UART1_RX PC3
61 #define USE_UART2
62 #define UART2_RX_PIN PA3
63 #define UART2_TX_PIN PA2
65 #define USE_UART3
66 #define UART3_RX_PIN PB11
67 #define UART3_TX_PIN PB10
69 #define USE_UART4
70 #define UART4_RX_PIN PC11
71 #define UART4_TX_PIN PC10
73 #define USE_UART5
74 #define UART5_RX_PIN PD2
75 #define UART5_TX_PIN PC12
77 #define USE_UART6
78 #define UART6_RX_PIN PC7
79 #define UART6_TX_PIN PC6
81 #define SERIAL_PORT_COUNT 7 //VCP, UART1, UART2, UART3, UART4, UART5, UART6
83 #define USE_SPI
84 #define USE_SPI_DEVICE_1
86 #define USE_I2C
87 #define USE_I2C_DEVICE_1
88 #define USE_I2C_DEVICE_2
89 #define I2C_DEVICE_2_SHARES_UART3
90 //#define USE_I2C_PULLUP
92 #define USE_ADC
93 #define ADC_CHANNEL_1_PIN PC0
94 #define ADC_CHANNEL_2_PIN PC1
95 #define ADC_CHANNEL_3_PIN PC2
96 #define VBAT_ADC_CHANNEL ADC_CHN_1
97 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
98 #define RSSI_ADC_CHANNEL ADC_CHN_3
100 #define USE_LED_STRIP
101 #define WS2811_PIN PA0
103 #define SENSORS_SET (SENSOR_ACC|SENSOR_MAG|SENSOR_BARO)
105 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
107 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
109 // Number of available PWM outputs
110 #define MAX_PWM_OUTPUT_PORTS 15
112 #define TARGET_IO_PORTA 0xffff
113 #define TARGET_IO_PORTB 0xffff
114 #define TARGET_IO_PORTC 0xffff
115 #define TARGET_IO_PORTD 0xffff