# SPDX-FileCopyrightText: 2026 NXP
# SPDX-License-Identifier: Apache-2.0

mainmenu "Clock Monitor - Frequency Check sample"

config SAMPLE_EXPECTED_HZ
	int "Expected monitored-clock frequency (Hz), 0 = auto"
	default 0
	help
	  Nominal expected frequency of the monitored clock, in Hz.
	  Set to 0 to let the driver auto-derive it from the monitored
	  clock via clock control driver.

config SAMPLE_TOLERANCE_PPM
	int "Window tolerance (parts-per-million)"
	default 50000
	help
	  Acceptable +/- deviation from the expected frequency, in ppm.
	  Default 50000 = +/- 5 %, which is loose enough to ride out
	  crystal warm-up on a typical EVK.

config SAMPLE_WINDOW_NS
	int "Measurement window duration (ns)"
	default 1000000
	help
	  Measurement window in nanoseconds. Longer windows give
	  finer ppm resolution but slower fault response. 1 ms default.

source "Kconfig.zephyr"
