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 "ANYM"
22 #define USBD_PRODUCT_STRING "AnyFCM7"
24 #define LED0 PB6 //red
25 #define LED1 PB9 //blue
27 #define BEEPER PB2 // Unused pin, can be mapped to elsewhere
28 #define BEEPER_INVERTED
30 #define MPU6000_CS_PIN PA4
31 #define MPU6000_SPI_BUS BUS_SPI1
34 #define USE_ACC_MPU6000
35 #define ACC_MPU6000_ALIGN CW270_DEG
38 #define USE_GYRO_MPU6000
39 #define GYRO_MPU6000_ALIGN CW270_DEG
42 #define USE_MPU_DATA_READY_SIGNAL
43 #define GYRO_INT_EXTI PC4
47 #define MAG_I2C_BUS BUS_I2C2
48 #define MAG_HMC5883_ALIGN CW270_DEG_FLIP
49 #define USE_MAG_HMC5883
50 #define USE_MAG_QMC5883
51 #define USE_MAG_IST8310
52 #define USE_MAG_IST8308
53 #define USE_MAG_MAG3110
54 #define USE_MAG_LIS3MDL
56 #define TEMPERATURE_I2C_BUS BUS_I2C2
59 #define BARO_I2C_BUS BUS_I2C2
60 #define USE_BARO_MS5611
62 #define PITOT_I2C_BUS BUS_I2C2
65 #define VBUS_SENSING_PIN PA8
68 #define UART1_RX_PIN PA10
69 #define UART1_TX_PIN PA9
72 #define UART2_RX_PIN PA3
73 #define UART2_TX_PIN PA2
76 #define UART3_RX_PIN PB11
77 #define UART3_TX_PIN PB10
80 #define UART4_RX_PIN PC11
81 #define UART4_TX_PIN PC10
84 #define UART5_RX_PIN PD2
85 #define UART5_TX_PIN PC12
88 #define UART6_RX_PIN PC7
89 #define UART6_TX_PIN PC6
91 #define SERIAL_PORT_COUNT 5 //VCP, USART1, UART4, UART5, USART6
94 #define USE_SPI_DEVICE_1
95 #define USE_SPI_DEVICE_2
96 #define USE_SPI_DEVICE_3
98 #define SPI1_NSS_PIN PA4
99 #define SPI1_SCK_PIN PA5
100 #define SPI1_MISO_PIN PA6
101 #define SPI1_MOSI_PIN PA7
103 #define SPI2_NSS_PIN PB12
104 #define SPI2_SCK_PIN PB13
105 #define SPI2_MISO_PIN PC2
106 #define SPI2_MOSI_PIN PC1
108 #define SPI3_NSS_PIN PD2
109 #define SPI3_SCK_PIN PC10
110 #define SPI3_MISO_PIN PC11
111 #define SPI3_MOSI_PIN PC12
113 #define M25P16_CS_PIN PB12
114 #define M25P16_SPI_BUS BUS_SPI2
116 #define USE_FLASH_M25P16
117 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
121 #define MAX7456_SPI_BUS BUS_SPI3
122 #define MAX7456_CS_PIN SPI3_NSS_PIN
125 #define USE_I2C_DEVICE_2
128 #define ADC_CHANNEL_1_PIN PC0
129 #define VBAT_ADC_CHANNEL ADC_CHN_1
131 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
132 #define SERIALRX_PROVIDER SERIALRX_SBUS
134 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
136 // Number of available PWM outputs
137 #define MAX_PWM_OUTPUT_PORTS 15
139 #define TARGET_IO_PORTA 0xffff
140 #define TARGET_IO_PORTB 0xffff
141 #define TARGET_IO_PORTC 0xffff
142 #define TARGET_IO_PORTD 0xffff
143 #define TARGET_IO_PORTE 0xffff
145 #define PCA9685_I2C_BUS BUS_I2C2