Merge pull request #10558 from iNavFlight/MrD_Correct-comments-on-OSD-symbols
[inav.git] / src / main / target / AIKONF7 / target.h
blobf738d688a88d4844240ed01d382684422b2daf41
1 /*
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
20 #pragma once
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"
30 // Beeper
31 #define USE_BEEPER
32 #define BEEPER PC15
33 #define BEEPER_INVERTED
34 // Leds
35 #define USE_LED_STRIP
36 #define WS2811_PIN PA15
37 #define LED0 PC13
38 // UARTs
39 #define USB_IO
40 #define USE_VCP
41 #define USE_UART1
42 #define UART1_RX_PIN PA10
43 #define UART1_TX_PIN PA9
44 #define USE_UART2
45 #define UART2_RX_PIN PA3
46 #define UART2_TX_PIN PA2
47 #define USE_UART3
48 #define UART3_RX_PIN PC11
49 #define UART3_TX_PIN PC10
50 #define USE_UART4
51 #define UART4_RX_PIN PA1
52 #define UART4_TX_PIN PA0
53 #define USE_UART5
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
59 // SPI
60 #define USE_SPI
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
73 // I2C
74 #define USE_I2C
75 #define USE_I2C_DEVICE_2
76 #define I2C2_SCL PB10
77 #define I2C2_SDA PB11
78 // ADC
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
85 #define USE_ADC
86 #define ADC_INSTANCE ADC1
87 // Gyro & ACC
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
96 // BARO
97 #define USE_BARO
98 #define USE_BARO_BMP280
99 #define USE_BARO_SPI_BMP280
100 #define BMP280_SPI_BUS BUS_SPI3
101 #define BMP280_CS_PIN PB2
102 // OSD
103 #define USE_MAX7456
104 #define MAX7456_CS_PIN PB12
105 #define MAX7456_SPI_BUS BUS_SPI2
106 // Blackbox
107 #define USE_FLASHFS
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
125 // PINIO
127 #define USE_PINIO
128 #define USE_PINIOBOX
129 #define PINIO1_PIN PC14
132 // Others
134 #define MAX_PWM_OUTPUT_PORTS 8
135 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
136 #define USE_DSHOT
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