configs/ntosd-dm320/nettest: Configuration converted to use the kconfig-frontends tools

This commit is contained in:
Gregory Nutt
2014-03-05 12:16:02 -06:00
parent 5f7987a9b7
commit a2a3f80120
7 changed files with 806 additions and 359 deletions
+2
View File
@@ -6868,3 +6868,5 @@
kconfig-frontends tools (2014-3-5)
* configs/avr32dev1/nsh: Configuration converted to use the
kconfig-frontends tools (2014-3-5)
* configs/ntosd-dm320/nettest: Configuration converted to use the
kconfig-frontends tools (2014-3-5)
+16
View File
@@ -3,4 +3,20 @@
# see misc/tools/kconfig-language.txt.
#
if ARCH_CHIP_DM320
comment "DM320 Configuration Options"
menu "DM320 Peripheral Selections"
config DM320_UART0
bool
default y
select ARCH_HAVE_UART0
config DM320_UART1
bool
default y
select ARCH_HAVE_UART1
endmenu # DM320 Peripheral Selections
endif # ARCH_CHIP_DM320
+48 -32
View File
@@ -282,52 +282,68 @@ ARM/DM320-specific Configuration Options
Configurations
^^^^^^^^^^^^^^
Each Neuros OSD configuration is maintained in a sub-directory and
can be selected as follow:
Common Configuration Notes
--------------------------
cd tools
./configure.sh ntosd-dm320/<subdir>
cd -
. ./setenv.sh
1. Each Neuros OSD configuration is maintained in a sub-directory and
can be selected as follow:
Where <subdir> is one of the following:
cd tools
./configure.sh ntosd-dm320/<subdir>
cd -
. ./setenv.sh
nettest
^^^^^^^
Where <subdir> is one of the configuration sub-directories described in
the following paragraph.
This alternative configuration directory may be used to
enable networking using the OSDs DM9000A Ethernet interface.
It uses examples/nettest to excercise the TCP/IP network.
2. These configurations use the mconf-based configuration tool. To
change a configurations using that tool, you should:
nsh
^^^
a. Build and install the kconfig-mconf tool. See nuttx/README.txt
and misc/tools/
Configures the NuttShell (nsh) located at examples/nsh. The
Configuration enables both the serial and telnetd NSH interfaces.
b. Execute 'make menuconfig' in nuttx/ in order to start the
reconfiguration process.
poll
^^^^
3. By default, all configurations assume the CodeSourcery toolchain under
Linux. This is easily reconfigured:
This configuration exercises the poll()/select() text at
examples/poll
CONFIG_HOST_LINUX=y
CONFIG_ARM_TOOLCHAIN_CODESOURCERYL=y
thttpd
^^^^^^
Configuration Sub-Directories
-----------------------------
This builds the THTTPD web server example using the THTTPD and
the examples/thttpd application.
nettest
udp
^^^
This alternative configuration directory may be used to
enable networking using the OSDs DM9000A Ethernet interface.
It uses examples/nettest to excercise the TCP/IP network.
This alternative configuration directory is similar to nettest
except that is use examples/upd to exercise UDP.
nsh
uip
^^^
Configures the NuttShell (nsh) located at examples/nsh. The
Configuration enables both the serial and telnetd NSH interfaces.
This configuration file demonstrates the tiny webserver
at examples/uip.
poll
This configuration exercises the poll()/select() text at
examples/poll
thttpd
This builds the THTTPD web server example using the THTTPD and
the examples/thttpd application.
udp
This alternative configuration directory is similar to nettest
except that is use examples/upd to exercise UDP.
uip
This configuration file demonstrates the tiny webserver
at examples/uip.
Configuration Options
^^^^^^^^^^^^^^^^^^^^^
-43
View File
@@ -1,43 +0,0 @@
############################################################################
# configs/ntosd-dm320/nettest/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/nettest
# Networking support
CONFIGURED_APPS += netutils/uiplib
File diff suppressed because it is too large Load Diff
+65
View File
@@ -31,6 +31,71 @@ config NET_DM90x0
DM9010-DS-F01-103006.pdf) and looking at lots of other DM90x0
drivers.
if NET_DM90x0
config DM9X_BASE
hex "DM90x0 base address"
default 0x0
config DM9X_IRQ
int "DM90x0 IRQ number"
default 0
choice
prompt "DM90x0 bus width"
default DM9X_BUSWIDTH16
config DM9X_BUSWIDTH8
bool "8-bits"
config DM9X_BUSWIDTH16
bool "16-bits"
config DM9X_BUSWIDTH32
bool "32-bits"
endchoice # DM90x0 bus width
config DM9X_CHECKSUM
bool "Checksum enable"
default n
config DM9X_ETRANS
bool "TX poll"
default n
choice
prompt "DM90x0 mode"
default DM9X_MODE_AUTO
config DM9X_MODE_AUTO
bool "Autonegotion"
config DM9X_MODE_10MHD
bool "10BaseT half duplex"
config DM9X_MODE_10MFD
bool "10BaseT full duplex"
config DM9X_MODE_100MHD
bool "100BaseT half duplex"
config DM9X_MODE_100MFD
bool "100BaseT full duplex"
endchoice # DM90x0 mode
config DM9X_NINTERFACES
int "Nubmer of DM90x0 interfaces"
default 1
depends on EXPERIMENTAL
config DM9X_STATS
bool "DM90x0 statistics"
default n
endif # NET_DM90x0
config NET_CS89x0
bool "CS89x0 support"
default n
+9 -13
View File
@@ -253,14 +253,10 @@
* in the NuttX configuration file.
*/
#define DM9X_MODE_AUTO 0
#define DM9X_MODE_10MHD 1
#define DM9X_MODE_100MHD 2
#define DM9X_MODE_10MFD 3
#define DM9X_MODE_100MFD 4
#ifndef CONFIG_DM9X_MODE
# define CONFIG_DM9X_MODE DM9X_MODE_AUTO
#if !defined(CONFIG_DM9X_MODE_AUTO) && !defined(CONFIG_DM9X_MODE_10MHD) && \
!defined(CONFIG_DM9X_MODE_100MHD) && !defined(CONFIG_DM9X_MODE_10MFD) && \
!defined(CONFIG_DM9X_MODE_100MFD)
# define CONFIG_DM9X_MODE_AUTO 1
#endif
/* TX poll deley = 1 seconds. CLK_TCK is the number of clock ticks per second */
@@ -1324,19 +1320,19 @@ static inline void dm9x_phymode(struct dm9x_driver_s *dm9x)
uint16_t phyreg0;
uint16_t phyreg4;
#if CONFIG_DM9X_MODE == DM9X_MODE_AUTO
#if CONFIG_DM9X_MODE_AUTO
phyreg0 = 0x1200; /* Auto-negotiation & Restart Auto-negotiation */
phyreg4 = 0x01e1; /* Default flow control disable*/
#elif CONFIG_DM9X_MODE == DM9X_MODE_10MHD
#elif CONFIG_DM9X_MODE_10MHD
phyreg4 = 0x21;
phyreg0 = 0x1000;
#elif CONFIG_DM9X_MODE == DM9X_MODE_10MFD
#elif CONFIG_DM9X_MODE_10MFD
phyreg4 = 0x41;
phyreg0 = 0x1100;
#elif CONFIG_DM9X_MODE == DM9X_MODE_100MHD
#elif CONFIG_DM9X_MODE_100MHD
phyreg4 = 0x81;
phyreg0 = 0x3000;
#elif CONFIG_DM9X_MODE == DM9X_MODE_100MFD
#elif CONFIG_DM9X_MODE_100MFD
phyreg4 = 0x101;
phyreg0 = 0x3100;
#else