# Copyright (c) 2026 Siratul Islam <email@sirat.me>
# SPDX-License-Identifier: Apache-2.0

menu "Transport"

config FIDO2_TRANSPORT_USB_HID
	bool "CTAP over USB HID"
	depends on USB_DEVICE_STACK_NEXT
	select USBD_HID_SUPPORT
	help
	  Enable FIDO2 communication over USB HID (CTAPHID).

config FIDO2_CTAPHID_TIMEOUT_MS
	int "CTAPHID message reassembly timeout in milliseconds"
	default 1000
	range 100 2000
	depends on FIDO2_TRANSPORT_USB_HID
	help
	  Maximum time to wait for continuation packets during CTAPHID
	  message reassembly. If a complete message is not received within
	  this timeout, the authenticator sends an error response and
	  aborts the transaction.

config FIDO2_CTAPHID_KEEPALIVE_INTERVAL_MS
	int "CTAPHID keepalive interval in milliseconds"
	default 100
	range 20 100
	depends on FIDO2_TRANSPORT_USB_HID
	help
	  Interval for CTAPHID keepalive packets. The specification requires
	  this to be at most 100ms for USB HID to prevent host timeouts.

config FIDO2_HID_RX_WORKQ_STACK_SIZE
	int "USB HID RX workqueue stack size"
	default 4096
	range 1024 16384
	depends on FIDO2_TRANSPORT_USB_HID
	help
	  Stack size for the dedicated USB HID RX workqueue used to
	  process incoming CTAPHID reports.

endmenu
