Fix targets with broken ADC DMA definition.

This commit is contained in:
mikeller 2019-10-10 02:57:49 +13:00
parent f39f8ee410
commit 83a2bd79fb
4 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,7 @@
// *************** ADC *****************************
#define USE_ADC
#define ADC3_DMA_STREAM DMA2_Stream0
#define ADC3_DMA_OPT 0
#define VBAT_ADC_PIN PC0
#define CURRENT_METER_ADC_PIN PC1
#define RSSI_ADC_PIN PC2

View File

@ -112,7 +112,7 @@
#define USE_ADC
#define ADC_INSTANCE ADC3
#define ADC3_DMA_STREAM DMA2_Stream0
#define ADC3_DMA_OPT 0
#define VBAT_ADC_PIN PC1
#define CURRENT_METER_ADC_PIN PC3

View File

@ -129,7 +129,7 @@
// *************** ADC *****************************
#define USE_ADC
#define ADC3_DMA_STREAM DMA2_Stream0
#define ADC3_DMA_OPT 0
#define VBAT_ADC_PIN PC0
#define CURRENT_METER_ADC_PIN PC1
#define RSSI_ADC_PIN PC2

View File

@ -135,3 +135,6 @@
#error "The USE_SERIAL_4WAY_BLHELI_INTERFACE define should not be part of the target definition"
#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