Tomasz Michalec | d83647d | 2021-04-15 14:27:34 +0200 | [diff] [blame] | 1 | # Copyright 2021 Google LLC |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | config ADC_EMUL |
| 5 | bool "ADC emulator" |
Kumar Gala | d734f27 | 2022-07-21 06:43:43 -0500 | [diff] [blame] | 6 | default y |
| 7 | depends on DT_HAS_ZEPHYR_ADC_EMUL_ENABLED |
Tomasz Michalec | d83647d | 2021-04-15 14:27:34 +0200 | [diff] [blame] | 8 | help |
| 9 | Enable the ADC emulator driver. This is a fake driver in that it |
Nazar Kazakov | f483b1b | 2022-03-16 21:07:43 +0000 | [diff] [blame] | 10 | does not talk to real hardware. It pretends to be actual ADC. It |
Tomasz Michalec | d83647d | 2021-04-15 14:27:34 +0200 | [diff] [blame] | 11 | is used for testing higher-level API for ADC devices. |
| 12 | |
| 13 | if ADC_EMUL |
| 14 | |
| 15 | config 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 | |
| 23 | config 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 | |
| 29 | endif # ADC_EMUL |