File tree 2 files changed +13
-0
lines changed
src/main/target/GEPRC_F722_AIO
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
target_stm32f722xe(GEPRC_F722_AIO)
2
+ target_stm32f722xe(GEPRC_F722_AIO_UART3)
Original file line number Diff line number Diff line change 17
17
18
18
#pragma once
19
19
20
+ #ifdef GEPRC_F722_AIO_UART3
21
+ #define TARGET_BOARD_IDENTIFIER "GEP3"
22
+ #else
20
23
#define TARGET_BOARD_IDENTIFIER "GEPR"
24
+ #endif
21
25
22
26
#define USBD_PRODUCT_STRING "GEPRC_F722_AIO"
23
27
52
56
#define ICM42605_SPI_BUS BUS_SPI1
53
57
54
58
// *************** I2C/Baro/Mag *********************
59
+ #ifndef GEPRC_F722_AIO_UART3
55
60
#define USE_I2C
56
61
#define USE_I2C_DEVICE_2
57
62
#define I2C2_SCL PB10
74
79
#define USE_RANGEFINDER
75
80
#define RANGEFINDER_I2C_BUS BUS_I2C2
76
81
#define BNO055_I2C_BUS BUS_I2C2
82
+ #endif
77
83
78
84
// *************** FLASH **************************
79
85
#define M25P16_CS_PIN PB9
108
114
#define UART2_RX_PIN PA3
109
115
#define UART2_TX_PIN PA2
110
116
117
+ #ifdef GEPRC_F722_AIO_UART3
111
118
#define USE_UART3
112
119
#define UART3_RX_PIN PB11
113
120
#define UART3_TX_PIN PB10
121
+ #endif
114
122
115
123
#define USE_UART4
116
124
#define UART4_RX_PIN PC11
120
128
#define UART5_RX_PIN PD2
121
129
#define UART5_TX_PIN PC12
122
130
131
+ #ifdef GEPRC_F722_AIO_UART3
123
132
#define SERIAL_PORT_COUNT 6
133
+ #else
134
+ #define SERIAL_PORT_COUNT 5
135
+ #endif
124
136
125
137
#define DEFAULT_RX_TYPE RX_TYPE_SERIAL
126
138
#define SERIALRX_PROVIDER SERIALRX_SBUS
You can’t perform that action at this time.
0 commit comments