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 "AFF1" // AlienFlight F1.
24 #define USE_TARGET_CONFIG
30 #define BEEPER_PIN PA12
33 #define MAG_INT_EXTI PC14
34 #define USE_MPU_DATA_READY_SIGNAL
37 #define USE_GYRO_MPU6050
39 #define GYRO_1_ALIGN CW0_DEG
42 #define USE_ACC_MPU6050
48 #define USE_SOFTSERIAL1
49 #define USE_SOFTSERIAL2
50 #define SERIAL_PORT_COUNT 5
52 #define UART3_RX_PIN PB11
53 #define UART3_TX_PIN PB10
56 #define USE_I2C_DEVICE_2
57 #define I2C_DEVICE (I2CDEV_2)
60 #define CURRENT_METER_ADC_PIN PB1
61 #define VBAT_ADC_PIN PA4
62 #define RSSI_ADC_PIN PA1
63 #define EXTERNAL1_ADC_PIN PA5
65 #define BINDPLUG_PIN PB5
67 #define DEFAULT_FEATURES FEATURE_MOTOR_STOP
68 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
69 #define SERIALRX_PROVIDER SERIALRX_SPEKTRUM2048
70 #define SERIALRX_UART SERIAL_PORT_USART2
71 #define RX_CHANNELS_TAER
73 // IO - assuming all IOs on 48pin package
74 #define TARGET_IO_PORTA 0xffff
75 #define TARGET_IO_PORTB 0xffff
76 #define TARGET_IO_PORTC ( BIT(13) | BIT(14) | BIT(15) )
78 #define USABLE_TIMER_CHANNEL_COUNT 14
79 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) )