2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
23 #define TARGET_BOARD_IDENTIFIER "ANY7"
25 #define USBD_PRODUCT_STRING "AnyFCF7"
31 #define BEEPER_PIN PB2 // Unused pin, can be mapped to elsewhere
32 #define BEEPER_INVERTED
34 #define GYRO_1_CS_PIN PA4
35 #define GYRO_1_SPI_INSTANCE SPI1
38 #define USE_ACC_SPI_MPU6000
41 #define USE_GYRO_SPI_MPU6000
42 #define GYRO_1_ALIGN CW270_DEG
45 #define USE_MPU_DATA_READY_SIGNAL
48 #define GYRO_1_EXTI_PIN PC4
52 #define USE_MAG_HMC5883
53 #define USE_MAG_QMC5883
54 #define MAG_I2C_INSTANCE (I2CDEV_2)
56 //#define MAG_HMC5883_ALIGN CW270_DEG_FLIP
57 //#define MAG_HMC5883_ALIGN CW90_DEG
60 #define USE_BARO_MS5611
61 #define USE_BARO_BMP280
62 #define BARO_I2C_INSTANCE (I2CDEV_2)
64 #define USABLE_TIMER_CHANNEL_COUNT 16
67 #define USE_USB_DETECT
68 #define USB_DETECT_PIN PA8
71 #define UART1_RX_PIN PA10
72 #define UART1_TX_PIN PA9
75 #define UART2_RX_PIN PD6
76 #define UART2_TX_PIN PD5
79 #define UART3_RX_PIN PD9
80 #define UART3_TX_PIN PD8
83 #define UART4_RX_PIN PC11
84 #define UART4_TX_PIN PC10
87 #define UART5_RX_PIN PD2
88 #define UART5_TX_PIN PC12
91 #define UART6_RX_PIN PC7
92 #define UART6_TX_PIN PC6
95 #define UART7_RX_PIN PE7
96 #define UART7_TX_PIN PE8
99 #define UART8_RX_PIN PE0
100 #define UART8_TX_PIN PE1
102 #define USE_SOFTSERIAL1
103 #define USE_SOFTSERIAL2
105 #define SERIAL_PORT_COUNT 11 //VCP, USART1, USART2, USART3, UART4, UART5, USART6, USART7, USART8, SOFTSERIAL x 2
107 #define USE_ESCSERIAL
108 #define ESCSERIAL_TIMER_TX_PIN PB14 // (Hardware=0, PPM)
111 #define USE_SPI_DEVICE_1
112 #define USE_SPI_DEVICE_3
113 #define USE_SPI_DEVICE_4
115 #define SPI1_NSS_PIN PA4
116 #define SPI1_SCK_PIN PA5
117 #define SPI1_MISO_PIN PA6
118 #define SPI1_MOSI_PIN PA7
120 #define SPI3_NSS_PIN PD2
121 #define SPI3_SCK_PIN PC10
122 #define SPI3_MISO_PIN PC11
123 #define SPI3_MOSI_PIN PC12
125 #define SPI4_NSS_PIN PE11
126 #define SPI4_SCK_PIN PE12
127 #define SPI4_MISO_PIN PE13
128 #define SPI4_MOSI_PIN PE14
131 #define MAX7456_SPI_INSTANCE SPI3
132 #define MAX7456_SPI_CS_PIN SPI3_NSS_PIN
135 #define USE_SDCARD_SPI
136 #define SDCARD_DETECT_INVERTED
137 #define SDCARD_DETECT_PIN PD3
138 #define SDCARD_SPI_INSTANCE SPI4
139 #define SDCARD_SPI_CS_PIN SPI4_NSS_PIN
140 #define SPI4_TX_DMA_OPT 0 // DMA 2 Stream 1 Channel 4
143 #define USE_I2C_DEVICE_2 // External I2C
144 #define USE_I2C_DEVICE_4 // Onboard I2C
145 #define I2C_DEVICE (I2CDEV_2)
148 #define VBAT_ADC_PIN PC0
149 #define CURRENT_METER_ADC_PIN PC1
150 #define RSSI_ADC_PIN PC2
152 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
154 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
155 #define SERIALRX_PROVIDER SERIALRX_SBUS
157 #define TARGET_IO_PORTA 0xffff
158 #define TARGET_IO_PORTB 0xffff
159 #define TARGET_IO_PORTC 0xffff
160 #define TARGET_IO_PORTD 0xffff
161 #define TARGET_IO_PORTE 0xffff
163 #define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(8) | TIM_N(9) | TIM_N(12) )