Merge pull request #10757 from KarateBrot/biquadCrossfeed
[betaflight.git] / src / main / target / ELLE0 / target.h
blob237796aea75e61fc2f8dd86ace1bdbe9d767afd4
1 /*
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)
8 * any later version.
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/>.
21 #pragma once
22 #define TARGET_BOARD_IDENTIFIER "ELL0"
24 #define TARGET_XTAL_MHZ 25
26 #define USBD_PRODUCT_STRING "Elle0"
28 #define LED0_PIN PA8
29 #define LED1_PIN PB4
30 #define LED2_PIN PC2
32 // MPU9250 interrupt
33 #define USE_EXTI
34 #define USE_GYRO_EXTI
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.
44 #define USE_GYRO
45 #define USE_GYRO_SPI_MPU6500
46 #define GYRO_1_ALIGN CW270_DEG
48 #define USE_ACC
49 #define USE_ACC_SPI_MPU6500
51 //#define USE_BARO
52 //#define USE_BARO_MS5611
54 #define USE_MAG
55 #define USE_MAG_AK8963
56 #define MAG_AK8963_ALIGN CW0_DEG_FLIP
58 #define USE_VCP
60 /* Telemetry (Overlaps with DMA from motors) */
61 //#define USE_UART1
62 //#define UART1_RX_PIN PA10
63 //#define UART1_TX_PIN PA9
65 /* RX1 */
66 #define USE_UART2
67 #define UART2_RX_PIN PA3
68 #define UART2_TX_PIN PA2
70 /* I2C */
71 #define USE_UART3
72 #define UART3_RX_PIN PB11
73 #define UART3_TX_PIN PB10
75 /* RX2 */
76 //#define USE_UART5
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
85 #define USE_SPI
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
93 #define USE_ADC
94 #define VBAT_ADC_PIN PC4
95 #define CURRENT_METER_ADC_PIN PC5
97 #undef USE_LED_STRIP
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))