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 "COLI"
25 #define USBD_PRODUCT_STRING "Colibri"
27 #define USBD_SERIALNUMBER_STRING "0x8020000"
30 #define TARGET_XTAL_MHZ 16
36 #define BEEPER_PIN PC5
38 #define INVERTER_PIN_UART2 PB2 // PB2 used as inverter select GPIO
40 #define GYRO_1_CS_PIN PC4
41 #define GYRO_1_SPI_INSTANCE SPI1
44 #define USE_ACC_SPI_MPU6000
47 #define USE_GYRO_SPI_MPU6000
48 #define GYRO_1_ALIGN CW270_DEG_FLIP
53 #define GYRO_1_EXTI_PIN PC0
54 #define USE_MPU_DATA_READY_SIGNAL
57 #define USE_MAG_HMC5883
58 #define USE_MAG_QMC5883
59 #define MAG_HMC5883_ALIGN CW270_DEG_FLIP
61 #define MAG_INT_EXTI PC1
62 #define USE_MAG_DATA_READY_SIGNAL
63 #define ENSURE_MAG_DATA_READY_IS_HIGH
66 #define USE_BARO_MS5611
68 #define FLASH_CS_PIN PB12
69 #define FLASH_SPI_INSTANCE SPI2
72 #define USE_FLASH_M25P16
76 #define USE_USB_DETECT
77 #define USB_DETECT_PIN PA9
80 #define UART1_RX_PIN PB7
81 #define UART1_TX_PIN PB6
84 #define UART2_RX_PIN PA3
85 #define UART2_TX_PIN PA2
88 #define UART3_RX_PIN PB11
89 #define UART3_TX_PIN PB10
92 #define UART4_RX_PIN PC11
93 #define UART4_TX_PIN PC10
96 #define UART5_RX_PIN PD2
97 #define UART5_TX_PIN PC12
99 #define USE_SOFTSERIAL1
100 #define USE_SOFTSERIAL2
102 #define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, SOFTSERIAL x 2
104 #define USE_ESCSERIAL
105 #define ESCSERIAL_TIMER_TX_PIN PA10 // (HARDARE=0,PPM)
109 #define USE_SPI_DEVICE_1
110 #define SPI1_NSS_PIN PC4
111 #define SPI1_SCK_PIN PA5
112 #define SPI1_MISO_PIN PA6
113 #define SPI1_MOSI_PIN PA7
115 #define USE_SPI_DEVICE_2
116 #define SPI2_NSS_PIN PB12
117 #define SPI2_SCK_PIN PB13
118 #define SPI2_MISO_PIN PC2
119 #define SPI2_MOSI_PIN PC3
122 #define USE_I2C_DEVICE_3
123 #define I2C_DEVICE (I2CDEV_3)
127 // alternative defaults for Colibri/Gemini target
128 #define USE_TARGET_CONFIG
130 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
132 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
134 #define TARGET_IO_PORTA 0xffff
135 #define TARGET_IO_PORTB 0xffff
136 #define TARGET_IO_PORTC 0xffff
137 #define TARGET_IO_PORTD 0xffff
139 #define USABLE_TIMER_CHANNEL_COUNT 17
140 #define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(12) | TIM_N(8) | TIM_N(10) | TIM_N(11))