1#
2# Copyright (c) 2021, NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7mainmenu "I2S Speed Test"
8
9source "Kconfig.zephyr"
10
11config I2S_TEST_SEPARATE_DEVICES
12	bool "Use two separate I2S ports for loopback"
13	help
14	  Use separate I2S ports for transmit and receive.
15
16config I2S_TEST_USE_I2S_DIR_BOTH
17	bool "Use I2S_DIR_BOTH value to perform RX/TX transfers"
18	default y if DT_HAS_NORDIC_NRF_I2S_ENABLED
19	help
20	  Use the I2S_DIR_BOTH enumeration value to trigger commands in test
21	  cases involving both reception and transmission. Use of this option
22	  is essential for devices that cannot independently start and stop
23	  the RX and TX streams.
24
25config I2S_TEST_USE_GPIO_LOOPBACK
26	bool "Use GPIO loopback"
27	default y if DT_HAS_NORDIC_NRF_I2S_ENABLED
28	help
29	  Use wiring between the data-out and data-in pins for looping back
30	  data. This option is intended to be used for devices that do not
31	  provide the internal loopback functionality.
32
33config I2S_TEST_ALLOWED_DATA_OFFSET
34	int "Allowed offset in received data"
35	default 2 if DT_HAS_NORDIC_NRF_I2S_ENABLED
36	default 0
37	help
38	  Maximum allowed offset between sent and received samples. Non-zero
39	  value of this option may be needed when GPIO loopback is used.
40