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
41 #define USE_IMU_MPU6000
44 #define MAG_I2C_BUS BUS_I2C3
47 #define TEMPERATURE_I2C_BUS BUS_I2C3
50 #define IMU_MPU6000_ALIGN CW90_DEG
52 #define IMU_MPU6000_ALIGN CW270_DEG_FLIP
56 #define BARO_I2C_BUS BUS_I2C3
57 #define USE_BARO_MS5611
59 #define M25P16_CS_PIN PB12
60 #define M25P16_SPI_BUS BUS_SPI2
63 #define USE_FLASH_M25P16
66 #define VBUS_SENSING_PIN PA9
68 #define USE_UART_INVERTER
71 #define UART1_RX_PIN PB7
72 #define UART1_TX_PIN PB6
73 #define UART1_AHB1_PERIPHERALS RCC_AHB1Periph_DMA2
76 #define UART2_RX_PIN PA3
77 #define UART2_TX_PIN PA2
78 #define INVERTER_PIN_UART2_RX PB2 // PB2 used as inverter select GPIO
81 #define UART3_RX_PIN PB11
82 #define UART3_TX_PIN PB10
85 #define UART4_RX_PIN PC11
86 #define UART4_TX_PIN PC10
89 #define UART5_RX_PIN PD2
90 #define UART5_TX_PIN PC12
92 #define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, UART4, UART5
96 #define USE_SPI_DEVICE_1
97 #define SPI1_NSS_PIN PC4
98 #define SPI1_SCK_PIN PA5
99 #define SPI1_MISO_PIN PA6
100 #define SPI1_MOSI_PIN PA7
102 #define USE_SPI_DEVICE_2
103 #define SPI2_NSS_PIN PB12
104 #define SPI2_SCK_PIN PB13
105 #define SPI2_MISO_PIN PC2
106 #define SPI2_MOSI_PIN PC3
109 #define USE_I2C_DEVICE_3
113 #define USE_RANGEFINDER
114 #define RANGEFINDER_I2C_BUS BUS_I2C3
116 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
118 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
119 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
121 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
123 #define TARGET_IO_PORTA 0xffff
124 #define TARGET_IO_PORTB 0xffff
125 #define TARGET_IO_PORTC 0xffff
126 #define TARGET_IO_PORTD 0xffff
128 #define MAX_PWM_OUTPUT_PORTS 15