# ICP20100 Pressure Sensor configuration options

# Copyright (c) 2020 TDK Invensense
# SPDX-License-Identifier: Apache-2.0

menuconfig ICP20100
	bool "ICP20100 Pressure Sensor"
	default y
	depends on DT_HAS_INVENSENSE_ICP20100_ENABLED
	select SPI
	help
	  Enable driver for ICP20100 Pressure Sensor

if ICP20100

choice ICP20100_TRIGGER_MODE
	prompt "Trigger mode"
	default ICP20100_TRIGGER_GLOBAL_THREAD
	help
	  Specify the type of triggering to be used by the driver.

config ICP20100_TRIGGER_NONE
	bool "No trigger"

config ICP20100_TRIGGER_GLOBAL_THREAD
	bool "Use global thread"
	depends on GPIO
	select ICP20100_TRIGGER

endchoice

config ICP20100_TRIGGER
	bool

config ICP20100_THREAD_PRIORITY
	int "Thread priority"
	depends on ICP20100_TRIGGER_GLOBAL_THREAD
	default 10
	help
	  Priority of thread used by the driver to handle interrupts.

config ICP20100_THREAD_STACK_SIZE
	int "Thread stack size"
	depends on ICP20100_TRIGGER_GLOBAL_THREAD
	default 1024
	help
	  Stack size of thread used by the driver to handle interrupts.

endif # ICP20100
