summaryrefslogtreecommitdiff
path: root/nuttx/drivers/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-11 11:20:11 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-11 11:20:11 -0600
commit7594ec796b254151652e897f30657a8af4c9162c (patch)
treec5b72544a56ffcab8569bdd579dd09b17e50ada0 /nuttx/drivers/Kconfig
parent5981a437a5bc14a2f0f72f8b8821af24dbb8f78d (diff)
downloadpx4-nuttx-7594ec796b254151652e897f30657a8af4c9162c.tar.gz
px4-nuttx-7594ec796b254151652e897f30657a8af4c9162c.tar.bz2
px4-nuttx-7594ec796b254151652e897f30657a8af4c9162c.zip
Add an MTD layer that will add read-ahead or write buffering to any MTD driver (incomplete)
Diffstat (limited to 'nuttx/drivers/Kconfig')
-rw-r--r--nuttx/drivers/Kconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/nuttx/drivers/Kconfig b/nuttx/drivers/Kconfig
index 5277873da..6828c829f 100644
--- a/nuttx/drivers/Kconfig
+++ b/nuttx/drivers/Kconfig
@@ -35,6 +35,33 @@ config LOOP
file (or character device) as a block device. See losetup() and
loteardown() in include/nuttx/fs/fs.h.
+config DRVR_WRITEBUFFER
+ bool "Enable write buffer support"
+ default n
+ ---help---
+ Enable generic write buffering support that can be used by a variety
+ of drivers.
+
+if DRVR_WRITEBUFFER
+
+config DRVR_WRDELAY
+ int "Write flush delay"
+ default 350
+ ---help---
+ If there is no write activity for this configured amount of time,
+ then the contents will be automatically flushed to the media. This
+ reduces the likelihood that data will be stuck in the write buffer
+ at the time of power down.
+
+endif # DRVR_WRITEBUFFER
+
+config DRVR_READAHEAD
+ bool "Enable read-ahead buffer support"
+ default n
+ ---help---
+ Enable generic read-ahead buffering support that can be used by a
+ variety of drivers.
+
config RAMDISK
bool "RAM Disk Support"
default n