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 #undef USE_GYRO_OVERFLOW_CHECK // target does not use affected gyros
25 #define TARGET_BOARD_IDENTIFIER "CLBR"
27 #define TARGET_BUS_INIT
34 #define BEEPER_PIN PB13
35 #define BEEPER_INVERTED
40 #define GYRO_1_EXTI_PIN PA5
41 #define USE_MPU_DATA_READY_SIGNAL
42 #define ENSURE_MPU_DATA_READY_IS_LOW
45 #define USE_SPI_DEVICE_1
47 #define SPI1_SCK_PIN PB3
48 #define SPI1_MISO_PIN PB4
49 #define SPI1_MOSI_PIN PB5
50 #define SPI1_NSS_PIN PA4
52 #define GYRO_1_CS_PIN SPI1_NSS_PIN
53 #define GYRO_1_SPI_INSTANCE SPI1
56 #define USE_GYRO_SPI_MPU6000
57 #define USE_GYRO_SPI_MPU6500
58 #define GYRO_1_ALIGN CW270_DEG
61 #define USE_ACC_SPI_MPU6000
62 #define USE_ACC_SPI_MPU6500
65 #define USE_BARO_MS5611
68 #define USE_MAG_HMC5883
69 #define USE_MAG_QMC5883
70 #define USE_MAG_AK8963
71 #define USE_MAG_AK8975
77 /* USE_SOFTSERIALx has a conflict with USE_BST that prevents FC from being recognized from configurator
78 Drop USE_SOFTSERIALx until resolution is provided.
79 #define USE_SOFTSERIAL1
80 #define USE_SOFTSERIAL2
81 #define SERIAL_PORT_COUNT 6
83 #define SERIAL_PORT_COUNT 4
86 #define ESCSERIAL_TIMER_TX_PIN PA8 // (HARDARE=0,PPM)
88 #define UART1_TX_PIN PC4
89 #define UART1_RX_PIN PC5
91 #define UART2_TX_PIN PA14
92 #define UART2_RX_PIN PA15
94 #define UART3_TX_PIN PB10
95 #define UART3_RX_PIN PB11
98 #define USE_I2C_DEVICE_2
99 #define I2C_DEVICE (I2CDEV_2)
100 #define I2C2_SCL_PIN PA9
101 #define I2C2_SDA_PIN PA10
106 #define ADC_INSTANCE ADC1
107 #define VBAT_ADC_PIN PC0
108 #define CURRENT_METER_ADC_PIN PC1
109 #define RSSI_ADC_PIN PC2
110 #define EXTERNAL1_ADC_PIN PC3
112 #define DEFAULT_FEATURES (FEATURE_AIRMODE | FEATURE_LED_STRIP)
113 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
114 #define SERIALRX_PROVIDER SERIALRX_SBUS
115 #define SERIALRX_UART SERIAL_PORT_USART2
117 // IO - assuming 303 in 64pin package, TODO
118 #define TARGET_IO_PORTA 0xffff
119 #define TARGET_IO_PORTB 0xffff
120 #define TARGET_IO_PORTC 0xffff
121 #define TARGET_IO_PORTD (BIT(2))
122 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
124 #define USABLE_TIMER_CHANNEL_COUNT 12
125 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8) | TIM_N(15) | TIM_N(16))