# Copyright (c) 2023 Intel Corporation
# Copyright (c) 2025 Renesas Electronics Corporation
#
# SPDX-License-Identifier: Apache-2.0

mainmenu "ADC accuracy test"

source "Kconfig.zephyr"

# Workaround to have commas on function arguments
ZEPHYR_USER := zephyr,user

config DAC_SOURCE_TEST
	bool "Test using a DAC source"
	select DAC
	depends on $(dt_node_has_prop,/$(ZEPHYR_USER),dac)
	depends on $(dt_node_has_prop,/$(ZEPHYR_USER),dac-channel-id)
	depends on $(dt_node_has_prop,/$(ZEPHYR_USER),dac-resolution)

config REFERENCE_VOLTAGE_TEST
	bool "Test using a ref voltage source"
	depends on $(dt_node_has_prop,/$(ZEPHYR_USER),reference-mv)
	depends on $(dt_node_has_prop,/$(ZEPHYR_USER),expected-accuracy)

config NUMBER_OF_PASSES
	int "Number of passes"
	default 5

if DAC_SOURCE_TEST

config DAC_BUFFER_NOT_SUPPORTED
	bool "DAC on board/SoC does not support output buffer mode"
	help
	  If this config is selected, the test will run with no output buffer enabled

endif # DAC_SOURCE_TEST
