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_DSHOT_DMAR // OMNIBUS (F3) does not benefit from burst Dshot
24 #undef USE_GYRO_OVERFLOW_CHECK
26 #define TARGET_BOARD_IDENTIFIER "OMNI" // https://en.wikipedia.org/wiki/Omnibus
31 #define BEEPER_PIN PC15
32 #define BEEPER_INVERTED
36 #define GYRO_1_EXTI_PIN PC13
37 #define USE_MPU_DATA_READY_SIGNAL
39 #define GYRO_1_SPI_INSTANCE SPI1
40 #define GYRO_1_CS_PIN PA4
43 #define USE_GYRO_SPI_MPU6000
44 #define GYRO_1_ALIGN CW90_DEG
47 #define USE_ACC_SPI_MPU6000
49 #define BARO_SPI_INSTANCE SPI1
50 #define BARO_CS_PIN PA13
53 #define USE_BARO_BMP280
54 #define USE_BARO_SPI_BMP280
56 //#define USE_RANGEFINDER
57 //#define USE_RANGEFINDER_HCSR04
58 //#define RANGEFINDER_HCSR04_ECHO_PIN PB1
59 //#define RANGEFINDER_HCSR04_TRIGGER_PIN PB0
61 #define USB_DETECT_PIN PB5
67 #define USE_SOFTSERIAL1
68 #define USE_SOFTSERIAL2
70 #define SERIAL_PORT_COUNT 6
72 #define UART1_TX_PIN PA9
73 #define UART1_RX_PIN PA10
75 #define UART2_TX_PIN PA14 // PA14 / SWCLK
76 #define UART2_RX_PIN PA15
78 #define UART3_TX_PIN PB10 // PB10 (PWM5)
79 #define UART3_RX_PIN PB11 // PB11 (PWM6)
82 #define USE_I2C_DEVICE_1
83 #define I2C1_SCL NONE // PB6 (PWM8)
84 #define I2C1_SDA NONE // PB7 (PWM7)
85 #define I2C_DEVICE (I2CDEV_1)
88 #define ESCSERIAL_TIMER_TX_PIN PB4 // (HARDARE=0,PPM)
91 #define USE_SPI_DEVICE_1
93 #define SPI1_NSS_PIN PA4
94 #define SPI1_SCK_PIN PA5
95 #define SPI1_MISO_PIN PA6
96 #define SPI1_MOSI_PIN PA7
97 //#define SPI1_TX_DMA_OPT 0 // DMA1_Channel3
98 //#define SPI1_RX_DMA_OPT 0 // DMA1_Channel2
101 // feature name (includes source) -> MAX_OSD, used in target.mk
103 // include the max7456 driver
105 #define MAX7456_SPI_INSTANCE SPI1
106 #define MAX7456_SPI_CS_PIN PB1
107 //#define MAX7456_DMA_IRQ_HANDLER_ID DMA1_CH3_HANDLER
110 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
112 #define SPI2_NSS_PIN PB12
113 #define SPI2_SCK_PIN PB13
114 #define SPI2_MISO_PIN PB14
115 #define SPI2_MOSI_PIN PB15
118 #define USE_SDCARD_SPI
119 #define SDCARD_DETECT_INVERTED
120 #define SDCARD_DETECT_PIN PC14
121 #define SDCARD_SPI_INSTANCE SPI2
122 #define SDCARD_SPI_CS_PIN SPI2_NSS_PIN
123 // DSHOT output 4 uses DMA1_Channel5, so don't use it for the SDCARD until we find an alternative
126 #define SDCARD_SPI_DMA_OPT 0 // DMA 1 Channel 5
129 // Performance logging for SD card operations:
130 // #define AFATFS_USE_INTROSPECTIVE_LOGGING
133 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
134 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
135 #define VBAT_ADC_PIN PA0
136 #define CURRENT_METER_ADC_PIN PA1
137 #define ADC_INSTANCE ADC1
139 //#define RSSI_ADC_PIN PB1
140 //#define ADC_INSTANCE ADC3
142 #define USE_TRANSPONDER
143 #define REDUCE_TRANSPONDER_CURRENT_DRAW_WHEN_USB_CABLE_PRESENT
145 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
147 #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
148 #define DEFAULT_FEATURES (FEATURE_OSD)
150 // Disable rarely used buttons in favor of flash space
151 //#define USE_BUTTONS
152 //#define BUTTON_A_PIN PB1
153 //#define BUTTON_B_PIN PB0
155 //#define AVOID_UART3_FOR_PWM_PPM // Disable this for using UART3
157 #define TARGET_IO_PORTA 0xffff
158 #define TARGET_IO_PORTB 0xffff
159 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
160 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
162 #define USABLE_TIMER_CHANNEL_COUNT 8 // PPM + 6 Outputs (2 shared with UART3)
163 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(8) | TIM_N(15))