Skip to content

Commit f809614

Browse files
congnguyenhuummahadevan108
authored andcommitted
drivers: adc: add NXP S32 ADC SAR driver
Add support ADC SAR for NXP S32. ADC SAR diver support 3 group channels (precision, standard and external), run normal trigger in oneshot conversion mode with 2 callbacks normal end of conversion and normal end chain callbacks. An instance only run on 1 group channel and 1 kind of callback at the same time. Signed-off-by: Cong Nguyen Huu <[email protected]>
1 parent 3191d08 commit f809614

File tree

5 files changed

+507
-0
lines changed

5 files changed

+507
-0
lines changed

drivers/adc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_INFINEON_CAT1 adc_ifx_cat1.c)
4343
zephyr_library_sources_ifdef(CONFIG_ADC_SMARTBOND_GPADC adc_smartbond_gpadc.c)
4444
zephyr_library_sources_ifdef(CONFIG_ADC_SMARTBOND_SDADC adc_smartbond_sdadc.c)
4545
zephyr_library_sources_ifdef(CONFIG_ADC_TLA2021 adc_tla2021.c)
46+
zephyr_library_sources_ifdef(CONFIG_ADC_NXP_S32_ADC_SAR adc_nxp_s32_adc_sar.c)

drivers/adc/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,6 @@ source "drivers/adc/Kconfig.smartbond"
110110

111111
source "drivers/adc/Kconfig.tla2021"
112112

113+
source "drivers/adc/Kconfig.nxp_s32"
114+
113115
endif # ADC

drivers/adc/Kconfig.nxp_s32

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2023 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config ADC_NXP_S32_ADC_SAR
5+
bool "NXP S32 ADC SAR driver"
6+
default y
7+
depends on DT_HAS_NXP_S32_ADC_SAR_ENABLED
8+
help
9+
This option enables the NXP S32 ADC SAR driver.

0 commit comments

Comments
 (0)