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 "PRF7"
29 #define USBD_PRODUCT_STRING "PRINCIPIOTF7"
37 #define WS2811_PIN PA8
44 #define VBUS_SENSING_DISABLED
47 #define UART1_RX_PIN PA10
48 #define UART1_TX_PIN PA9
51 #define UART2_RX_PIN PA3
52 #define UART2_TX_PIN PA2
55 #define UART3_RX_PIN PC11
56 #define UART3_TX_PIN PC10
59 #define UART4_RX_PIN PA1
60 #define UART4_TX_PIN PA0
63 #define UART5_RX_PIN PD2
64 #define UART5_TX_PIN PC12
67 #define UART6_RX_PIN PC7
68 #define UART6_TX_PIN PC6
70 #define SERIAL_PORT_COUNT 7
72 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
73 #define SERIALRX_PROVIDER SERIALRX_CRSF
74 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
75 #define SERIALRX_UART SERIAL_PORT_USART2
79 #define USE_SPI_DEVICE_1
80 #define SPI1_SCK_PIN PA5
81 #define SPI1_MISO_PIN PA7
82 #define SPI1_MOSI_PIN PA6
84 #define USE_SPI_DEVICE_2
85 #define SPI2_SCK_PIN PB13
86 #define SPI2_MISO_PIN PC3
87 #define SPI2_MOSI_PIN PB14
91 #define USE_I2C_DEVICE_1
98 #define MAG_I2C_BUS BUS_I2C1
102 #define ADC_INSTANCE ADC1
104 #define ADC_CHANNEL_1_PIN PC2
105 #define VBAT_ADC_CHANNEL ADC_CHN_1
107 #define ADC_CHANNEL_2_PIN PC1
108 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
113 #define USE_IMU_ICM42605
114 #define IMU_ICM42605_ALIGN CW90_DEG
115 #define ICM42605_CS_PIN PB2
116 #define ICM42605_SPI_BUS BUS_SPI1
121 #define BARO_I2C_BUS BUS_I2C1
122 #define USE_BARO_DPS310
126 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
127 // Not sure which to use for the onboard chip (W25Q128JVPIQ)
128 #define USE_FLASH_M25P16
129 #define M25P16_SPI_BUS BUS_SPI2
130 #define M25P16_CS_PIN PB12
131 #define USE_FLASH_W25M
132 #define W25M_SPI_BUS BUS_SPI2
133 #define W25M_CS_PIN PB12
134 #define USE_FLASH_W25M02G
135 #define W25M02G_SPI_BUS BUS_SPI2
136 #define W25M02G_CS_PIN PB12
137 #define USE_FLASH_W25M512
138 #define W25M512_SPI_BUS BUS_SPI2
139 #define W25M512_CS_PIN PB12
140 #define USE_FLASH_W25N01G
141 #define W25N01G_SPI_BUS BUS_SPI2
142 #define W25N01G_CS_PIN PB12
146 #define MAX_PWM_OUTPUT_PORTS 10
147 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
149 #define USE_ESC_SENSOR
151 #define TARGET_IO_PORTA 0xffff
152 #define TARGET_IO_PORTB 0xffff
153 #define TARGET_IO_PORTC 0xffff
154 #define TARGET_IO_PORTD 0xffff
155 #define TARGET_IO_PORTE 0xffff
156 #define TARGET_IO_PORTF 0xffff