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

menuconfig NET_CORE_MONITOR
	bool "NCM (Network Core Monitor) module [EXPERIMENTAL]"
	select EXPERIMENTAL
	depends on (SOC_NRF5340_CPUAPP || SOC_NRF5340_CPUNET)
	help
	  Enable the Network Core Monitor module.
	  To define the user action for event, you need to override the
	  weak function definition of the ncm_net_core_event_handler.

if NET_CORE_MONITOR

menu "Net Core Monitor"

config NCM_FEEDING_INTERVAL_MSEC
	default 500 if SOC_NRF5340_CPUNET
	default 1000 if SOC_NRF5340_CPUAPP
	int "Feeding interval in milliseconds"
	help
	  The value of this parameter on the application core must be greater
	  than the value on the network core. Otherwise the network core monitor
	  will report false positive network code malfunctions.

config NCM_RESET_INIT_PRIORITY
	int "Reset init priority"
	default KERNEL_INIT_PRIORITY_DEFAULT

endmenu

module = NET_CORE_MONITOR
module-str = NET_CORE_MONITOR
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

endif #NET_CORE_MONITOR
