mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-07 20:55:22 +00:00
NPCX7 includes a 10-bit resolution Analog-to-Digital Converter (ADC). Up to 10 voltage inputs can be measured and a internal voltage reference (VREF), 2.816V (typical) is used for measurement. It can be triggered automatically in Autoscan mode. Each input channel is assigned a separate result register, which is updated at the end of the conversion. The CL also includes: — Add npcx adc device tree declarations. — Zephyr adc api implementation. — Add adc definitions of npcx7 in tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites. Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
20 lines
1008 B
CMake
20 lines
1008 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_ADC adc_common.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_SHELL adc_shell.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC12 adc_mcux_adc12.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC16 adc_mcux_adc16.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_LPADC adc_mcux_lpadc.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_SAM_AFEC adc_sam_afec.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_ADC adc_nrfx_adc.c)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_SAADC adc_nrfx_saadc.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_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)
|
|
zephyr_library_sources_ifdef(CONFIG_ADC_NPCX adc_npcx.c)
|
|
zephyr_library_sources_ifdef(CONFIG_USERSPACE adc_handlers.c)
|