Skip to content

Commit 83d3eaf

Browse files
ot0tothaslinghuis
andauthored
Add RDMR JTE242 (RADIOMASTERH743) (#709)
* Add RDMR JTE242 * Remove empty lines * Remove unused drivers * Update configs/JTE242/config.h * Update configs/JTE242/config.h * Update configs/JTE242/config.h * Change BOARD_NAME to RMNOVAH7 * Refactor PINIO definitions in config.h Removed duplicate definitions for PINIO2_BOX and PINIO3_BOX. --------- Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent ff56ae3 commit 83d3eaf

File tree

1 file changed

+156
-0
lines changed

1 file changed

+156
-0
lines changed

configs/RMNOVAH7/config.h

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/*
2+
* This file is part of Betaflight.
3+
*
4+
* Betaflight is free software. You can redistribute this software
5+
* and/or modify this software under the terms of the GNU General
6+
* Public License as published by the Free Software Foundation,
7+
* either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* Betaflight is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+
*
14+
* See the GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public
17+
* License along with this software.
18+
*
19+
* If not, see <http://www.gnu.org/licenses/>.
20+
*/
21+
22+
#pragma once
23+
24+
#define FC_TARGET_MCU STM32H743
25+
#define BOARD_NAME RMNOVAH7
26+
#define MANUFACTURER_ID RDMR
27+
28+
#define USE_GYRO
29+
#define USE_GYRO_SPI_ICM42688P
30+
#define USE_GYRO_CLKIN
31+
#define GYRO_1_CLKIN_PIN PA5
32+
#define USE_ACC
33+
#define USE_ACC_SPI_ICM42688P
34+
#define USE_BARO
35+
#define USE_BARO_DPS310
36+
#define USE_FLASH
37+
#define USE_FLASH_M25P16
38+
#define USE_MAX7456
39+
40+
#define BEEPER_PIN PA9
41+
42+
#define MOTOR1_PIN PE9
43+
#define MOTOR2_PIN PE11
44+
#define MOTOR3_PIN PE13
45+
#define MOTOR4_PIN PE14
46+
#define MOTOR5_PIN PA6
47+
#define MOTOR6_PIN PA7
48+
#define MOTOR7_PIN PC8
49+
#define MOTOR8_PIN PC9
50+
51+
#define LED_STRIP_PIN PA0
52+
53+
#define UART1_TX_PIN PB6
54+
#define UART1_RX_PIN PB7
55+
56+
#define UART2_TX_PIN PD5
57+
#define UART2_RX_PIN PD6
58+
59+
#define UART3_TX_PIN PD8
60+
#define UART3_RX_PIN PD9
61+
62+
#define UART4_TX_PIN PD1
63+
#define UART4_RX_PIN PD0
64+
65+
#define UART5_TX_PIN PD3
66+
#define UART5_RX_PIN PD2
67+
68+
#define UART6_TX_PIN PC6
69+
#define UART6_RX_PIN PC7
70+
71+
#define UART7_TX_PIN PE8
72+
#define UART7_RX_PIN PE7
73+
74+
#define UART8_TX_PIN PE1
75+
#define UART8_RX_PIN PE0
76+
77+
#define I2C1_SCL_PIN PB8
78+
#define I2C1_SDA_PIN PB9
79+
80+
#define I2C2_SCL_PIN PB10
81+
#define I2C2_SDA_PIN PB11
82+
83+
#define LED0_PIN PC4
84+
#define LED1_PIN PC5
85+
86+
#define SPI1_SCK_PIN PB3
87+
#define SPI1_SDI_PIN PB4
88+
#define SPI1_SDO_PIN PB5
89+
90+
#define SPI2_SCK_PIN PB13
91+
#define SPI2_SDI_PIN PB14
92+
#define SPI2_SDO_PIN PB15
93+
94+
#define SPI3_SCK_PIN PC10
95+
#define SPI3_SDI_PIN PC11
96+
#define SPI3_SDO_PIN PC12
97+
98+
#define SPI4_SCK_PIN PE2
99+
#define SPI4_SDI_PIN PE5
100+
#define SPI4_SDO_PIN PE6
101+
102+
#define ADC_VBAT_PIN PC0
103+
#define ADC_CURR_PIN PC1
104+
105+
#define PINIO1_PIN PA3
106+
#define PINIO2_PIN PA2
107+
#define PINIO3_PIN PA1
108+
109+
#define FLASH_CS_PIN PA8
110+
#define GYRO_1_EXTI_PIN PD7
111+
#define GYRO_1_CS_PIN PA15
112+
#define MAX7456_SPI_CS_PIN PB12
113+
114+
#define USB_DETECT_PIN PA10
115+
116+
117+
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, PE9, 1, 0 ) \
118+
TIMER_PIN_MAP( 1, PE11, 1, 1 ) \
119+
TIMER_PIN_MAP( 2, PE13, 1, 2 ) \
120+
TIMER_PIN_MAP( 3, PE14, 1, 3 ) \
121+
TIMER_PIN_MAP( 4, PA6, 1, 5 ) \
122+
TIMER_PIN_MAP( 5, PA7, 2, 6 ) \
123+
TIMER_PIN_MAP( 6, PC8, 2, 7 ) \
124+
TIMER_PIN_MAP( 7, PC9, 2, 8 ) \
125+
TIMER_PIN_MAP( 8, PA0, 2, 9 ) \
126+
TIMER_PIN_MAP( 9, PA5, 1, -1 )
127+
128+
129+
#define ADC1_DMA_OPT 10
130+
#define ADC3_DMA_OPT 11
131+
132+
#define MAG_I2C_INSTANCE I2CDEV_2
133+
#define BARO_I2C_INSTANCE I2CDEV_1
134+
135+
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
136+
#define SERIALRX_UART SERIAL_PORT_USART6
137+
#define SERIALRX_PROVIDER SERIALRX_CRSF
138+
139+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
140+
#define BEEPER_INVERTED
141+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
142+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
143+
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
144+
145+
#define PINIO1_BOX 40
146+
147+
#define PINIO2_BOX 41
148+
#define PINIO2_CONFIG 129
149+
#define BOX_USER2_NAME "VTX SW"
150+
151+
#define PINIO3_BOX 42
152+
#define BOX_USER3_NAME "CAM 1,2"
153+
154+
#define FLASH_SPI_INSTANCE SPI3
155+
#define MAX7456_SPI_INSTANCE SPI2
156+
#define GYRO_1_SPI_INSTANCE SPI1

0 commit comments

Comments
 (0)