From 616b45dfda107761176ea22d0ea5f33b500586d9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 28 Oct 2008 19:15:54 +0000 Subject: [PATCH] Add more configuration info git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1099 42af7a65-404d-4744-a932-0658087f49c3 --- configs/mcu123-lpc214x/usbstorage/defconfig | 43 +++++++++++++++++++++ examples/README.txt | 11 +++--- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/configs/mcu123-lpc214x/usbstorage/defconfig b/configs/mcu123-lpc214x/usbstorage/defconfig index 8fb1029c7b..fbbac16558 100644 --- a/configs/mcu123-lpc214x/usbstorage/defconfig +++ b/configs/mcu123-lpc214x/usbstorage/defconfig @@ -558,6 +558,49 @@ CONFIG_EXAMPLES_USBSERIAL_OUTONLY=n CONFIG_EXAMPLES_USBSERIAL_ONLYSMALL=n CONFIG_EXAMPLES_USBSERIAL_ONLYBIG=n +# +# Settings for examples/usbstorage +# +# CONFIG_EXAMPLES_USBSTRG_NLUNS +# Defines the number of logical units (LUNs) exported by the USB storage +# driver. Each LUN corresponds to one exported block driver (or partition +# of a block driver). May be 1, 2, or 3. Default is 1. +# CONFIG_EXAMPLES_USBSTRG_DEVMINOR1 +# The minor device number of the block driver for the first LUN. For +# example, N in /dev/mmcsdN. Used for registering the block driver. Default +# is zero. +# CONFIG_EXAMPLES_USBSTRG_DEVPATH1 +# The full path to the registered block driver. Default is "/dev/mmcsd0" +# CONFIG_EXAMPLES_USBSTRG_DEVMINOR2 and CONFIG_EXAMPLES_USBSTRG_DEVPATH2 +# Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS +# is 2 or 3. No defaults. +# CONFIG_EXAMPLES_USBSTRG_DEVMINOR3 and CONFIG_EXAMPLES_USBSTRG_DEVPATH3 +# Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS +# is 3. No defaults. +# +# If CONFIG_USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB), then +# the example code will also manage the USB trace output. The amount of trace output +# can be controlled using: +# +# CONFIG_EXAMPLES_USBSTRG_TRACEINIT +# Show initialization events +# CONFIG_EXAMPLES_USBSTRG_TRACECLASS +# Show class driver events +# CONFIG_EXAMPLES_USBSTRG_TRACETRANSFERS +# Show data transfer events +# CONFIG_EXAMPLES_USBSTRG_TRACECONTROLLER +# Show controller events +# CONFIG_EXAMPLES_USBSTRG_TRACEINTERRUPTS +# Show interrupt-related events. +CONFIG_EXAMPLES_USBSTRG_NLUNS=1 +CONFIG_EXAMPLES_USBSTRG_DEVMINOR1=0 +CONFIG_EXAMPLES_USBSTRG_DEVPATH1="/dev/mmcsd0" +CONFIG_EXAMPLES_USBSTRG_TRACEINIT=n +CONFIG_EXAMPLES_USBSTRG_TRACECLASS=y +CONFIG_EXAMPLES_USBSTRG_TRACETRANSFERS=y +CONFIG_EXAMPLES_USBSTRG_TRACECONTROLLER=y +CONFIG_EXAMPLES_USBSTRG_TRACEINTERRUPTS=n + # # Stack and heap information # diff --git a/examples/README.txt b/examples/README.txt index 5b5dc94ff2..8d07a67689 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -149,18 +149,19 @@ examples/usbstorage CONFIG_EXAMPLES_USBSTRG_NLUNS Defines the number of logical units (LUNs) exported by the USB storage driver. Each LUN corresponds to one exported block driver (or partition - of a block driver). May be 1, 2, or 3. + of a block driver). May be 1, 2, or 3. Default is 1. CONFIG_EXAMPLES_USBSTRG_DEVMINOR1 The minor device number of the block driver for the first LUN. For - example, N in /dev/mmcsdN. Used for registering the block driver. + example, N in /dev/mmcsdN. Used for registering the block driver. Default + is zero. CONFIG_EXAMPLES_USBSTRG_DEVPATH1 - The full path to the registered block driver. Example, "/dev/mmcsd0" + The full path to the registered block driver. Default is "/dev/mmcsd0" CONFIG_EXAMPLES_USBSTRG_DEVMINOR2 and CONFIG_EXAMPLES_USBSTRG_DEVPATH2 Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS - is 2 or 3. + is 2 or 3. No defaults. CONFIG_EXAMPLES_USBSTRG_DEVMINOR3 and CONFIG_EXAMPLES_USBSTRG_DEVPATH3 Similar parameters that would have to be provided if CONFIG_EXAMPLES_USBSTRG_NLUNS - is 3. + is 3. No defaults. If CONFIG_USBDEV_TRACE is enabled (or CONFIG_DEBUG and CONFIG_DEBUG_USB), then the example code will also manage the USB trace output. The amount of trace output