21aef0dd68
This commit does two things: 1. First, it reorganizes the driver Kconfig files so that each is self contained. Before, a part of the driver configuration was in drivers/Kconfig and the rest was in in drivers/xyz/Konfig. Now, all of the driver configuration is consolitated in the latter. 2. Second, this commit correct numerous serious errors introduced in a previous reorganization of the driver Kconfig files. This was first noted by Nicholas Chin in PR270 for the case of the drivers/i2c/Kconfig but some examination indicates that the error was introduced into several other Kconfig files as well. The nature of the introduced error was basically this: - Nothing must intervene between the menuconfig selection and the following conditional configuration otpions. - A previous PR erroneously introduced unconditional options between the menuconfig and the following confditional logic, thus corrupting the driver menus. This error was easy to make because the driver Kconfig files were not well modularized. Making them fully self-contained should eliminate this kind of error in the future.
39 lines
949 B
Plaintext
39 lines
949 B
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig PIPES
|
|
bool "FIFO and named pipe drivers"
|
|
default n
|
|
---help---
|
|
FIFO and named pipe drivers. Standard interfaces are declared
|
|
in include/unistd.h
|
|
|
|
if PIPES
|
|
|
|
config DEV_PIPE_MAXSIZE
|
|
int "Maximum pipe/FIFO size"
|
|
default 1024 if !DEFAULT_SMALL
|
|
default 256 if DEFAULT_SMALL
|
|
---help---
|
|
Maximum configurable size of a pipe or FIFO at runtime.
|
|
|
|
config DEV_PIPE_SIZE
|
|
int "Default pipe size"
|
|
default 1024 if !DEFAULT_SMALL
|
|
default 256 if DEFAULT_SMALL
|
|
---help---
|
|
Sets the default size of the pipe ringbuffer in bytes. A value of
|
|
zero disables pipe support.
|
|
|
|
config DEV_FIFO_SIZE
|
|
int "Default FIFO size"
|
|
default 1024 if !DEFAULT_SMALL
|
|
default 256 if DEFAULT_SMALL
|
|
---help---
|
|
Sets the default size of the FIFO ringbuffer in bytes. A value of
|
|
zero disables FIFO support.
|
|
|
|
endif # PIPES
|