vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / COLIBRI / target.h
blob6898448809df92430c75f24231e6efacabdf91f9
1 /*
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/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "COLI"
22 #ifdef QUANTON
23 #define USBD_PRODUCT_STRING "Quanton"
24 #else
25 #define USBD_PRODUCT_STRING "Colibri"
26 #endif
27 #ifdef OPBL
28 #define USBD_SERIALNUMBER_STRING "0x8020000"
29 #endif
31 #define PLL_M 16
32 #define PLL_N 336
34 #define LED0 PC14
35 #define LED1 PC13
37 #define BEEPER PC5
39 #define MPU6000_CS_PIN PC4
40 #define MPU6000_SPI_BUS BUS_SPI1
41 #define USE_IMU_MPU6000
43 #define USE_MAG
44 #define MAG_I2C_BUS BUS_I2C3
45 #define USE_MAG_ALL
47 #define TEMPERATURE_I2C_BUS BUS_I2C3
49 #ifdef QUANTON
50 #define IMU_MPU6000_ALIGN CW90_DEG
51 #else
52 #define IMU_MPU6000_ALIGN CW270_DEG_FLIP
53 #endif
55 #define USE_BARO
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
62 #define USE_FLASHFS
63 #define USE_FLASH_M25P16
65 #define USE_VCP
66 #define VBUS_SENSING_PIN PA9
68 #define USE_UART_INVERTER
70 #define USE_UART1
71 #define UART1_RX_PIN PB7
72 #define UART1_TX_PIN PB6
73 #define UART1_AHB1_PERIPHERALS RCC_AHB1Periph_DMA2
75 #define USE_UART2
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
80 #define USE_UART3
81 #define UART3_RX_PIN PB11
82 #define UART3_TX_PIN PB10
84 #define USE_UART4
85 #define UART4_RX_PIN PC11
86 #define UART4_TX_PIN PC10
88 #define USE_UART5
89 #define UART5_RX_PIN PD2
90 #define UART5_TX_PIN PC12
92 #define SERIAL_PORT_COUNT 6 //VCP, UART1, UART2, UART3, UART4, UART5
94 #define USE_SPI
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
108 #define USE_I2C
109 #define USE_I2C_DEVICE_3
110 #define I2C3_SCL PA8
111 #define I2C3_SDA PC9
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