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
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
43 #define BARO_I2C_BUS BUS_I2C2
44 #define USE_BARO_MS5611
46 #define PITOT_I2C_BUS BUS_I2C2
49 #define VBUS_SENSING_PIN PA8
52 #define UART1_RX_PIN PA10
53 #define UART1_TX_PIN PA9
56 #define UART2_RX_PIN PA3
57 #define UART2_TX_PIN PA2
60 #define UART3_RX_PIN PB11
61 #define UART3_TX_PIN PB10
64 #define UART4_RX_PIN PC11
65 #define UART4_TX_PIN PC10
68 #define UART5_RX_PIN PD2
69 #define UART5_TX_PIN PC12
72 #define UART6_RX_PIN PC7
73 #define UART6_TX_PIN PC6
75 #define SERIAL_PORT_COUNT 5 //VCP, USART1, UART4, UART5, USART6
78 #define USE_SPI_DEVICE_1
79 #define USE_SPI_DEVICE_2
80 #define USE_SPI_DEVICE_3
82 #define SPI1_NSS_PIN PA4
83 #define SPI1_SCK_PIN PA5
84 #define SPI1_MISO_PIN PA6
85 #define SPI1_MOSI_PIN PA7
87 #define SPI2_NSS_PIN PB12
88 #define SPI2_SCK_PIN PB13
89 #define SPI2_MISO_PIN PC2
90 #define SPI2_MOSI_PIN PC1
92 #define SPI3_NSS_PIN PD2
93 #define SPI3_SCK_PIN PC10
94 #define SPI3_MISO_PIN PC11
95 #define SPI3_MOSI_PIN PC12
97 #define M25P16_CS_PIN PB12
98 #define M25P16_SPI_BUS BUS_SPI2
100 #define USE_FLASH_M25P16
101 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
104 #define MAX7456_SPI_BUS BUS_SPI3
105 #define MAX7456_CS_PIN SPI3_NSS_PIN
108 #define USE_I2C_DEVICE_2
111 #define ADC_CHANNEL_1_PIN PC0
112 #define VBAT_ADC_CHANNEL ADC_CHN_1
114 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
115 #define SERIALRX_PROVIDER SERIALRX_SBUS
117 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
119 // Number of available PWM outputs
120 #define MAX_PWM_OUTPUT_PORTS 15
122 #define TARGET_IO_PORTA 0xffff
123 #define TARGET_IO_PORTB 0xffff
124 #define TARGET_IO_PORTC 0xffff
125 #define TARGET_IO_PORTD 0xffff
126 #define TARGET_IO_PORTE 0xffff