From c04e477f97bfc6452704b89ee1fab820e3573b79 Mon Sep 17 00:00:00 2001 From: ASDosjani <62965528+ASDosjani@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:42:13 +0200 Subject: [PATCH] dma for gyro (#188) --- configs/AOCODAF405V2MPU6000/config.h | 7 ++++--- configs/AOCODAF405V2MPU6500/config.h | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/configs/AOCODAF405V2MPU6000/config.h b/configs/AOCODAF405V2MPU6000/config.h index 6ca968d6..090ee2f8 100644 --- a/configs/AOCODAF405V2MPU6000/config.h +++ b/configs/AOCODAF405V2MPU6000/config.h @@ -92,14 +92,15 @@ TIMER_PIN_MAP( 9, PB1 , 2, 0) - -#define ADC1_DMA_OPT 0 +#define ADC_INSTANCE ADC3 +#define ADC3_DMA_OPT 1 #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH -#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF +#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 500 diff --git a/configs/AOCODAF405V2MPU6500/config.h b/configs/AOCODAF405V2MPU6500/config.h index a57a7809..8f981aea 100644 --- a/configs/AOCODAF405V2MPU6500/config.h +++ b/configs/AOCODAF405V2MPU6500/config.h @@ -92,14 +92,15 @@ TIMER_PIN_MAP( 9, PB1 , 2, 0) - -#define ADC1_DMA_OPT 0 +#define ADC_INSTANCE ADC3 +#define ADC3_DMA_OPT 1 #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH -#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON +#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF +#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 500