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 #define TARGET_BOARD_IDENTIFIER "IMF3"
25 #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
27 #define ENABLE_DSHOT_DMAR true
32 #define BEEPER_PIN PC15
35 #define MPU_INT_EXTI PC13
36 #define USE_MPU_DATA_READY_SIGNAL
37 #define ENSURE_MPU_DATA_READY_IS_LOW
40 #define USE_GYRO_SPI_MPU6000
41 #define GYRO_MPU6000_ALIGN CW0_DEG
44 #define USE_ACC_SPI_MPU6000
45 #define ACC_MPU6000_ALIGN CW0_DEG
48 #define USE_FLASH_M25P16
54 #define USE_SOFTSERIAL1
55 #define USE_SOFTSERIAL2
57 #define SERIAL_PORT_COUNT 6
60 #define ESCSERIAL_TIMER_TX_PIN PA15 // (HARDARE=0,PPM)
62 #define UART1_TX_PIN PA9
63 #define UART1_RX_PIN PA10
65 #define UART2_TX_PIN PA14
66 #define UART2_RX_PIN PA15
68 #define UART3_TX_PIN PB10
69 #define UART3_RX_PIN PB11
72 #define USE_SPI_DEVICE_1 // PA4, 5, 6, 7
73 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
75 #define M25P16_CS_GPIO GPIOB
76 #define M25P16_CS_PIN PB12
77 #define M25P16_SPI_INSTANCE SPI2
79 #define MPU6000_CS_PIN PA4
80 #define MPU6000_SPI_INSTANCE SPI1
83 #define MAX7456_SPI_INSTANCE SPI1
84 #define MAX7456_SPI_CS_PIN PA3
85 #define MAX7456_NRST_PIN PC14
86 #define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD*2)
87 #define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
89 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
90 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
92 #define ADC_INSTANCE ADC1
93 #define CURRENT_METER_ADC_PIN PA0
94 #define RSSI_ADC_PIN PA1
95 #define VBAT_ADC_PIN PA2
97 #define CURRENT_METER_SCALE_DEFAULT 275
99 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
101 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
102 #define SERIALRX_PROVIDER SERIALRX_SBUS
103 #define SERIALRX_UART SERIAL_PORT_USART2
105 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
107 // IO - stm32f303cc in 48pin package
108 #define TARGET_IO_PORTA 0xffff
109 #define TARGET_IO_PORTB 0xffff
110 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
111 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
113 #define USABLE_TIMER_CHANNEL_COUNT 8
114 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8))