# Copyright (c) 2026 Meta Platforms
# SPDX-License-Identifier: Apache-2.0

mainmenu "Counter capture test configuration"

source "Kconfig.zephyr"

config NUM_OF_CONTINUOUS_CAPTURES
	int "Number of continuous capture iterations"
	default 5
	range 1 255
	help
	  Number of capture iterations run by each continuous capture test case.

config COUNTER_CAPTURE_TOLERANCE_US
	int "Capture timestamp tolerance in microseconds"
	default 100
	help
	  Maximum allowed difference in microseconds between the counter value
	  sampled just before toggling the GPIO and the timestamp recorded by
	  the capture callback.

config COUNTER_CAPTURE_MCUX_QTMR_XBAR_LOOPBACK
	bool "Use RT1064 internal XBAR loopback for MCUX QTMR capture"
	depends on SOC_MIMXRT1064
	help
	  Enable the RT1064-specific trigger-source backend for the counter
	  capture test. The backend configures XBARA1 and IOMUXC_GPR so QTMR3
	  timer 0 output drives QTMR1 timer 0 input internally, avoiding an
	  external loopback wire while exercising the MCUX QTMR capture path.
