Skip to content

Commit 1c31bae

Browse files
authored
Merge pull request #9603 from mbainrot/add-aikonf7-target
Add AIKONF7 target
2 parents d5aeca1 + a7458d1 commit 1c31bae

3 files changed

Lines changed: 205 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target_stm32f722xe(AIKONF7 SKIP_RELEASES)

src/main/target/AIKONF7/target.c

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* This file is part of INAV.
3+
*
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.
8+
*
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.
13+
*
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/>.
16+
*
17+
* This target has been autgenerated by bf2inav.py
18+
*/
19+
20+
#include <stdint.h>
21+
22+
#include "platform.h"
23+
24+
#include "drivers/bus.h"
25+
#include "drivers/io.h"
26+
#include "drivers/pwm_mapping.h"
27+
#include "drivers/timer.h"
28+
#include "drivers/pinio.h"
29+
//#include "drivers/sensor.h"
30+
31+
32+
timerHardware_t timerHardware[] = {
33+
DEF_TIM(TIM3, CH1, PC6, TIM_USE_OUTPUT_AUTO, 0, 0),
34+
//DEF_TIM(TIM8, CH1, PC6, TIM_USE_OUTPUT_AUTO, 0, 0),
35+
36+
DEF_TIM(TIM3, CH2, PC7, TIM_USE_OUTPUT_AUTO, 0, 0),
37+
//DEF_TIM(TIM8, CH2, PC7, TIM_USE_OUTPUT_AUTO, 0, 0),
38+
39+
DEF_TIM(TIM3, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0),
40+
//DEF_TIM(TIM8, CH3, PC8, TIM_USE_OUTPUT_AUTO, 0, 0),
41+
42+
DEF_TIM(TIM3, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0),
43+
//DEF_TIM(TIM8, CH4, PC9, TIM_USE_OUTPUT_AUTO, 0, 0),
44+
45+
DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0),
46+
47+
DEF_TIM(TIM4, CH3, PB8, TIM_USE_OUTPUT_AUTO, 0, 0),
48+
//DEF_TIM(TIM10, CH1, PB8, TIM_USE_OUTPUT_AUTO, 0, 0),
49+
50+
DEF_TIM(TIM4, CH2, PB7, TIM_USE_OUTPUT_AUTO, 0, 0),
51+
52+
DEF_TIM(TIM1, CH3N, PB1, TIM_USE_OUTPUT_AUTO, 0, 0),
53+
//DEF_TIM(TIM3, CH4, PB1, TIM_USE_OUTPUT_AUTO, 0, 0),
54+
//DEF_TIM(TIM8, CH3N, PB1, TIM_USE_OUTPUT_AUTO, 0, 0),
55+
56+
DEF_TIM(TIM2, CH1, PA15, TIM_USE_LED, 0, 0),
57+
58+
};
59+
60+
const int timerHardwareCount = sizeof(timerHardware) / sizeof(timerHardware[0]);

src/main/target/AIKONF7/target.h

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
/*
2+
* This file is part of INAV.
3+
*
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.
8+
*
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.
13+
*
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/>.
16+
*
17+
* This target has been autgenerated by bf2inav.py
18+
*/
19+
20+
#pragma once
21+
22+
//#define USE_TARGET_CONFIG
23+
24+
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_CURRENT_METER | FEATURE_VBAT | FEATURE_TELEMETRY )
25+
26+
27+
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
124+
125+
// PINIO
126+
127+
#define USE_PINIO
128+
#define USE_PINIOBOX
129+
#define PINIO1_PIN PC14
130+
131+
132+
// Others
133+
134+
#define MAX_PWM_OUTPUT_PORTS 8
135+
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
136+
#define USE_DSHOT
137+
#define USE_ESC_SENSOR
138+
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

0 commit comments

Comments
 (0)