Merge pull request #5281 from betaflight/cf-changes-6

SPRACINGF4EVO - Use ADC3 instead of ADC1
This commit is contained in:
Michael Keller 2018-02-23 20:46:10 +13:00 committed by GitHub
commit f156ffa30e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -143,8 +143,13 @@
#define MPU6500_SPI_INSTANCE SPI1
#define USE_ADC
#define ADC_INSTANCE ADC1
#define ADC1_DMA_STREAM DMA2_Stream0
// It's possible to use ADC1 or ADC3 on this target, same pins.
//#define ADC_INSTANCE ADC1
//#define ADC1_DMA_STREAM DMA2_Stream0
// Using ADC3 frees up DMA2_Stream0 for SPI1_RX
#define ADC_INSTANCE ADC3
#define ADC3_DMA_STREAM DMA2_Stream1
#define VBAT_ADC_PIN PC1
#define CURRENT_METER_ADC_PIN PC2