Removed excess trailing spaces before new lines on licenses.
[betaflight.git] / src / main / target / EACHIF3 / target.h
blob4dbb690fca9eb504f219ade6ad63cdf1a4d44f92
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
23 #define TARGET_BOARD_IDENTIFIER "EACH" /* https://github.com/vladisenko/EachiWhoop */
25 #define LED0_PIN PA8
28 #define USE_EXTI
29 #define MPU_INT_EXTI PA15
30 #define USE_MPU_DATA_READY_SIGNAL
33 #define USE_SPI
34 #define USE_SPI_DEVICE_1
35 #define USE_SPI_DEVICE_2
38 #define MPU6500_SPI_INSTANCE SPI1
39 #define SPI1_SCK_PIN PB3
40 #define SPI1_MISO_PIN PB4
41 #define SPI1_MOSI_PIN PB5
42 #define MPU6500_CS_PIN PA5
45 #define USE_GYRO
46 #define USE_GYRO_SPI_MPU6500
47 #define GYRO_MPU6500_ALIGN CW90_DEG
49 #define USE_ACC
50 #define USE_ACC_SPI_MPU6500
51 #define ACC_MPU6500_ALIGN CW90_DEG
54 #define USE_RX_SPI
55 #define USE_RX_FLYSKY
56 #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_A7105_FLYSKY_2A
57 #define FLYSKY_2A_CHANNEL_COUNT 10
59 #define RX_SPI_INSTANCE SPI2
60 #define RX_IRQ_PIN PB12
61 #define SPI2_NSS_PIN PA4
62 #define SPI2_SCK_PIN PB13
63 #define SPI2_MISO_PIN PB14
64 #define SPI2_MOSI_PIN PB15
65 #define RX_NSS_PIN SPI2_NSS_PIN
66 #define BINDPLUG_PIN PA1
69 #define USE_I2C
70 #define USE_I2C_DEVICE_2
71 #define I2C_DEVICE (I2CDEV_2)
72 #define I2C2_SDA PA10
73 #define I2C2_SCL PA9
76 #define USE_BARO
77 #define USE_BARO_BMP280
78 #define USE_BARO_MS5611
81 #define SERIAL_PORT_COUNT 3
82 #define USE_VCP
83 #define USE_UART1
84 #define USE_UART2
87 #define UART1_TX_PIN PA9
88 #define UART1_RX_PIN PA10
90 #define UART2_RX_PIN PA2
91 #define UART2_TX_PIN PA3
94 #define USE_ADC
95 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
96 #define ADC_INSTANCE ADC1
97 #define VBAT_ADC_PIN PA0
98 #define VBAT_SCALE_DEFAULT 40
101 #undef USE_SERVOS
102 #undef USE_BEEPER
105 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
106 #define BRUSHED_MOTORS
108 #define DEFAULT_RX_FEATURE FEATURE_RX_SPI
109 #define DEFAULT_FEATURES (FEATURE_MOTOR_STOP)
112 #define USB_DETECT_PIN PC14
114 // IO - stm32f303cc in 48pin package
115 #define TARGET_IO_PORTA 0xffff
116 #define TARGET_IO_PORTB 0xffff
117 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
118 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
120 #define REMAP_TIM16_DMA
121 #define REMAP_TIM17_DMA
123 #define USABLE_TIMER_CHANNEL_COUNT 6
124 #define USED_TIMERS ( TIM_N(2) | TIM_N(8) | TIM_N(16) | TIM_N(17) )