# Sensor data simulator
#
# Copyright (c) 2018-2022 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

DT_COMPAT_NORDIC_SENSOR_SIM := nordic,sensor-sim

menuconfig SENSOR_SIM
	bool "Sensor simulator"
	default y if $(dt_compat_enabled,$(DT_COMPAT_NORDIC_SENSOR_SIM))
	# FPU_SHARING needs to be enabled if FPU is enabled, as other contexts
	# might also use the FPU.
	select FPU_SHARING if FPU
	select WAVE_GEN_LIB
	help
	  Enable sensor simulator.

if SENSOR_SIM

config SENSOR_SIM_TRIGGER
	bool "Sensor simulator trigger"
	help
	  Enable trigger mode.

if SENSOR_SIM_TRIGGER

config SENSOR_SIM_THREAD_PRIORITY
	int "Thread priority"
	default 10
	help
	  Priority of thread used by the driver to handle interrupts.

config SENSOR_SIM_THREAD_STACK_SIZE
	int "Trigger thread stack size"
	default 512
	help
	  Stack size of thread used by the driver to handle interrupts.

endif #SENSOR_SIM_TRIGGER

endif #SENSOR_SIM
