# 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" depends on GPIO depends on $(dt_compat_any_has_prop,$(DT_COMPAT_MEMSIC_MC3419),int-gpios) choice MC3419_TRIGGER_MODE prompt "Trigger mode" default MC3419_TRIGGER_NONE help Specify the type of triggering to be used by the driver. config MC3419_TRIGGER_NONE bool "No trigger" config MC3419_TRIGGER_OWN_THREAD bool "Use own thread" select MC3419_TRIGGER help Enable trigger to run in own thread. By default it is global thread mode. endchoice # MC3419_TRIGGER_MODE if MC3419_TRIGGER 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 endif # MC3419