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

# Asset Tracker v2 requires UART_INTERRUPT_DRIVEN to be enabled when SERIAL is used in order to
# receive AT Commands.
config UART_INTERRUPT_DRIVEN
	default y if SERIAL

# Asset Tracker v2 requires the default logging mode as LOG_MODE_IMMEDIATE because
# a) LOG_MODE_DEFERRED does not print floating point numbers.
#	 See : https://github.com/zephyrproject-rtos/zephyr/issues/18351
# b) Using LOG2_MODE_DEFERRED results in missing logs in certain situations. Ref: NCSIDB-630
choice LOG_MODE
	default LOG_MODE_IMMEDIATE
endchoice

menu "Asset Tracker v2"

config ASSET_TRACKER_V2_APP_VERSION
	string "Asset Tracker application firmware version"
	default "0.0.0-development"

config ASSET_TRACKER_V2_APP_VERSION_MAX_LEN
	int "Maximum length of the application firmware version"
	default 150

config LWM2M_SUPL
	bool "SUPL Object support for LwM2M"
	default n

rsource "src/modules/Kconfig.modules_common"
rsource "src/modules/Kconfig.cloud_module"
rsource "src/cloud/Kconfig.lwm2m_integration"
rsource "src/modules/Kconfig.data_module"
rsource "src/modules/Kconfig.location_module"
rsource "src/modules/Kconfig.modem_module"
rsource "src/modules/Kconfig.sensor_module"
rsource "src/modules/Kconfig.ui_module"
rsource "src/modules/Kconfig.util_module"
rsource "src/modules/Kconfig.led_module"
rsource "src/modules/Kconfig.debug_module"

rsource "src/cloud/cloud_codec/Kconfig"
rsource "src/watchdog/Kconfig"
rsource "src/events/Kconfig"

endmenu

menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu

module = APPLICATION_MODULE
module-str = Application module
source "subsys/logging/Kconfig.template.log_config"
