2 * This file is part of Betaflight.
4 * Betaflight is free software. You can redistribute this software
5 * and/or modify this software under the terms of the GNU General
6 * Public License as published by the Free Software Foundation,
7 * either version 3 of the License, or (at your option) any later
10 * Betaflight is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this software.
19 * If not, see <http://www.gnu.org/licenses/>.
24 #define FC_TARGET_MCU STM32F405
26 #define BOARD_NAME OMNIBUSF4
27 #define MANUFACTURER_ID AIRB
30 #define USE_GYRO_SPI_MPU6500
32 #define USE_ACC_SPI_MPU6500
33 #define USE_GYRO_SPI_MPU6000
34 #define USE_ACC_SPI_MPU6000
35 #define USE_BARO_BMP280
37 #define USE_FLASH_W25Q128FV
40 #define BEEPER_PIN PB4
41 #define MOTOR1_PIN PB0
42 #define MOTOR2_PIN PB1
43 #define MOTOR3_PIN PA3
44 #define MOTOR4_PIN PA2
45 #define MOTOR5_PIN PA1
46 #define MOTOR6_PIN PA8
47 #define RX_PPM_PIN PB14
48 #define RX_PWM1_PIN PB14
49 #define RX_PWM2_PIN PB15
50 #define RX_PWM3_PIN PC6
51 #define RX_PWM4_PIN PC7
52 #define RX_PWM5_PIN PC8
53 #define RX_PWM6_PIN PC9
54 #define SONAR_TRIGGER_PIN PA1
55 #define SONAR_ECHO_PIN PA8
56 #define LED_STRIP_PIN PA1
57 #define UART1_TX_PIN PA9
58 #define UART3_TX_PIN PB10
59 #define UART6_TX_PIN PC6
60 #define UART1_RX_PIN PA10
61 #define UART3_RX_PIN PB11
62 #define UART6_RX_PIN PC7
63 #define INVERTER_PIN_UART1 PC0
65 #define SPI1_SCK_PIN PA5
66 #define SPI3_SCK_PIN PC10
67 #define SPI1_SDI_PIN PA6
68 #define SPI3_SDI_PIN PC11
69 #define SPI1_SDO_PIN PA7
70 #define SPI3_SDO_PIN PC12
71 #define ESCSERIAL_PIN PB14
72 #define ADC_VBAT_PIN PC2
73 #define ADC_CURR_PIN PC1
74 #define FLASH_CS_PIN PB3
75 #define MAX7456_SPI_CS_PIN PA15
76 #define RX_SPI_CS_PIN PD2
77 #define RX_SPI_EXTI_PIN PA0
78 #define GYRO_1_EXTI_PIN PC4
79 #define GYRO_1_CS_PIN PA4
80 #define USB_DETECT_PIN PC5
82 #define TIMER_PIN_MAPPING \
83 TIMER_PIN_MAP( 0, PB14, 3, -1) \
84 TIMER_PIN_MAP( 1, PB15, 3, -1) \
85 TIMER_PIN_MAP( 2, PC6 , 2, 0) \
86 TIMER_PIN_MAP( 3, PC7 , 2, 0) \
87 TIMER_PIN_MAP( 4, PC8 , 2, 0) \
88 TIMER_PIN_MAP( 5, PC9 , 2, 0) \
89 TIMER_PIN_MAP( 6, PB0 , 2, 0) \
90 TIMER_PIN_MAP( 7, PB1 , 2, 0) \
91 TIMER_PIN_MAP( 8, PA3 , 1, 1) \
92 TIMER_PIN_MAP( 9, PA2 , 1, 0) \
93 TIMER_PIN_MAP(10, PA1 , 2, 0) \
94 TIMER_PIN_MAP(11, PA8 , 1, 0) \
95 TIMER_PIN_MAP(12, PA9 , 1, 0) \
96 TIMER_PIN_MAP(13, PA10, 1, 0)
99 #define ADC2_DMA_OPT 1
101 //TODO #define MAG_BUSTYPE I2C
102 #define MAG_I2C_INSTANCE (I2CDEV_2)
104 #define BARO_I2C_INSTANCE (I2CDEV_2)
105 #define RX_SPI_INSTANCE SPI3
107 #define ADC_INSTANCE ADC2
108 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
109 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
110 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
111 #define BEEPER_INVERTED
112 #define SYSTEM_HSE_MHZ 8
113 //TODO #define MAX7456_CLOCK DOUBLE
114 #define MAX7456_SPI_INSTANCE SPI3
115 #define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
116 #define FLASH_SPI_INSTANCE SPI3
118 #define GYRO_1_SPI_INSTANCE SPI1
119 #define GYRO_1_ALIGN CW180_DEG
120 #define GYRO_2_SPI_INSTANCE SPI1