2 * This file is part of INAV.
4 * INAV 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 * INAV 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 INAV. If not, see <http://www.gnu.org/licenses/>.
21 #define TARGET_BOARD_IDENTIFIER "AO7M"
23 #if defined(AOCODARCF7MINI_V2)
24 #define USBD_PRODUCT_STRING "AocodaRCF7MiniV2"
26 #define USBD_PRODUCT_STRING "AocodaRCF7MiniV1"
32 #define BEEPER_INVERTED
34 // *************** SPI1 Gyro & ACC *******************
35 #define USE_TARGET_IMU_HARDWARE_DESCRIPTORS
38 #define USE_SPI_DEVICE_1
39 #define SPI1_SCK_PIN PA5
40 #define SPI1_MISO_PIN PA6
41 #define SPI1_MOSI_PIN PA7
43 #define USE_IMU_MPU6500
44 #define IMU_MPU6500_ALIGN CW0_DEG
45 #define MPU6500_CS_PIN PB2
46 #define MPU6500_SPI_BUS BUS_SPI1
49 #define MPU6500_EXTI_PIN PC4
51 #define USE_MPU_DATA_READY_SIGNAL
53 // *************** I2C /Baro/Mag *********************
55 #define USE_I2C_DEVICE_1
60 #define BARO_I2C_BUS BUS_I2C1
61 #define USE_BARO_BMP280
62 #define USE_BARO_MS5611
63 #define USE_BARO_DPS310
66 #define MAG_I2C_BUS BUS_I2C1
67 #define USE_MAG_AK8975
68 #define USE_MAG_HMC5883
69 #define USE_MAG_QMC5883
70 #define USE_MAG_IST8310
71 #define USE_MAG_IST8308
72 #define USE_MAG_MAG3110
73 #define USE_MAG_LIS3MDL
75 #define TEMPERATURE_I2C_BUS BUS_I2C1
77 #define PITOT_I2C_BUS BUS_I2C1
79 #define USE_RANGEFINDER
80 #define RANGEFINDER_I2C_BUS BUS_I2C1
82 // *************** SPI2 OSD ***********************
83 #define USE_SPI_DEVICE_2
84 #define SPI2_SCK_PIN PB13
85 #define SPI2_MISO_PIN PB14
86 #define SPI2_MOSI_PIN PB15
90 #define MAX7456_SPI_BUS BUS_SPI2
91 #define MAX7456_CS_PIN PB12
93 // *************** SPI3 FLASH BLACKBOX*******************
94 #define USE_SPI_DEVICE_3
95 #define SPI3_SCK_PIN PC10
96 #define SPI3_MISO_PIN PC11
97 #define SPI3_MOSI_PIN PC12
101 #define USE_FLASH_M25P16
102 #define M25P16_SPI_BUS BUS_SPI3
103 #define M25P16_CS_PIN PD2
104 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
107 // *************** UART *****************************
109 #define USB_DETECT_PIN PC14
110 #define USE_USB_DETECT
113 #define UART1_TX_PIN PA9
114 #define UART1_RX_PIN PA10
117 #define UART2_TX_PIN PA2
118 #define UART2_RX_PIN PA3
121 #define UART3_TX_PIN PB10
122 #define UART3_RX_PIN PB11
125 #define UART4_TX_PIN PA0
126 #define UART4_RX_PIN PA1
129 #define UART6_TX_PIN PC6
130 #define UART6_RX_PIN PC7
132 #define SERIAL_PORT_COUNT 6
134 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
135 #define SERIALRX_PROVIDER SERIALRX_SBUS
136 #define SERIALRX_UART SERIAL_PORT_USART1
138 // *************** ADC *****************************
140 #define ADC_INSTANCE ADC1
141 #define ADC1_DMA_STREAM DMA2_Stream0
143 #define ADC_CHANNEL_1_PIN PC2
144 #define ADC_CHANNEL_2_PIN PC1
145 #define ADC_CHANNEL_3_PIN PC0
147 #define VBAT_ADC_CHANNEL ADC_CHN_1
148 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
149 #define RSSI_ADC_CHANNEL ADC_CHN_3
151 // *************** PINIO ***************************
154 // *************** LEDSTRIP ************************
155 #define USE_LED_STRIP
156 #define WS2811_PIN PA8
158 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_BLACKBOX | FEATURE_TX_PROF_SEL)
159 #define CURRENT_METER_SCALE 400
161 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
163 #define TARGET_IO_PORTA 0xffff
164 #define TARGET_IO_PORTB 0xffff
165 #define TARGET_IO_PORTC 0xffff
166 #define TARGET_IO_PORTD 0xffff
168 #define MAX_PWM_OUTPUT_PORTS 10
170 #define USE_SERIALSHOT
171 #define USE_ESC_SENSOR