Create release.yml
[betaflight.git] / src / main / target / IRCFUSIONF3 / target.h
blob20ec4ebe1f2ac3aada3434729d2237d37461159c
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 "IFF3"
26 #define LED0_PIN PB3
28 #define USE_EXTI
29 #define USE_GYRO_EXTI
30 #define GYRO_1_EXTI_PIN PC13
31 #define USE_MPU_DATA_READY_SIGNAL
32 #define ENSURE_MPU_DATA_READY_IS_LOW
34 #define USE_GYRO
35 #define USE_GYRO_MPU6050
36 #define GYRO_1_ALIGN CW270_DEG
38 #define USE_ACC
39 #define USE_ACC_MPU6050
41 #define USE_BARO
42 #define USE_BARO_BMP085
44 #define USE_FLASHFS
45 #define USE_FLASH_M25P16
47 #define USE_UART1
48 #define USE_UART2
49 #define USE_UART3
50 #define USE_SOFTSERIAL1
51 #define USE_SOFTSERIAL2
53 #define SERIAL_PORT_COUNT 5
55 #define USE_ESCSERIAL
56 #define ESCSERIAL_TIMER_TX_PIN PA0 // (HARDARE=0,PPM)
58 #define UART1_TX_PIN PA9
59 #define UART1_RX_PIN PA10
61 #define UART2_TX_PIN PA14
62 #define UART2_RX_PIN PA15
64 #define UART3_TX_PIN PB10
65 #define UART3_RX_PIN PB11
67 #define USE_I2C
68 #define USE_I2C_DEVICE_1
69 #define I2C_DEVICE (I2CDEV_1)
71 #define USE_SPI
72 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
74 #define FLASH_CS_PIN PB12
75 #define FLASH_SPI_INSTANCE SPI2
77 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
78 #define USE_ADC
79 #define ADC_INSTANCE ADC2
80 #define VBAT_ADC_PIN PA4
81 #define CURRENT_METER_ADC_PIN PA5
82 #define RSSI_ADC_PIN PB2
84 // IO - stm32f303cc in 48pin package
85 #define TARGET_IO_PORTA 0xffff
86 #define TARGET_IO_PORTB 0xffff
87 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
88 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
90 #define USABLE_TIMER_CHANNEL_COUNT 17
91 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(15) | TIM_N(17))