diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-11-10 14:08:45 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-11-10 14:08:45 -0600 |
commit | 09adf63b2a9d364123bff73902472a974dc1b0b2 (patch) | |
tree | 4e246ca2a0ed312359613b5c002bd924562afa1f /apps/examples/i2schar/Kconfig | |
parent | 9336004836dc64aa433b8ec963113604b26ee784 (diff) | |
download | nuttx-09adf63b2a9d364123bff73902472a974dc1b0b2.tar.gz nuttx-09adf63b2a9d364123bff73902472a974dc1b0b2.tar.bz2 nuttx-09adf63b2a9d364123bff73902472a974dc1b0b2.zip |
Add apps/examples/i2schar that will eventually use the I2C character drvier to verify I2S
Diffstat (limited to 'apps/examples/i2schar/Kconfig')
-rw-r--r-- | apps/examples/i2schar/Kconfig | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/apps/examples/i2schar/Kconfig b/apps/examples/i2schar/Kconfig new file mode 100644 index 000000000..953318cfe --- /dev/null +++ b/apps/examples/i2schar/Kconfig @@ -0,0 +1,88 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +config EXAMPLES_I2SCHAR + bool "I2S character driver test" + default n + depends on I2S && AUDIO && AUDIO_DEVICES && AUDIO_I2SCHAR + ---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 + depends on !NUTTX_KERNEL + ---help--- + Define if architecture-specific I2S device initialize is available. + If defined, the the platform specific code must provide a function + i2schar_devinit() that will be called each time that this test + executes. Not available in the kernel build mode. + +endif |