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/>.
22 #define TARGET_BOARD_IDENTIFIER "ELL0"
24 #define TARGET_XTAL_MHZ 25
26 #define USBD_PRODUCT_STRING "Elle0"
35 #define GYRO_1_EXTI_PIN PB5
36 //#define DEBUG_MPU_DATA_READY_INTERRUPT
37 #define USE_MPU_DATA_READY_SIGNAL
38 #define ENSURE_MPU_DATA_READY_IS_LOW
40 #define GYRO_1_CS_PIN PB12
41 #define GYRO_1_SPI_INSTANCE SPI2
43 // Using MPU6050 for the moment.
45 #define USE_GYRO_SPI_MPU6500
46 #define GYRO_1_ALIGN CW270_DEG
49 #define USE_ACC_SPI_MPU6500
52 //#define USE_BARO_MS5611
55 #define USE_MAG_AK8963
56 #define MAG_AK8963_ALIGN CW0_DEG_FLIP
60 /* Telemetry (Overlaps with DMA from motors) */
62 //#define UART1_RX_PIN PA10
63 //#define UART1_TX_PIN PA9
67 #define UART2_RX_PIN PA3
68 #define UART2_TX_PIN PA2
72 #define UART3_RX_PIN PB11
73 #define UART3_TX_PIN PB10
77 //#define UART5_RX_PIN PD2
78 //#define UART5_TX_PIN PC12
80 #define USE_SOFTSERIAL1
81 #define USE_SOFTSERIAL2
83 #define SERIAL_PORT_COUNT 5
87 #define USE_SPI_DEVICE_2 //MPU9250
88 #define SPI2_NSS_PIN PB12
89 #define SPI2_SCK_PIN PB13
90 #define SPI2_MISO_PIN PB14
91 #define SPI2_MOSI_PIN PB15
94 #define VBAT_ADC_PIN PC4
95 #define CURRENT_METER_ADC_PIN PC5
99 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
100 #define SERIALRX_PROVIDER SERIALRX_SPEKTRUM2048
101 #define SERIALRX_UART SERIAL_PORT_USART2
102 #define RX_CHANNELS_TAER
104 #define TARGET_IO_PORTA 0xffff
105 #define TARGET_IO_PORTB 0xffff
106 #define TARGET_IO_PORTC 0xffff
107 #define TARGET_IO_PORTD (BIT(2))
109 #define USABLE_TIMER_CHANNEL_COUNT 9
110 #define USED_TIMERS (TIM_N(2) | TIM_N(4) | TIM_N(5) | TIM_N(8))