2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
20 #define TARGET_BOARD_IDENTIFIER "COLI"
23 #define USBD_PRODUCT_STRING "Quanton"
25 #define USBD_PRODUCT_STRING "Colibri"
28 #define USBD_SERIALNUMBER_STRING "0x8020000"
39 #define MPU6000_CS_PIN PC4
40 #define MPU6000_SPI_BUS BUS_SPI1
42 #define USE_IMU_MPU6000
46 #define GYRO_INT_EXTI PC0
47 #define USE_MPU_DATA_READY_SIGNAL
50 #define MAG_I2C_BUS BUS_I2C3
51 #define USE_MAG_HMC5883
52 #define USE_MAG_QMC5883
53 #define USE_MAG_IST8310
54 #define USE_MAG_IST8308
55 #define USE_MAG_MAG3110
56 #define USE_MAG_LIS3MDL
58 #define TEMPERATURE_I2C_BUS BUS_I2C3
59 #define BNO055_I2C_BUS BUS_I2C3
62 #define IMU_MPU6000_ALIGN CW90_DEG
64 #define IMU_MPU6000_ALIGN CW270_DEG_FLIP
68 #define BARO_I2C_BUS BUS_I2C3
69 #define USE_BARO_MS5611
71 #define M25P16_CS_PIN PB12
72 #define M25P16_SPI_BUS BUS_SPI2
75 #define USE_FLASH_M25P16
78 #define VBUS_SENSING_PIN PA9
80 #define USE_UART_INVERTER
83 #define UART1_RX_PIN PB7
84 #define UART1_TX_PIN PB6
85 #define UART1_AHB1_PERIPHERALS RCC_AHB1Periph_DMA2
88 #define UART2_RX_PIN PA3
89 #define UART2_TX_PIN PA2
90 #define INVERTER_PIN_UART2_RX PB2 // PB2 used as inverter select GPIO
93 #define UART3_RX_PIN PB11
94 #define UART3_TX_PIN PB10
97 #define UART4_RX_PIN PC11
98 #define UART4_TX_PIN PC10
101 #define UART5_RX_PIN PD2
102 #define UART5_TX_PIN PC12
104 #define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, UART4, UART5
108 #define USE_SPI_DEVICE_1
109 #define SPI1_NSS_PIN PC4
110 #define SPI1_SCK_PIN PA5
111 #define SPI1_MISO_PIN PA6
112 #define SPI1_MOSI_PIN PA7
114 #define USE_SPI_DEVICE_2
115 #define SPI2_NSS_PIN PB12
116 #define SPI2_SCK_PIN PB13
117 #define SPI2_MISO_PIN PC2
118 #define SPI2_MOSI_PIN PC3
121 #define USE_I2C_DEVICE_3
125 #define USE_RANGEFINDER
126 #define RANGEFINDER_I2C_BUS BUS_I2C3
128 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
130 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
131 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
133 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
135 #define TARGET_IO_PORTA 0xffff
136 #define TARGET_IO_PORTB 0xffff
137 #define TARGET_IO_PORTC 0xffff
138 #define TARGET_IO_PORTD 0xffff
140 #define MAX_PWM_OUTPUT_PORTS 15