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 "FLCR" // FaLCoRre
25 #define USE_HARDWARE_PREBOOT_SETUP // FALCORE board requires some hardware to be set up before booting and detecting sensors
28 #define BEEPER_PWM_FREQUENCY 2700
30 #define MPU6500_CS_PIN PC0
31 #define MPU6500_SPI_BUS BUS_SPI1
34 #define GYRO_INT_EXTI PB0
35 #define USE_MPU_DATA_READY_SIGNAL
37 #define USE_IMU_MPU6500
38 #define IMU_MPU6500_ALIGN CW0_DEG
41 #define BARO_I2C_BUS BUS_I2C1
42 #define USE_BARO_MS5607
45 #define MAG_I2C_BUS BUS_I2C2
46 #define USE_MAG_HMC5883
47 #define USE_MAG_QMC5883
48 #define USE_MAG_IST8310
49 #define USE_MAG_IST8308
50 #define USE_MAG_MAG3110
51 #define USE_MAG_LIS3MDL
58 #define SERIAL_PORT_COUNT 5
60 #define UART1_TX_PIN PC4
61 #define UART1_RX_PIN PC5
63 #define UART2_TX_PIN PA2 // PA2 - Clashes with PWM6 input.
64 #define UART2_RX_PIN PA3
66 #define UART4_TX_PIN PC10
67 #define UART4_RX_PIN PC11
69 #define UART5_TX_PIN PC12
70 #define UART5_RX_PIN PD2
73 #define USE_SPI_DEVICE_1
74 #define USE_SPI_DEVICE_2
76 #define SPI1_SCK_PIN PA5
77 #define SPI1_MISO_PIN PA6
78 #define SPI1_MOSI_PIN PB5
80 #define SPI2_SCK_PIN PB13
81 #define SPI2_MISO_PIN PB14
82 #define SPI2_MOSI_PIN PB15
86 #define USE_I2C_DEVICE_1
90 #define USE_I2C_DEVICE_2
94 #define VBAT_SCALE_DEFAULT 78
95 #define BOARD_HAS_VOLTAGE_DIVIDER
97 #define ADC_INSTANCE ADC1
98 #define ADC_CHANNEL_1_PIN PF4
99 #define ADC_CHANNEL_2_PIN PA1
100 #define VBAT_ADC_CHANNEL ADC_CHN_1
101 #define RSSI_ADC_CHANNEL ADC_CHN_2
103 #define USE_LED_STRIP
104 #define WS2811_PIN PA8
106 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
109 #define USE_FLASH_M25P16
110 #define M25P16_CS_PIN PC1
111 #define M25P16_SPI_BUS BUS_SPI2
112 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
114 #define USE_SPEKTRUM_BIND
118 #define USE_RANGEFINDER
120 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX | FEATURE_VBAT | FEATURE_GPS | FEATURE_TELEMETRY | FEATURE_LED_STRIP)
121 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
123 // Number of available PWM outputs
124 #define MAX_PWM_OUTPUT_PORTS 6
126 // available IO pins (from schematics)
127 #define TARGET_IO_PORTA 0xFFFF
128 #define TARGET_IO_PORTB 0xFFFF
129 #define TARGET_IO_PORTC 0xFFFF
130 #define TARGET_IO_PORTD 0xFFFF
131 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
133 #define PCA9685_I2C_BUS BUS_I2C2
134 #define BNO055_I2C_BUS BUS_I2C2