Skip to content

Commit

Permalink
remove unused driver, remove default defines, remove gyro 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Eike Ahmels committed Dec 9, 2024
1 parent a66c63f commit 04ae008
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions configs/HDZEROH743R/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@
#define MANUFACTURER_ID HDZO

#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define USE_GYRO_SPI_MPU6500
#define USE_GYRO_SPI_ICM42688P
#define USE_ACC
#define USE_ACC_SPI_MPU6000
#define USE_ACC_SPI_MPU6500
#define USE_ACC_SPI_ICM42688P
#define USE_FLASH
#define USE_FLASH_W25Q128FV
Expand Down Expand Up @@ -71,18 +67,14 @@
#define FLASH_CS_PIN PB12
#define GYRO_1_EXTI_PIN PC13
#define GYRO_1_CS_PIN PB4
#define GYRO_2_EXTI_PIN PA15
#define GYRO_2_CS_PIN PB3

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

#define SPI1_RX_DMA_OPT 7
TIMER_PIN_MAP( 0, MOTOR1_PIN, 1, 0 ) /* TIM3 CH1 */\
TIMER_PIN_MAP( 1, MOTOR2_PIN, 1, 0 ) /* TIM3 CH2 */\
TIMER_PIN_MAP( 2, MOTOR3_PIN, 2, 0 ) /* TIM3 CH3 */ \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 2, 0 ) /* TIM3 CH4 */ \
TIMER_PIN_MAP( 4, LED_STRIP_PIN, 1, 0 ) /* TIM1 CH3 */ \
TIMER_PIN_MAP( 5, BEEPER_PIN, 1, 0 ) /* TIM4 CH1 */

#define ADC1_DMA_OPT 8
#define ADC2_DMA_OPT 9
Expand All @@ -94,13 +86,12 @@
#define TIMUP5_DMA_OPT 0
#define TIMUP8_DMA_OPT 0

#define USE_TELEMETRY

#define SERIALRX_UART SERIAL_PORT_USART1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 100
#define BEEPER_INVERTED
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1

0 comments on commit 04ae008

Please sign in to comment.