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/>.
20 #define TARGET_BOARD_IDENTIFIER "ANY7"
22 #define USBD_PRODUCT_STRING "AnyFCF7"
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
37 #define MAG_I2C_BUS BUS_I2C2
40 #define TEMPERATURE_I2C_BUS BUS_I2C2
44 #ifdef ANYFCF7_EXTERNAL_BARO
45 #define BARO_I2C_BUS BUS_I2C2
46 #define USE_BARO_MS5611
47 #define USE_BARO_BMP085
48 #define USE_BARO_BMP280
50 #define BARO_I2C_BUS BUS_I2C4
51 #define USE_BARO_MS5611
54 #define PITOT_I2C_BUS BUS_I2C2
56 #define USE_RANGEFINDER
57 #define RANGEFINDER_I2C_BUS BUS_I2C2
60 #define VBUS_SENSING_PIN PA8
63 #define UART1_RX_PIN PA10
64 #define UART1_TX_PIN PA9
67 #define UART2_RX_PIN PD6
68 #define UART2_TX_PIN PD5
71 #define UART3_RX_PIN PD9
72 #define UART3_TX_PIN PD8
75 #define UART4_RX_PIN PC11
76 #define UART4_TX_PIN PC10
79 #define UART5_RX_PIN PD2
80 #define UART5_TX_PIN PC12
83 #define UART6_RX_PIN PC7
84 #define UART6_TX_PIN PC6
87 #define UART7_RX_PIN PE7
88 #define UART7_TX_PIN PE8
91 #define UART8_RX_PIN PE0
92 #define UART8_TX_PIN PE1
94 #define SERIAL_PORT_COUNT 9 //VCP, USART1, USART2, USART3, UART4, UART5, USART6, USART7, USART8
97 #define USE_SPI_DEVICE_1
98 #define USE_SPI_DEVICE_3
99 #define USE_SPI_DEVICE_4
101 #define SPI1_NSS_PIN PA4
102 #define SPI1_SCK_PIN PA5
103 #define SPI1_MISO_PIN PA6
104 #define SPI1_MOSI_PIN PA7
106 #define SPI3_NSS_PIN PD2
107 #define SPI3_SCK_PIN PC10
108 #define SPI3_MISO_PIN PC11
109 #define SPI3_MOSI_PIN PC12
111 #define SPI4_NSS_PIN PE11
112 #define SPI4_SCK_PIN PE12
113 #define SPI4_MISO_PIN PE13
114 #define SPI4_MOSI_PIN PE14
117 #define MAX7456_SPI_BUS BUS_SPI3
118 #define MAX7456_CS_PIN SPI3_NSS_PIN
121 #define USE_SDCARD_SPI
122 #define SDCARD_DETECT_INVERTED
123 #define SDCARD_DETECT_PIN PD3
124 #define SDCARD_SPI_BUS BUS_SPI4
125 #define SDCARD_CS_PIN SPI4_NSS_PIN
128 #define USE_I2C_DEVICE_4
129 #define USE_I2C_DEVICE_2
131 #define SENSORS_SET (SENSOR_ACC|SENSOR_MAG|SENSOR_BARO)
134 #define ADC_CHANNEL_1_PIN PC0
135 #define ADC_CHANNEL_2_PIN PC1
136 #define ADC_CHANNEL_3_PIN PC2
137 #define VBAT_ADC_CHANNEL ADC_CHN_1
138 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
139 #define RSSI_ADC_CHANNEL ADC_CHN_3
141 #define USE_LED_STRIP
142 #define WS2811_PIN PA1
144 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
146 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
147 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
148 #define SERIALRX_PROVIDER SERIALRX_SBUS
150 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
152 // Number of available PWM outputs
153 #define MAX_PWM_OUTPUT_PORTS 15
155 #define TARGET_IO_PORTA 0xffff
156 #define TARGET_IO_PORTB 0xffff
157 #define TARGET_IO_PORTC 0xffff
158 #define TARGET_IO_PORTD 0xffff
159 #define TARGET_IO_PORTE 0xffff