1#  ADC CMP NPCX driver configuration options
2
3# Copyright (c) 2022 Intel Corporation.
4# SPDX-License-Identifier: Apache-2.0
5
6if ADC_NPCX
7
8config ADC_CMP_NPCX
9	bool "Nuvoton NPCX ADC threshold detection interruption"
10	default y
11	depends on DT_HAS_NUVOTON_ADC_CMP_ENABLED
12	help
13	  This option enables threshold interruption using sensor
14	  trigger API.
15
16if ADC_CMP_NPCX
17
18config ADC_CMP_NPCX_WORKQUEUE
19	bool "NPCX ADC threshold detection uses internal work queue"
20	help
21	  Threshold detection ISR utilizes system work queue for calling
22	  trigger handlers; set this option to use dedicated work queue instead.
23
24if ADC_CMP_NPCX_WORKQUEUE
25
26config ADC_CMP_NPCX_WORKQUEUE_PRIORITY
27	int "Nuvoton NPCX ADC trheshold detection work queue priority"
28	default SYSTEM_WORKQUEUE_PRIORITY
29	help
30	  This option sets internal ADC NPCX threshold detection workqueue
31	  priority.
32
33config ADC_CMP_NPCX_WORKQUEUE_STACK_SIZE
34	int "Nuvoton NPCX ADC trheshold detection work queue stack size"
35	default 768
36	help
37	  This option sets internal ADC NPCX threshold detection workqueue
38	  stack size.
39
40endif # ADC_CMP_NPCX_WORKQUEUE
41
42endif # ADC_CMP_NPCX
43
44endif # ADC_NPCX
45