drivers: adc: stm32: add STM32WB0 ADC

Add driver for ADC in STM32WB0 series.

Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
This commit is contained in:
Mathieu Choplain 2024-10-21 15:22:38 +02:00 committed by Henrik Brix Andersen
parent 189d021128
commit c86f0ac6f3
3 changed files with 1262 additions and 1 deletions

View File

@ -19,6 +19,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_SAADC adc_nrfx_saadc.c)
zephyr_library_sources_ifdef(CONFIG_ADC_SAM adc_sam.c)
zephyr_library_sources_ifdef(CONFIG_ADC_SAM0 adc_sam0.c)
zephyr_library_sources_ifdef(CONFIG_ADC_STM32 adc_stm32.c)
zephyr_library_sources_ifdef(CONFIG_ADC_STM32WB0 adc_stm32wb0.c)
zephyr_library_sources_ifdef(CONFIG_ADC_XEC adc_mchp_xec.c)
zephyr_library_sources_ifdef(CONFIG_ADC_LMP90XXX adc_lmp90xxx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MCP320X adc_mcp320x.c)

View File

@ -5,6 +5,7 @@
# Copyright (c) 2019 Song Qiang <songqiang1304521@gmail.com>
# Copyright (c) 2021 Marius Scholtz, RIC Electronics
# Copyright (c) 2022 Hein Wessels, Nobleo Technology
# Copyright (c) 2024 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config ADC_STM32
@ -15,7 +16,15 @@ config ADC_STM32
help
Enable the driver implementation for the stm32xx ADC
if ADC_STM32
config ADC_STM32WB0
bool "STM32WB0 ADC driver"
default y
depends on DT_HAS_ST_STM32WB0_ADC_ENABLED
select PINCTRL
help
Enable the driver implementation for the STM32WB0 series ADC
if ADC_STM32 || ADC_STM32WB0
config ADC_STM32_DMA
bool "STM32 MCU ADC DMA Support"

1251
drivers/adc/adc_stm32wb0.c Normal file

File diff suppressed because it is too large Load Diff