summaryrefslogtreecommitdiff
path: root/apps/examples/i2schar/Kconfig
blob: 953318cfe8e9c3e2a04399bb429a75ce837b7160 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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