#
# Copyright (c) 2023 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

menuconfig EXTERNAL_SENSORS
	bool "External sensors"

if EXTERNAL_SENSORS

config EXTERNAL_SENSORS_IMPACT_DETECTION
	bool "Impact detection"
	select ADXL372
	help
	  Enable this option to use the impact detection feature.
	  Please note that this increases power consumption.

if EXTERNAL_SENSORS_IMPACT_DETECTION

choice ADXL372_OP_MODE
	default ADXL372_PEAK_DETECT_MODE
endchoice

choice ADXL372_TRIGGER_MODE
	default ADXL372_TRIGGER_GLOBAL_THREAD
endchoice

endif # EXTERNAL_SENSORS_IMPACT_DETECTION

module = EXTERNAL_SENSORS
module-str = External sensors
source "subsys/logging/Kconfig.template.log_config"

endif # EXTERNAL_SENSORS
