Populate unified targets as separate target folders
[betaflight.git] / src / main / target / MICROSCISKY / target.h
blob52593ec2b4792a0c1f00d14c3c0f5b2593b29928
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 "MSKY" // Micro sciSKY
25 #define LED0_PIN PB3
26 #define LED1_PIN PB4
28 #define USE_BEEPER
29 #define BEEPER_PIN PA12
31 #define BARO_XCLR_PIN PC13
32 #define BARO_EOC_PIN PC14
34 #define INVERTER_PIN_UART2 PB2 // PB2 (BOOT1) abused as inverter select GPIO
36 #define MAG_INT_EXTI PC14
37 #define USE_MAG_DATA_READY_SIGNAL
39 // SPI2
40 // PB15 28 SPI2_MOSI
41 // PB14 27 SPI2_MISO
42 // PB13 26 SPI2_SCK
43 // PB12 25 SPI2_NSS
45 #define USE_SPI
46 #define USE_SPI_DEVICE_2
48 #define USE_GYRO
49 #define USE_GYRO_MPU6050
50 #define GYRO_1_ALIGN CW0_DEG
52 #define USE_ACC
53 #define USE_ACC_MPU6050
55 #define USE_BARO
56 #define USE_BARO_MS5611
57 #define USE_BARO_BMP085
58 #define USE_BARO_BMP280
60 #define USE_MAG
61 #define USE_MAG_HMC5883
62 #define USE_MAG_QMC5883
63 #define MAG_HMC5883_ALIGN CW180_DEG
65 #define USE_UART1
66 #define USE_UART2
67 #define SERIAL_PORT_COUNT 2
69 #define USE_I2C
70 #define USE_I2C_DEVICE_2
71 #define I2C_DEVICE (I2CDEV_2)
73 #define BRUSHED_MOTORS
74 #define DEFAULT_FEATURES FEATURE_MOTOR_STOP
75 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
76 #define SERIALRX_PROVIDER SERIALRX_SPEKTRUM1024
77 #define SERIALRX_UART SERIAL_PORT_USART2
78 #define RX_CHANNELS_TAER
80 #undef USE_SERVOS
81 #define USE_QUAD_MIXER_ONLY
84 // IO - assuming all IOs on 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) )
89 #define USABLE_TIMER_CHANNEL_COUNT 14
90 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) )