1# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. 2# SPDX-License-Identifier: Apache-2.0 3 4mainmenu "PWM GPIO loopback test" 5 6source "Kconfig.zephyr" 7 8config SAMPLING_TIME 9 int "Sampling wait time (ms)" 10 default 50 11 help 12 Time to wait for PWM edge sampling, in milliseconds. 13 14config SKIP_EDGE_NUM 15 int "Number of edges to skip before sampling PWM" 16 default 2 17 help 18 Number of PWM edges to skip before starting sampling. 19 This parameter improves measurement precision as there can be significant 20 latency in the first sampled edge. 21 22config ALLOWED_DEVIATION 23 int "Allowed deviation (%) for PWM timing checks" 24 default 5 25 range 0 100 26 help 27 Maximum allowed deviation (%) from the programmed values for the test to be 28 considered a PASS. For example, if set to 5, the measured period or duty cycle 29 can deviate by up to 5% from the programmed values for the test to pass. 30