summaryrefslogtreecommitdiff
path: root/nuttx/configs/mbed/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-11 12:43:02 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-01-11 12:43:02 +0000
commiteedfb898274adffee3882b6dfc45b96c369c2343 (patch)
treeca8bd2429e48e93609bbd3a95416d5a3d860790e /nuttx/configs/mbed/README.txt
parentfd7736cf0ea9a5ee24aa96585e0bfd83dc07cb90 (diff)
downloadpx4-nuttx-eedfb898274adffee3882b6dfc45b96c369c2343.tar.gz
px4-nuttx-eedfb898274adffee3882b6dfc45b96c369c2343.tar.bz2
px4-nuttx-eedfb898274adffee3882b6dfc45b96c369c2343.zip
README updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3242 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/mbed/README.txt')
-rwxr-xr-xnuttx/configs/mbed/README.txt50
1 files changed, 49 insertions, 1 deletions
diff --git a/nuttx/configs/mbed/README.txt b/nuttx/configs/mbed/README.txt
index 6098fc88b..c4122a6f6 100755
--- a/nuttx/configs/mbed/README.txt
+++ b/nuttx/configs/mbed/README.txt
@@ -12,6 +12,7 @@ Contents
NuttX buildroot Toolchain
USB Device Controller Functions
mbed Configuration Options
+ USB Host Configuration
Configurations
Development Environment
@@ -305,7 +306,7 @@ mbed Configuration Options
CONFIG_NET_MULTICAST - Enable receipt of multicast (and unicast) frames.
Automatically set if CONFIG_NET_IGMP is selected.
- LPC17xx USB Configuration
+ LPC17xx USB Device Configuration
CONFIG_LPC17_USBDEV_FRAME_INTERRUPT
Handle USB Start-Of-Frame events.
@@ -320,6 +321,53 @@ mbed Configuration Options
CONFIG_LPC17_USBDEV_DMA
Enable lpc17xx-specific DMA support
+ LPC17xx USB Host Configuration
+
+ CONFIG_USBHOST_OHCIRAM_SIZE
+ Total size of OHCI RAM (in AHB SRAM Bank 1)
+ CONFIG_USBHOST_NEDS
+ Number of endpoint descriptors
+ CONFIG_USBHOST_TDBUFFERS
+ Number of transfer descriptor buffers
+ CONFIG_USBHOST_TDBUFSIZE
+ Size of one transfer descriptor buffer
+ CONFIG_USBHOST_IOBUFSIZE
+ Size of one end-user I/O buffer. This can be zero if the
+ application can guarantee that all end-user I/O buffers
+ reside in AHB SRAM.
+
+USB Host Configuration
+^^^^^^^^^^^^^^^^^^^^^^
+
+The NuttShell (NSH) mbed can be modified in order to support USB
+host operations. To make these modifications, do the following:
+
+1. First configure to build the NSH configuration from the top-level
+ NuttX directory:
+
+ cd tools
+ ./configure mbed/nsh
+ cd ..
+
+2. Then edit the top-level .config file to enable USB host. Make the
+ following changes:
+
+ CONFIG_LPC17_USBHOST=n
+ CONFIG_USBHOST=n
+ CONFIG_SCHED_WORKQUEUE=y
+
+When this change is made, NSH should be extended to support USB flash
+devices. When a FLASH device is inserted, you should see a device
+appear in the /dev (psuedo) directory. The device name should be
+like /dev/sda, /dev/sdb, etc. The USB mass storage device, is present
+it can be mounted from the NSH command line like:
+
+ ls /dev
+ mount -t vfat /dev/sda /mnt/flash
+
+Files on the connect USB flash device should then be accessible under
+the mountpoint /mnt/flash.
+
Configurations
^^^^^^^^^^^^^^