Skip to content

Commit

Permalink
dma for gyro (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASDosjani authored Oct 8, 2023
1 parent 5d34e80 commit c04e477
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions configs/AOCODAF405V2MPU6000/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions configs/AOCODAF405V2MPU6500/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c04e477

Please sign in to comment.