Skip to content

Commit e5ec43f

Browse files
committed
drivers: adc: Add support for cc23x0 ADC
Add support for 16-channel ADC to cc23x0 SoC. The driver supports the following conversion modes: - Single channel | Single conversion, - Sequence of channels (up to 4) | Single conversion. Signed-off-by: Julien Panis <[email protected]>
1 parent 658f935 commit e5ec43f

File tree

5 files changed

+528
-0
lines changed

5 files changed

+528
-0
lines changed

drivers/adc/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_NPCX adc_npcx.c)
2727
zephyr_library_sources_ifdef(CONFIG_USERSPACE adc_handlers.c)
2828
zephyr_library_sources_ifdef(CONFIG_ADC_CC32XX adc_cc32xx.c)
2929
zephyr_library_sources_ifdef(CONFIG_ADC_CC13XX_CC26XX adc_cc13xx_cc26xx.c)
30+
zephyr_library_sources_ifdef(CONFIG_ADC_CC23X0 adc_cc23x0.c)
3031
zephyr_library_sources_ifdef(CONFIG_ADC_EMUL adc_emul.c)
3132
zephyr_library_sources_ifdef(CONFIG_ADC_TEST adc_test.c)
3233
zephyr_library_sources_ifdef(CONFIG_ADC_ADS1X1X adc_ads1x1x.c)

drivers/adc/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ source "drivers/adc/Kconfig.cc32xx"
8484

8585
source "drivers/adc/Kconfig.cc13xx_cc26xx"
8686

87+
source "drivers/adc/Kconfig.cc23x0"
88+
8789
source "drivers/adc/Kconfig.adc_emul"
8890

8991
source "drivers/adc/Kconfig.vf610"

drivers/adc/Kconfig.cc23x0

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 BayLibre, SAS
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config ADC_CC23X0
5+
bool "CC23X0 ADC driver"
6+
default y
7+
depends on DT_HAS_TI_CC23X0_ADC_ENABLED
8+
select PINCTRL
9+
help
10+
Enable the TI CC23X0 ADC driver.

0 commit comments

Comments
 (0)