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 "CLBR"
27 #define BEEPER_INVERTED
30 #define USE_ESC_SENSOR
34 #define GYRO_INT_EXTI PA5
35 #define USE_MPU_DATA_READY_SIGNAL
36 #define ENSURE_MPU_DATA_READY_IS_LOW
39 #define USE_SPI_DEVICE_1
41 #define SPI1_SCK_PIN PB3
42 #define SPI1_MISO_PIN PB4
43 #define SPI1_MOSI_PIN PB5
44 #define SPI1_NSS_PIN PA4
46 #define MPU6500_CS_PIN SPI1_NSS_PIN
47 #define MPU6500_SPI_BUS BUS_SPI1
49 #define MPU6000_CS_PIN SPI1_NSS_PIN
50 #define MPU6000_SPI_BUS BUS_SPI1
52 #define MPU9250_CS_PIN SPI1_NSS_PIN
53 #define MPU9250_SPI_BUS BUS_SPI1
55 #define USE_IMU_MPU6000
56 #define IMU_MPU6000_ALIGN CW270_DEG
57 #define USE_IMU_MPU6500
58 #define IMU_MPU6500_ALIGN CW270_DEG
59 #define USE_IMU_MPU9250
60 #define IMU_MPU9250_ALIGN CW270_DEG
63 #define BARO_I2C_BUS BUS_I2C2
64 #define USE_BARO_MS5611
67 #define MAG_I2C_BUS BUS_I2C2
68 #define USE_MAG_MAG9250
69 #define USE_MAG_HMC5883
70 #define USE_MAG_QMC5883
71 #define USE_MAG_IST8310
72 #define USE_MAG_IST8308
73 #define USE_MAG_MAG3110
74 #define USE_MAG_LIS3MDL
80 #define SERIAL_PORT_COUNT 4
82 #define UART1_TX_PIN PC4
83 #define UART1_RX_PIN PC5
85 #define UART2_TX_PIN PA14
86 #define UART2_RX_PIN PA15
88 #define UART3_TX_PIN PB10
89 #define UART3_RX_PIN PB11
92 #define USE_I2C_DEVICE_2
98 #define ADC_INSTANCE ADC1
99 #define ADC_CHANNEL_1_PIN PC0
100 #define ADC_CHANNEL_2_PIN PC1
101 #define ADC_CHANNEL_3_PIN PC2
102 #define ADC_CHANNEL_4_PIN PC3
103 #define VBAT_ADC_CHANNEL ADC_CHN_1
104 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
105 #define RSSI_ADC_CHANNEL ADC_CHN_3
107 #define USE_LED_STRIP
108 #define WS2811_PIN PA6
110 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_VBAT)
111 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
112 #define SERIALRX_PROVIDER SERIALRX_SBUS
113 #define SERIALRX_UART SERIAL_PORT_USART3
115 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
117 // Number of available PWM outputs
118 #define MAX_PWM_OUTPUT_PORTS 10
120 // IO - assuming 303 in 64pin package, TODO
121 #define TARGET_IO_PORTA 0xffff
122 #define TARGET_IO_PORTB 0xffff
123 #define TARGET_IO_PORTC 0xffff
124 #define TARGET_IO_PORTD (BIT(2))
125 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
127 #define PCA9685_I2C_BUS BUS_I2C2
128 #define BNO055_I2C_BUS BUS_I2C2