Skip to content

Commit c86f0ac

Browse files
Mathieu Choplainhenrikbrixandersen
authored andcommitted
drivers: adc: stm32: add STM32WB0 ADC
Add driver for ADC in STM32WB0 series. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 189d021 commit c86f0ac

File tree

3 files changed

+1262
-1
lines changed

3 files changed

+1262
-1
lines changed

drivers/adc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_SAADC adc_nrfx_saadc.c)
1919
zephyr_library_sources_ifdef(CONFIG_ADC_SAM adc_sam.c)
2020
zephyr_library_sources_ifdef(CONFIG_ADC_SAM0 adc_sam0.c)
2121
zephyr_library_sources_ifdef(CONFIG_ADC_STM32 adc_stm32.c)
22+
zephyr_library_sources_ifdef(CONFIG_ADC_STM32WB0 adc_stm32wb0.c)
2223
zephyr_library_sources_ifdef(CONFIG_ADC_XEC adc_mchp_xec.c)
2324
zephyr_library_sources_ifdef(CONFIG_ADC_LMP90XXX adc_lmp90xxx.c)
2425
zephyr_library_sources_ifdef(CONFIG_ADC_MCP320X adc_mcp320x.c)

drivers/adc/Kconfig.stm32

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# Copyright (c) 2019 Song Qiang <[email protected]>
66
# Copyright (c) 2021 Marius Scholtz, RIC Electronics
77
# Copyright (c) 2022 Hein Wessels, Nobleo Technology
8+
# Copyright (c) 2024 STMicroelectronics
89
# SPDX-License-Identifier: Apache-2.0
910

1011
config ADC_STM32
@@ -15,7 +16,15 @@ config ADC_STM32
1516
help
1617
Enable the driver implementation for the stm32xx ADC
1718

18-
if ADC_STM32
19+
config ADC_STM32WB0
20+
bool "STM32WB0 ADC driver"
21+
default y
22+
depends on DT_HAS_ST_STM32WB0_ADC_ENABLED
23+
select PINCTRL
24+
help
25+
Enable the driver implementation for the STM32WB0 series ADC
26+
27+
if ADC_STM32 || ADC_STM32WB0
1928

2029
config ADC_STM32_DMA
2130
bool "STM32 MCU ADC DMA Support"

0 commit comments

Comments
 (0)