Fix targets with broken ADC DMA definition.
This commit is contained in:
parent
f39f8ee410
commit
83a2bd79fb
|
@ -118,7 +118,7 @@
|
||||||
|
|
||||||
// *************** ADC *****************************
|
// *************** ADC *****************************
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define ADC3_DMA_STREAM DMA2_Stream0
|
#define ADC3_DMA_OPT 0
|
||||||
#define VBAT_ADC_PIN PC0
|
#define VBAT_ADC_PIN PC0
|
||||||
#define CURRENT_METER_ADC_PIN PC1
|
#define CURRENT_METER_ADC_PIN PC1
|
||||||
#define RSSI_ADC_PIN PC2
|
#define RSSI_ADC_PIN PC2
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
|
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define ADC_INSTANCE ADC3
|
#define ADC_INSTANCE ADC3
|
||||||
#define ADC3_DMA_STREAM DMA2_Stream0
|
#define ADC3_DMA_OPT 0
|
||||||
|
|
||||||
#define VBAT_ADC_PIN PC1
|
#define VBAT_ADC_PIN PC1
|
||||||
#define CURRENT_METER_ADC_PIN PC3
|
#define CURRENT_METER_ADC_PIN PC3
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
|
|
||||||
// *************** ADC *****************************
|
// *************** ADC *****************************
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define ADC3_DMA_STREAM DMA2_Stream0
|
#define ADC3_DMA_OPT 0
|
||||||
#define VBAT_ADC_PIN PC0
|
#define VBAT_ADC_PIN PC0
|
||||||
#define CURRENT_METER_ADC_PIN PC1
|
#define CURRENT_METER_ADC_PIN PC1
|
||||||
#define RSSI_ADC_PIN PC2
|
#define RSSI_ADC_PIN PC2
|
||||||
|
|
|
@ -135,3 +135,6 @@
|
||||||
#error "The USE_SERIAL_4WAY_BLHELI_INTERFACE define should not be part of the target definition"
|
#error "The USE_SERIAL_4WAY_BLHELI_INTERFACE define should not be part of the target definition"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(USE_DMA_SPEC) && (defined(ADC1_DMA_STREAM) || defined(ADC2_DMA_STREAM) || defined(ADC3_DMA_STREAM))
|
||||||
|
#error "ADCx_DMA_STREAM defines cannot be used when USE_DMA_OPT is used."
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue