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/>.
17 * This target has been autgenerated by bf2inav.py
22 //#define USE_TARGET_CONFIG
24 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY )
28 #define TARGET_BOARD_IDENTIFIER "RPTY"
29 #define USBD_PRODUCT_STRING "AIKONF7"
33 #define BEEPER_INVERTED
36 #define WS2811_PIN PA15
42 #define UART1_RX_PIN PA10
43 #define UART1_TX_PIN PA9
45 #define UART2_RX_PIN PA3
46 #define UART2_TX_PIN PA2
48 #define UART3_RX_PIN PC11
49 #define UART3_TX_PIN PC10
51 #define UART4_RX_PIN PA1
52 #define UART4_TX_PIN PA0
54 #define UART5_RX_PIN PD2
55 #define UART5_TX_PIN PC12
56 #define SERIAL_PORT_COUNT 6
57 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
58 #define SERIALRX_PROVIDER SERIALRX_CRSF
61 #define USE_SPI_DEVICE_1
62 #define SPI1_SCK_PIN PA5
63 #define SPI1_MISO_PIN PA7
64 #define SPI1_MOSI_PIN PA6
65 #define USE_SPI_DEVICE_2
66 #define SPI2_SCK_PIN PB13
67 #define SPI2_MISO_PIN PB15
68 #define SPI2_MOSI_PIN PC2
69 #define USE_SPI_DEVICE_3
70 #define SPI3_SCK_PIN PB3
71 #define SPI3_MISO_PIN PB5
72 #define SPI3_MOSI_PIN PB4
75 #define USE_I2C_DEVICE_2
79 #define ADC_CHANNEL_1_PIN PC0
80 #define VBAT_ADC_CHANNEL ADC_CHN_1
81 #define ADC_CHANNEL_2_PIN PC1
82 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
83 #define ADC_CHANNEL_3_PIN PC3
84 #define RSSI_ADC_CHANNEL ADC_CHN_3
86 #define ADC_INSTANCE ADC1
88 #define USE_IMU_BMI270
89 #define BMI270_CS_PIN PA4
90 #define BMI270_SPI_BUS BUS_SPI1
91 #define IMU_BMI270_ALIGN CW0_DEG
92 #define USE_IMU_MPU6000
93 #define MPU6000_CS_PIN PA4
94 #define MPU6000_SPI_BUS BUS_SPI1
95 #define IMU_MPU6000_ALIGN CW0_DEG
98 #define USE_BARO_BMP280
99 #define USE_BARO_SPI_BMP280
100 #define BMP280_SPI_BUS BUS_SPI3
101 #define BMP280_CS_PIN PB2
104 #define MAX7456_CS_PIN PB12
105 #define MAX7456_SPI_BUS BUS_SPI2
108 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
109 #define USE_FLASH_M25P16
110 #define M25P16_SPI_BUS BUS_SPI3
111 #define M25P16_CS_PIN PB0
112 #define USE_FLASH_W25M
113 #define W25M_SPI_BUS BUS_SPI3
114 #define W25M_CS_PIN PB0
115 #define USE_FLASH_W25M02G
116 #define W25M02G_SPI_BUS BUS_SPI3
117 #define W25M02G_CS_PIN PB0
118 #define USE_FLASH_W25M512
119 #define W25M512_SPI_BUS BUS_SPI3
120 #define W25M512_CS_PIN PB0
121 #define USE_FLASH_W25N01G
122 #define W25N01G_SPI_BUS BUS_SPI3
123 #define W25N01G_CS_PIN PB0
129 #define PINIO1_PIN PC14
134 #define MAX_PWM_OUTPUT_PORTS 8
135 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
137 #define USE_ESC_SENSOR
139 #define TARGET_IO_PORTA 0xffff
140 #define TARGET_IO_PORTB 0xffff
141 #define TARGET_IO_PORTC 0xffff
142 #define TARGET_IO_PORTD 0xffff
143 #define TARGET_IO_PORTE 0xffff
144 #define TARGET_IO_PORTF 0xffff