diff --git a/configs/HDZEROH743R/config.h b/configs/HDZEROH743R/config.h index 3096cdc2..832ae2f5 100644 --- a/configs/HDZEROH743R/config.h +++ b/configs/HDZEROH743R/config.h @@ -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 @@ -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 @@ -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 \ No newline at end of file +#define FLASH_SPI_INSTANCE SPI2 +#define GYRO_1_SPI_INSTANCE SPI1 +#define GYRO_2_SPI_INSTANCE SPI1