1# ADC configuration options 2 3# Copyright (c) 2019 Intel Corporation 4# Copyright (c) 2019 Endre Karlson 5# Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com> 6# Copyright (c) 2021 Marius Scholtz, RIC Electronics 7# Copyright (c) 2022 Hein Wessels, Nobleo Technology 8# SPDX-License-Identifier: Apache-2.0 9 10config ADC_STM32 11 bool "STM32 ADC driver" 12 default y 13 depends on DT_HAS_ST_STM32_ADC_ENABLED 14 help 15 Enable the driver implementation for the stm32xx ADC 16 17if ADC_STM32 18 19config ADC_STM32_DMA 20 bool "STM32 MCU ADC DMA Support" 21 select DMA 22 help 23 Enable the ADC DMA mode for ADC instances 24 that enable dma channels in their device tree node. 25 26if SOC_SERIES_STM32F2X || (SOC_SERIES_STM32F3X && !SOC_STM32F373XC) || SOC_SERIES_STM32F4X || SOC_SERIES_STM32F7X || SOC_SERIES_STM32G4X 27 28config ADC_STM32_SHARED_IRQS 29 bool "STM32 ADC shared interrupts" 30 default y 31 depends on ADC_STM32 && !ADC_STM32_DMA 32 help 33 Enable the use of shared interrupts for families that only have a single interrupt for all ADC's 34 35endif 36 37endif 38