Skip to content

Commit b4fc188

Browse files
HGLRC-Thaslinghuis
andauthored
HGLRC_H743_LITE: Update PINIO and gyro definitions (#1047)
* HGLRC_H743_LITE: Update PINIO and gyro definitions - Add support for LSM6DSV16X and LSM6DSK320X gyro/accel. - Reassign PINIO1 to PE2 (Cam1,2) and add PINIO2 on PC13 (12V BEC), removing previous PINIO1 configuration. - Remove unused GYRO_1_CLKIN pin (PC6) as it's not required. * HGLRC_H743_LITE: add target keys. * Don't need TIMUP3 or TIMUP5 * Update configs/HGLRC_H743_LITE/config.h Co-authored-by: Mark Haslinghuis <mark@numloq.nl> --------- Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
1 parent 295f5bb commit b4fc188

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

configs/HGLRC_H743_LITE/config.h

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
* If not, see <http://www.gnu.org/licenses/>.
2020
*/
2121

22+
/*
23+
SUPPORTED TARGET - THANK YOU
24+
REFERENCE: sha256_b08b3592217ec38f808083d7383e4e17dae4b9acb3f3fbaef244d35bd0e6f8ad
25+
*/
26+
2227
#pragma once
2328

2429
#define FC_TARGET_MCU STM32H743
@@ -30,6 +35,8 @@
3035
#define USE_ACC_SPI_ICM42688P
3136
#define USE_GYRO
3237
#define USE_GYRO_SPI_ICM42688P
38+
#define USE_ACCGYRO_LSM6DSK320X
39+
3340
#define USE_BARO
3441
#define USE_BARO_DPS310
3542
#define USE_MAX7456
@@ -42,8 +49,6 @@
4249
#define GYRO_1_EXTI_PIN PC5
4350
#define GYRO_1_CS_PIN PA4
4451
#define GYRO_1_SPI_INSTANCE SPI1
45-
#define USE_GYRO_CLKIN
46-
#define GYRO_1_CLKIN_PIN PC6
4752
#define GYRO_1_ALIGN CW180_DEG_FLIP
4853

4954
#define SPI2_SCK_PIN PB13
@@ -94,18 +99,16 @@
9499
#define ADC_CURR_PIN PC1
95100

96101
#define TIMER_PIN_MAPPING \
97-
TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \
98-
TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \
99-
TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \
100-
TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \
101-
TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \
102-
TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8) \
103-
TIMER_PIN_MAP(6, GYRO_1_CLKIN_PIN, 1, -1)
102+
TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \
103+
TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \
104+
TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \
105+
TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \
106+
TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \
107+
TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8)
104108

105109
#define ADC1_DMA_OPT 9
106110
#define ADC3_DMA_OPT 10
107111
#define TIMUP1_DMA_OPT 11
108-
#define TIMUP5_DMA_OPT 12
109112

110113
#define BARO_I2C_INSTANCE I2CDEV_1
111114
#define MAG_I2C_INSTANCE I2CDEV_2
@@ -114,9 +117,12 @@
114117
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
115118
#define DEFAULT_VOLTAGE_METER_SCALE 210
116119

117-
#define PINIO1_PIN PC13
120+
#define PINIO1_PIN PE2
118121
#define PINIO1_BOX 40
119-
#define PINIO1_CONFIG 129
120-
#define BOX_USER1_NAME "12V BEC"
122+
#define BOX_USER1_NAME "Cam1,2"
123+
124+
#define PINIO2_PIN PC13
125+
#define PINIO2_BOX 41
126+
#define BOX_USER2_NAME "12V BEC"
121127

122128
#define BEEPER_INVERTED

0 commit comments

Comments
 (0)