2 * This file is part of INAV.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
6 * You can obtain one at http://mozilla.org/MPL/2.0/.
8 * Alternatively, the contents of this file may be used under the terms
9 * of the GNU General Public License Version 3, as described below:
11 * This file is free software: you may copy, redistribute and/or modify
12 * it under the terms of the GNU General Public License as published by the
13 * Free Software Foundation, either version 3 of the License, or (at your
14 * option) any later version.
16 * This file is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see http://www.gnu.org/licenses/.
27 #define TARGET_BOARD_IDENTIFIER "ONXT"
29 #define USBD_PRODUCT_STRING "OMNIBUS NEXT"
31 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS // Don't use common busdev descriptors for IMU
38 #define BEEPER_INVERTED
42 // OMNIBUS F7 NEXT has two IMUs - MPU6000 onboard and ICM20608 (MPU6500) in the vibration dampened box
43 #define USE_IMU_MPU6000
44 #define IMU_MPU6000_ALIGN CW180_DEG
45 #define MPU6000_CS_PIN PB12
46 #define MPU6000_SPI_BUS BUS_SPI1
48 #define USE_IMU_MPU6500
49 #define IMU_MPU6500_ALIGN CW90_DEG
50 #define MPU6500_CS_PIN PA8
51 #define MPU6500_SPI_BUS BUS_SPI1
54 #define MAG_I2C_BUS BUS_I2C1
57 #define TEMPERATURE_I2C_BUS BUS_I2C1
60 #define USE_BARO_LPS25H
61 #define LPS25H_SPI_BUS BUS_SPI2
62 #define LPS25H_CS_PIN PA10
64 #define PITOT_I2C_BUS BUS_I2C1
66 #define USE_RANGEFINDER
67 #define RANGEFINDER_I2C_BUS BUS_I2C1
70 #define VBUS_SENSING_PIN PC5
71 #define VBUS_SENSING_ENABLED
74 #define UART1_RX_PIN PB7
75 #define UART1_TX_PIN PB6
78 #define UART2_RX_PIN NONE
79 #define UART2_TX_PIN PA2
82 #define UART3_RX_PIN PB11
83 #define UART3_TX_PIN PB10
86 #define UART4_RX_PIN PA1
87 #define UART4_TX_PIN PA0
90 #define UART6_RX_PIN PC7
91 #define UART6_TX_PIN PC6
93 #define USE_SOFTSERIAL1
94 #define SOFTSERIAL_1_RX_PIN NONE
95 #define SOFTSERIAL_1_TX_PIN PB6 // Clash with UART1_TX, needed for S.Port
97 #define SERIAL_PORT_COUNT 7 // VCP, USART1, USART2, USART3, USART4, USART6, SOFTSERIAL1
102 #define USE_I2C_DEVICE_1
108 #define USE_SPI_DEVICE_1
109 #define SPI1_NSS_PIN NONE
110 #define SPI1_SCK_PIN PA5
111 #define SPI1_MISO_PIN PA6
112 #define SPI1_MOSI_PIN PA7
114 #define USE_SPI_DEVICE_2
115 #define SPI2_NSS_PIN PB12
116 #define SPI2_SCK_PIN PB13
117 #define SPI2_MISO_PIN PB14
118 #define SPI2_MOSI_PIN PC3
120 #define USE_SPI_DEVICE_3
121 #define SPI3_NSS_PIN PA15
122 #define SPI3_SCK_PIN PC10
123 #define SPI3_MISO_PIN PC11
124 #define SPI3_MOSI_PIN PC12
127 #define MAX7456_SPI_BUS BUS_SPI2
128 #define MAX7456_CS_PIN PA15
130 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
131 #define M25P16_CS_PIN PC14
132 #define M25P16_SPI_BUS BUS_SPI2
134 #define USE_FLASH_M25P16
137 #define ADC_CHANNEL_1_PIN PC0
138 #define ADC_CHANNEL_2_PIN PC1
139 #define ADC_CHANNEL_3_PIN PC4
140 #define ADC_CHANNEL_4_PIN PA4
142 #define VBAT_ADC_CHANNEL ADC_CHN_1
143 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
144 #define RSSI_ADC_CHANNEL ADC_CHN_3
145 #define AIRSPEED_ADC_CHANNEL ADC_CHN_4
147 #define SENSORS_SET (SENSOR_ACC | SENSOR_BARO)
149 #define USE_LED_STRIP
150 #define WS2811_PIN PA9
152 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX | FEATURE_VBAT | FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_SOFTSERIAL | FEATURE_TELEMETRY)
153 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
154 #define SERIALRX_PROVIDER SERIALRX_SBUS
155 #define DISABLE_RX_PWM_FEATURE
157 #define TELEMETRY_UART SERIAL_PORT_SOFTSERIAL1
158 #define SERIALRX_UART SERIAL_PORT_USART1
159 // #define SMARTAUDIO_UART SERIAL_PORT_USART4
161 #define VBAT_SCALE_DEFAULT 1090
163 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
166 #define USE_ESC_SENSOR
168 // Number of available PWM outputs
169 #define MAX_PWM_OUTPUT_PORTS 6
170 #define TARGET_MOTOR_COUNT 6
172 #define TARGET_IO_PORTA 0xffff
173 #define TARGET_IO_PORTB 0xffff
174 #define TARGET_IO_PORTC 0xffff
175 #define TARGET_IO_PORTD 0xffff