Skip to content

Commit

Permalink
remove unused driver, remove default defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Eike Ahmels committed Dec 10, 2024
1 parent a66c63f commit 98c5820
Showing 1 changed file with 14 additions and 27 deletions.
41 changes: 14 additions & 27 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 All @@ -58,7 +54,6 @@
#define I2C1_SCL_PIN PB8
#define I2C1_SDA_PIN PB9
#define LED0_PIN PE2
#define LED1_PIN PC14
#define SPI1_SCK_PIN PA5
#define SPI2_SCK_PIN PB13
#define SPI1_SDI_PIN PA6
Expand All @@ -75,32 +70,24 @@
#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, 1 ) /* TIM3 CH2 */ \
TIMER_PIN_MAP( 2, MOTOR3_PIN, 1, 2 ) /* TIM3 CH3 */ \
TIMER_PIN_MAP( 3, MOTOR4_PIN, 1, 3 ) /* TIM3 CH4 */ \
TIMER_PIN_MAP( 4, LED_STRIP_PIN, 1, 4 ) /* TIM1 CH3 */ \
TIMER_PIN_MAP( 5, BEEPER_PIN, 1, -1 ) /* TIM4 CH1 */

#define ADC1_DMA_OPT 8
#define ADC2_DMA_OPT 9
#define ADC3_DMA_OPT 10

#define TIMUP1_DMA_OPT 0
#define TIMUP3_DMA_OPT 0
#define TIMUP4_DMA_OPT 0
#define TIMUP5_DMA_OPT 0
#define TIMUP8_DMA_OPT 0
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON

#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 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 BEEPER_INVERTED
#define FLASH_SPI_INSTANCE SPI2
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1
#define FLASH_SPI_INSTANCE SPI2
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_2_SPI_INSTANCE SPI1

0 comments on commit 98c5820

Please sign in to comment.