# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2023 Linumiz

menuconfig MC3419
	bool "MC3419 acclerometer driver"
	default y
	depends on DT_HAS_MEMSIC_MC3419_ENABLED
	select I2C if $(dt_compat_on_bus,$(DT_COMPAT_MEMSIC_MC3419),i2c)
	help
	 Enable driver for MC3419 acclerometer.

if MC3419

config MC3419_TRIGGER
	bool "Trigger mode"

if MC3419_TRIGGER

config MC3419_TRIGGER_OWN_THREAD
	bool "Use own thread"
	help
	 Enable trigger to run in own thread. By
	 default it is global thread mode.

config MC3419_THREAD_PRIORITY
	int "Own thread priority"
	depends on MC3419_TRIGGER_OWN_THREAD
	default 10

config MC3419_THREAD_STACK_SIZE
	int "Own thread stask size"
	depends on MC3419_TRIGGER_OWN_THREAD
	default 1024

endif # MC3419_TRIGGER

config MC3419_DECIMATION_RATE
	int "Enable decimation rate"
	range 0 15
	default 15
	help
	 This helps in producing slower interrupt. Internal Data
	 Rate is divide by this decimation rate. If decimation rate
	 is 0 then internal data rate is equal to output data rate,
	 then it produce interrupt floods.

endif # MC3419
