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

menu "Utilities"

config DESKTOP_HWID
	bool "Hardware ID module"
	select HWINFO
	help
	  Enable nRF Desktop hardware ID utility. The hardware ID is obtained
	  from Zephyr hwinfo driver.

config DESKTOP_HWINFO_BLE_ADDRESS_FICR
	bool
	default y
	depends on BOARD_NRF54H20DK_NRF54H20_CPUAPP

config DESKTOP_HWINFO_BLE_ADDRESS_FICR_POSTFIX
	hex "Postfix for HW ID derived from BLE address"
	range 0x0000 0xffff
	default 0x0b1e
	depends on DESKTOP_HWINFO_BLE_ADDRESS_FICR
	help
	  Postfix appended in big-endian to the HW ID derived from the BLE address.

config DESKTOP_ADV_PROV_UUID16_ALL
	bool "UUID16 advertising provider"
	depends on BT_ADV_PROV
	depends on (DESKTOP_HIDS_ENABLE || DESKTOP_BAS_ENABLE)
	help
	  Adds all UUID16 to the advertising payload if used Bluetooth local
	  identity has no bond.

config DESKTOP_DFU_LOCK
	bool "DFU lock module"
	default y if (DESKTOP_CONFIG_CHANNEL_DFU_ENABLE && DESKTOP_DFU_MCUMGR_ENABLE)
	help
	  Enable nRF Desktop DFU lock module for synchronizing multiple DFU
	  methods.

	  The module is automatically enabled when the Config Channel DFU and
	  the MCUmgr DFU are both enabled.

if DESKTOP_DFU_LOCK

module = DESKTOP_DFU_LOCK
module-str = DFU Lock
source "subsys/logging/Kconfig.template.log_config"

endif

endmenu
