# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
#
# This file is the application Kconfig entry point. All application Kconfig
# options can be defined here or included via other application Kconfig files.
# You can browse these options using the west targets menuconfig (terminal) or
# guiconfig (GUI).

menu "Zephyr"
source "Kconfig.zephyr"
endmenu

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

menu "FRST Terminal"

choice KBD_9P_TRANSPORT
	prompt "9P Keyboard transport"
	default KBD_9P_TRANSPORT_BLE
	help
	  Select the transport layer for 9P keyboard communication.

config KBD_9P_TRANSPORT_BLE
	bool "BLE L2CAP (wireless)"
	depends on BT
	help
	  Use BLE L2CAP for wireless keyboard connection.
	  Supports scanning, pairing, and IRK resolution.

config KBD_9P_TRANSPORT_UART
	bool "UART serial (wired)"
	depends on SERIAL
	select NINEP_TRANSPORT_UART
	help
	  Use UART for wired keyboard connection.
	  Simpler setup, no pairing required.

endchoice

if KBD_9P_TRANSPORT_UART

config KBD_9P_UART_DEVICE
	string "UART device for keyboard"
	default "uart1"
	help
	  The UART device name to use for keyboard communication.

endif # KBD_9P_TRANSPORT_UART

endmenu
