Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions configs/HGLRC_H743_LITE/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#define USE_ACC_SPI_ICM42688P
#define USE_GYRO
#define USE_GYRO_SPI_ICM42688P
#define USE_ACCGYRO_LSM6DSV16X
#define USE_ACCGYRO_LSM6DSK320X

#define USE_BARO
#define USE_BARO_DPS310
#define USE_MAX7456
Expand All @@ -42,8 +45,6 @@
#define GYRO_1_EXTI_PIN PC5
#define GYRO_1_CS_PIN PA4
#define GYRO_1_SPI_INSTANCE SPI1
#define USE_GYRO_CLKIN
#define GYRO_1_CLKIN_PIN PC6
#define GYRO_1_ALIGN CW180_DEG_FLIP

#define SPI2_SCK_PIN PB13
Expand Down Expand Up @@ -94,13 +95,12 @@
#define ADC_CURR_PIN PC1

#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \
TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \
TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \
TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \
TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \
TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8) \
TIMER_PIN_MAP(6, GYRO_1_CLKIN_PIN, 1, -1)
TIMER_PIN_MAP(0, BEEPER_PIN, 1, -1) \
TIMER_PIN_MAP(1, MOTOR1_PIN, 1, 0) \
TIMER_PIN_MAP(2, MOTOR2_PIN, 1, 1) \
TIMER_PIN_MAP(3, MOTOR3_PIN, 1, 2) \
TIMER_PIN_MAP(4, MOTOR4_PIN, 1, 3) \
TIMER_PIN_MAP(5, LED_STRIP_PIN, 1, 8)

#define ADC1_DMA_OPT 9
#define ADC3_DMA_OPT 10
Expand All @@ -114,9 +114,12 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_VOLTAGE_METER_SCALE 210

#define PINIO1_PIN PC13
#define PINIO1_PIN PE2
#define PINIO1_BOX 40
#define PINIO1_CONFIG 129
#define BOX_USER1_NAME "12V BEC"
#define BOX_USER1_NAME "Cam1,2"

#define PINIO2_PIN PC13
#define PINIO2_BOX 41
#define BOX_USER2_NAME "12V BEC"

#define BEEPER_INVERTED