[KAKUTEF4] Move ADC to DMA2_Stream0 to avoid conflict (#5481)

* Move ADC to DMA2_Stream0 to avoid conflict

Motor 6 output is declared to use DMA2_ST4, which is used by default by ADC so Dshot is not possible on that output.

* Omitting channel defines

ADC channels are inferred from corresponding pins.
This commit is contained in:
mice5 2018-03-21 01:48:08 +01:00 committed by Michael Keller
parent 11fb4cb091
commit 93d86f3dab
1 changed files with 1 additions and 5 deletions

View File

@ -137,14 +137,10 @@
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define USE_ADC #define USE_ADC
#define ADC1_DMA_STREAM DMA2_Stream0
#define VBAT_ADC_PIN PC3 #define VBAT_ADC_PIN PC3
#define VBAT_ADC_CHANNEL ADC_Channel_13
#define CURRENT_METER_ADC_PIN PC2 #define CURRENT_METER_ADC_PIN PC2
#define CURRENT_METER_ADC_CHANNEL ADC_Channel_12
#define RSSI_ADC_PIN PC1 #define RSSI_ADC_PIN PC1
#define RSSI_ADC_CHANNEL ADC_Channel_11
#define DEFAULT_FEATURES ( FEATURE_TELEMETRY | FEATURE_OSD ) #define DEFAULT_FEATURES ( FEATURE_TELEMETRY | FEATURE_OSD )
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL