Removed excess trailing spaces before new lines on licenses.
[betaflight.git] / src / main / target / MICROSCISKY / target.h
bloba4f573e284027cd7016fec3b32565e8d7d2046df
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 USE_EXTI
37 #define MAG_INT_EXTI PC14
38 //#define DEBUG_MPU_DATA_READY_INTERRUPT
39 #define USE_MPU_DATA_READY_SIGNAL
40 //#define DEBUG_MAG_DATA_READY_INTERRUPT
41 #define USE_MAG_DATA_READY_SIGNAL
43 // SPI2
44 // PB15 28 SPI2_MOSI
45 // PB14 27 SPI2_MISO
46 // PB13 26 SPI2_SCK
47 // PB12 25 SPI2_NSS
49 #define USE_SPI
50 #define USE_SPI_DEVICE_2
52 #define USE_GYRO
53 #define USE_GYRO_MPU6050
54 #define GYRO_MPU6050_ALIGN CW0_DEG
56 #define USE_ACC
57 #define USE_ACC_MPU6050
58 #define ACC_MPU6050_ALIGN CW0_DEG
60 #define USE_BARO
61 #define USE_BARO_MS5611
62 #define USE_BARO_BMP085
63 #define USE_BARO_BMP280
65 #define USE_MAG
66 #define USE_MAG_HMC5883
67 #define USE_MAG_QMC5883
68 #define MAG_HMC5883_ALIGN CW180_DEG
70 #define USE_UART1
71 #define USE_UART2
72 #define SERIAL_PORT_COUNT 2
74 #define USE_I2C
75 #define USE_I2C_DEVICE_2
76 #define I2C_DEVICE (I2CDEV_2)
78 #define BRUSHED_MOTORS
79 #define DEFAULT_FEATURES FEATURE_MOTOR_STOP
80 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
81 #define SERIALRX_PROVIDER SERIALRX_SPEKTRUM1024
82 #define SERIALRX_UART SERIAL_PORT_USART2
83 #define RX_CHANNELS_TAER
85 #undef USE_SERVOS
86 #define USE_QUAD_MIXER_ONLY
89 // IO - assuming all IOs on 48pin package
90 #define TARGET_IO_PORTA 0xffff
91 #define TARGET_IO_PORTB 0xffff
92 #define TARGET_IO_PORTC ( BIT(13) | BIT(14) | BIT(15) )
94 #define USABLE_TIMER_CHANNEL_COUNT 14
95 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) )