summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-lpc1766stk/README.txt
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-23 00:49:46 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-23 00:49:46 +0000
commita23dbb35fd4ef9392d8d54415065c7aa5257f43f (patch)
treea2dfdd866c1273bf507e6d75f2a4d55ed2823618 /nuttx/configs/olimex-lpc1766stk/README.txt
parent6f77a2706a58a7a8002d948e6311c89a9df5bf88 (diff)
downloadpx4-nuttx-a23dbb35fd4ef9392d8d54415065c7aa5257f43f.tar.gz
px4-nuttx-a23dbb35fd4ef9392d8d54415065c7aa5257f43f.tar.bz2
px4-nuttx-a23dbb35fd4ef9392d8d54415065c7aa5257f43f.zip
Add USB host support to Nucleus2G
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3217 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk/README.txt')
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/README.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/README.txt b/nuttx/configs/olimex-lpc1766stk/README.txt
index 7618766b0..822ae98bb 100755
--- a/nuttx/configs/olimex-lpc1766stk/README.txt
+++ b/nuttx/configs/olimex-lpc1766stk/README.txt
@@ -14,6 +14,7 @@ Contents
LEDs
Using OpenOCD and GDB with an FT2232 JTAG emulator
Olimex LPC1766-STK Configuration Options
+ USB Host Configuration
Configurations
Olimex LPC1766-STK development board
@@ -678,6 +679,38 @@ Olimex LPC1766-STK Configuration Options
CONFIG_LPC17_USBDEV_DMA
Enable lpc17xx-specific DMA support
+USB Host Configuration
+^^^^^^^^^^^^^^^^^^^^^^
+
+The NuttShell (NSH) Nucleus 2G 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 nucleus2g/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
^^^^^^^^^^^^^^