2013-11-10 21:08:45 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2013-11-10 21:08:45 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "I2S character driver test"
|
2013-11-10 21:08:45 +01:00
|
|
|
default n
|
2017-09-12 22:11:17 +02:00
|
|
|
depends on I2S && AUDIO && DRIVERS_AUDIO && AUDIO_I2SCHAR
|
2013-11-10 21:08:45 +01:00
|
|
|
---help---
|
|
|
|
Enable the I2S character driver test
|
|
|
|
|
|
|
|
if EXAMPLES_I2SCHAR
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_DEVPATH
|
|
|
|
string "I2S character device path"
|
|
|
|
default "/dev/i2schar0"
|
|
|
|
---help---
|
|
|
|
The default path to the I2S character device. Default: /dev/i2schar0
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_TX
|
|
|
|
bool "Use I2S transmitter"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This should be set if the I2S device supports a transmitter.
|
|
|
|
|
|
|
|
if EXAMPLES_I2SCHAR_TX
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_TXBUFFERS
|
|
|
|
int "Number of TX buffers"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
This is the default number of audio buffers to send before the TX
|
|
|
|
transfers terminate. When both TX and RX transfers terminate, the
|
|
|
|
task exits (and, if an NSH builtin, the i2schar command returns).
|
|
|
|
This number can be changed from the NSH command line.
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_TXSTACKSIZE
|
|
|
|
int "Transmitter thread stack size"
|
|
|
|
default 1536
|
|
|
|
---help---
|
|
|
|
This is the stack size to use when starting the transmitter thread.
|
|
|
|
|
|
|
|
endif # EXAMPLES_I2SCHAR_TX
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_RX
|
|
|
|
bool "Use I2S receiver"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This should be set if the I2S device supports a receiver.
|
|
|
|
|
|
|
|
if EXAMPLES_I2SCHAR_RX
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_RXBUFFERS
|
|
|
|
int "Number of RX buffers"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
This is the default number of audio buffers to receive before the RX
|
|
|
|
transfers terminate. When both TX and RX transfers terminate, the
|
|
|
|
task exits (and, if an NSH builtin, the i2schar command returns).
|
|
|
|
This number can be changed from the NSH command line.
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_RXSTACKSIZE
|
|
|
|
int "Receiver thread stack size"
|
|
|
|
default 1536
|
|
|
|
---help---
|
|
|
|
This is the stack size to use when starting the receiver thread.
|
|
|
|
|
|
|
|
endif # EXAMPLES_I2SCHAR_RX
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_BUFSIZE
|
|
|
|
int "Audio payload size"
|
|
|
|
default 256
|
|
|
|
---help---
|
|
|
|
The size of the data payload in one audio buffer in bytes. Applies
|
|
|
|
to both TX and RX audio buffers.
|
|
|
|
|
|
|
|
config EXAMPLES_I2SCHAR_DEVINIT
|
|
|
|
bool "Architecture-specific device initialization"
|
|
|
|
default 256
|
2018-08-23 19:06:15 +02:00
|
|
|
depends on !BUILD_PROTECTED && !BUILD_LOADABLE
|
2013-11-10 21:08:45 +01:00
|
|
|
---help---
|
|
|
|
Define if architecture-specific I2S device initialize is available.
|
2017-05-11 21:40:03 +02:00
|
|
|
If defined, the platform specific code must provide a function
|
2013-11-10 21:08:45 +01:00
|
|
|
i2schar_devinit() that will be called each time that this test
|
|
|
|
executes. Not available in the kernel build mode.
|
|
|
|
|
|
|
|
endif
|