AP_HAL_ChibiOS: allow only ADC2 to be used
This commit is contained in:
parent
ae04200fa0
commit
b75ff2e2ae
@ -587,8 +587,11 @@
|
||||
#define STM32_ADC_ADC3_CLOCK_MODE ADC_CCR_CKMODE_ADCCK
|
||||
|
||||
// we call it ADC1 in hwdef.dat, but driver uses ADC12 for DMA stream
|
||||
#ifdef STM32_ADC_ADC1_DMA_STREAM
|
||||
#define STM32_ADC_ADC12_DMA_STREAM STM32_ADC_ADC1_DMA_STREAM
|
||||
|
||||
#elif defined(STM32_ADC_ADC2_DMA_STREAM)
|
||||
#define STM32_ADC_ADC12_DMA_STREAM STM32_ADC_ADC2_DMA_STREAM
|
||||
#endif
|
||||
|
||||
/*
|
||||
* CAN driver system settings.
|
||||
|
Loading…
Reference in New Issue
Block a user