mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
All mbed configurations have been converted to used the kconfig-frontends tools (unverifeid)
This commit is contained in:
+44
-27
@@ -408,51 +408,68 @@ mbed Configuration Options
|
|||||||
USB Host Configuration
|
USB Host Configuration
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The mbed board can be easily modified to support a USB host interface
|
The mbed board can be easily modified to support a USB host interface
|
||||||
(Remember to add 2 resistors of 15K to D+ and D- pins). The hidkbd
|
(Remember to add 2 resistors of 15K to D+ and D- pins). The hidkbd
|
||||||
configuration assumes that this change has been made.
|
configuration assumes that this change has been made.
|
||||||
|
|
||||||
The NuttShell (NSH) mbed can also be modified in order to support USB
|
The NuttShell (NSH) mbed can also be modified in order to support USB
|
||||||
host operations. To make these modifications, do the following:
|
host operations. To make these modifications, do the following:
|
||||||
|
|
||||||
1. First configure to build the NSH configuration from the top-level
|
1. First configure to build the NSH configuration from the top-level
|
||||||
NuttX directory:
|
NuttX directory:
|
||||||
|
|
||||||
cd tools
|
cd tools
|
||||||
./configure mbed/nsh
|
./configure mbed/nsh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
2. Then edit the top-level .config file to enable USB host. Make the
|
2. Then edit the top-level .config file to enable USB host. Make the
|
||||||
following changes:
|
following changes:
|
||||||
|
|
||||||
CONFIG_LPC17_USBHOST=y
|
CONFIG_LPC17_USBHOST=y
|
||||||
CONFIG_USBHOST=y
|
CONFIG_USBHOST=y
|
||||||
CONFIG_SCHED_WORKQUEUE=y
|
CONFIG_SCHED_WORKQUEUE=y
|
||||||
|
|
||||||
When this change is made, NSH should be extended to support USB flash
|
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
|
devices. When a FLASH device is inserted, you should see a device
|
||||||
appear in the /dev (pseudo) directory. The device name should be
|
appear in the /dev (pseudo) directory. The device name should be
|
||||||
like /dev/sda, /dev/sdb, etc. The USB mass storage device, is present
|
like /dev/sda, /dev/sdb, etc. The USB mass storage device, is present
|
||||||
it can be mounted from the NSH command line like:
|
it can be mounted from the NSH command line like:
|
||||||
|
|
||||||
ls /dev
|
ls /dev
|
||||||
mount -t vfat /dev/sda /mnt/flash
|
mount -t vfat /dev/sda /mnt/flash
|
||||||
|
|
||||||
Files on the connect USB flash device should then be accessible under
|
Files on the connect USB flash device should then be accessible under
|
||||||
the mountpoint /mnt/flash.
|
the mountpoint /mnt/flash.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|
||||||
Each mbed configuration is maintained in a sub-directory and can be selected
|
General
|
||||||
as follow:
|
-------
|
||||||
|
Each mbed configuration is maintained in a sub-directory and can be selected
|
||||||
|
as follow:
|
||||||
|
|
||||||
cd tools
|
cd tools
|
||||||
./configure.sh mbed/<subdir>
|
./configure.sh mbed/<subdir>
|
||||||
cd -
|
cd -
|
||||||
. ./setenv.sh
|
. ./setenv.sh
|
||||||
|
|
||||||
Where <subdir> is one of the following:
|
Where <subdir> is one of the mbed subdirectories described in the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
NOTES:
|
||||||
|
|
||||||
|
1. These configurations use the mconf-based configuration tool. To
|
||||||
|
change any of these configurations using that tool, you should:
|
||||||
|
|
||||||
|
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
|
||||||
|
and misc/tools/
|
||||||
|
|
||||||
|
b. Execute 'make menuconfig' in nuttx/ in order to start the
|
||||||
|
reconfiguration process.
|
||||||
|
|
||||||
|
Configuration Sub-directories
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
hidkbd:
|
hidkbd:
|
||||||
This configuration directory, performs a simple test of the USB host
|
This configuration directory, performs a simple test of the USB host
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/mbed/hidkbd/appconfig
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
# Path to example in apps/examples containing the user_start entry point
|
|
||||||
|
|
||||||
CONFIGURED_APPS += examples/hidkbd
|
|
||||||
|
|
||||||
+687
-434
File diff suppressed because it is too large
Load Diff
@@ -1,44 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# configs/mbed/nsh/appconfig
|
|
||||||
#
|
|
||||||
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use in source and binary forms, with or without
|
|
||||||
# modification, are permitted provided that the following conditions
|
|
||||||
# are met:
|
|
||||||
#
|
|
||||||
# 1. Redistributions of source code must retain the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer.
|
|
||||||
# 2. Redistributions in binary form must reproduce the above copyright
|
|
||||||
# notice, this list of conditions and the following disclaimer in
|
|
||||||
# the documentation and/or other materials provided with the
|
|
||||||
# distribution.
|
|
||||||
# 3. Neither the name NuttX nor the names of its contributors may be
|
|
||||||
# used to endorse or promote products derived from this software
|
|
||||||
# without specific prior written permission.
|
|
||||||
#
|
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
||||||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
||||||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
||||||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
||||||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
||||||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
||||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
# Path to example in apps/examples containing the user_start entry point
|
|
||||||
|
|
||||||
CONFIGURED_APPS += examples/nsh
|
|
||||||
|
|
||||||
# The NSH Library
|
|
||||||
|
|
||||||
CONFIGURED_APPS += system/readline
|
|
||||||
CONFIGURED_APPS += nshlib
|
|
||||||
|
|
||||||
+767
-401
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user