blob: 0227360309c42bcf1c2d0dbb5694b77c2f350bd4 [file] [log] [blame]
Tomasz Michalecd83647d2021-04-15 14:27:34 +02001# Copyright 2021 Google LLC
2# SPDX-License-Identifier: Apache-2.0
3
4config ADC_EMUL
5 bool "ADC emulator"
Kumar Galad734f272022-07-21 06:43:43 -05006 default y
7 depends on DT_HAS_ZEPHYR_ADC_EMUL_ENABLED
Tomasz Michalecd83647d2021-04-15 14:27:34 +02008 help
9 Enable the ADC emulator driver. This is a fake driver in that it
Nazar Kazakovf483b1b2022-03-16 21:07:43 +000010 does not talk to real hardware. It pretends to be actual ADC. It
Tomasz Michalecd83647d2021-04-15 14:27:34 +020011 is used for testing higher-level API for ADC devices.
12
13if ADC_EMUL
14
15config ADC_EMUL_ACQUISITION_THREAD_STACK_SIZE
16 int "Stack size for the ADC data acquisition thread"
17 default 512
18 help
19 Size of the stack used for the internal data acquisition
20 thread. Increasing size may be required when value function for
21 emulated ADC require a lot of memory.
22
23config ADC_EMUL_ACQUISITION_THREAD_PRIO
24 int "Priority for the ADC data acquisition thread"
25 default 0
26 help
27 Priority level for the internal ADC data acquisition thread.
28
29endif # ADC_EMUL