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 "ELF7"
24 #define USBD_PRODUCT_STRING "ElinF722"
26 #define USE_TARGET_CONFIG
30 #define BEEPER_PIN PB4
35 #define USE_GYRO_SPI_MPU6500
36 #define GYRO_1_ALIGN CW0_DEG
37 #define GYRO_1_CS_PIN PA4
38 #define GYRO_1_SPI_INSTANCE SPI1
40 #define USE_ACC_SPI_MPU6500
44 #define GYRO_1_EXTI_PIN PC4
45 #define USE_MPU_DATA_READY_SIGNAL
48 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_SOFTSERIAL)
50 #define MAX7456_SPI_INSTANCE SPI2
51 #define MAX7456_SPI_CS_PIN PC8
53 #define FLASH_CS_PIN PB3
54 #define FLASH_SPI_INSTANCE SPI3
56 #define USE_FLASH_M25P16
59 #define USE_USB_DETECT
60 #define USB_DETECT_PIN PC15
63 #define UART1_RX_PIN PA10
64 #define UART1_TX_PIN PA9
67 #define UART3_RX_PIN PB11
68 #define UART3_TX_PIN PB10
71 #define UART4_RX_PIN PA1
72 #define UART4_TX_PIN PA0
75 #define UART6_RX_PIN PC7
76 #define UART6_TX_PIN PC6
78 #define USE_SOFTSERIAL1
79 #define SOFTSERIAL1_TX_PIN PC9
81 #define USE_SOFTSERIAL2
82 #define SOFTSERIAL2_RX_PIN PA8
84 #define SERIAL_PORT_COUNT 7 //VCP, USART1, USART3, UART4, USART6, SOFTSERIAL x 2
88 #define USE_SPI_DEVICE_1
89 #define SPI1_NSS_PIN PA4
90 #define SPI1_SCK_PIN PA5
91 #define SPI1_MISO_PIN PA6
92 #define SPI1_MOSI_PIN PA7
94 #define USE_SPI_DEVICE_2
95 #define SPI2_NSS_PIN PB12
96 #define SPI2_SCK_PIN PB13
97 #define SPI2_MISO_PIN PB14
98 #define SPI2_MOSI_PIN PB15
100 #define USE_SPI_DEVICE_3
101 #define SPI3_NSS_PIN PB3
102 #define SPI3_SCK_PIN PC10
103 #define SPI3_MISO_PIN PC11
104 #define SPI3_MOSI_PIN PC12
107 #define USE_I2C_DEVICE_1
108 #define I2C_DEVICE (I2CDEV_1)
113 #define CURRENT_METER_ADC_PIN PC1
114 #define VBAT_ADC_PIN PC2
115 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
116 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
118 #define USE_TRANSPONDER
119 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
120 #define SERIALRX_PROVIDER SERIALRX_SBUS
121 #define SERIALRX_UART SERIAL_PORT_USART1
123 #define DEFAULT_MIXER MIXER_QUADX
124 #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON
125 #define USE_ESCSERIAL
126 #define ESCSERIAL_TIMER_TX_PIN PB6
129 #define USE_BARO_MS5611
130 #define USE_BARO_BMP085
131 #define USE_BARO_BMP280
134 #define USE_MAG_HMC5883
135 #define USE_MAG_QMC5883
136 #define USE_MAG_AK8963
137 #define USE_MAG_AK8975
139 #define PINIO1_PIN PC13
140 #define PINIO2_PIN PC14
142 #define TARGET_IO_PORTA 0xffff
143 #define TARGET_IO_PORTB 0xffff
144 #define TARGET_IO_PORTC 0xffff
145 #define TARGET_IO_PORTD (BIT(2))
147 #define USABLE_TIMER_CHANNEL_COUNT 8
148 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) )