AP_HAL_ChibiOS: allow only ADC2 to be used

This commit is contained in:
Andy Piper 2023-04-14 20:48:05 +01:00 committed by Andrew Tridgell
parent ae04200fa0
commit b75ff2e2ae

View File

@ -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.