forked from Archive/PX4-Autopilot
apps/examples/nettest and poll: Complete Kconfig files
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5556 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ad65a04617
commit
f914a90556
|
@ -492,3 +492,4 @@
|
||||||
the entrypoint. Should be ftpd_main (from Yan T.)
|
the entrypoint. Should be ftpd_main (from Yan T.)
|
||||||
* apps/netutils/telnetd/telnetd_driver: Was stuck in a loop if
|
* apps/netutils/telnetd/telnetd_driver: Was stuck in a loop if
|
||||||
recv[from]() ever returned a value <= 0.
|
recv[from]() ever returned a value <= 0.
|
||||||
|
* apps/examples/nettest and poll: Complete Kconfig files.
|
||||||
|
|
|
@ -675,8 +675,8 @@ examples/mount
|
||||||
when CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined. The
|
when CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined. The
|
||||||
default is zero (meaning that "/dev/ram0" will be used).
|
default is zero (meaning that "/dev/ram0" will be used).
|
||||||
|
|
||||||
examples/netttest
|
examples/nettest
|
||||||
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
This is a simple network test for verifying client- and server-
|
This is a simple network test for verifying client- and server-
|
||||||
functionality in a TCP/IP connection.
|
functionality in a TCP/IP connection.
|
||||||
|
|
|
@ -6,8 +6,51 @@
|
||||||
config EXAMPLES_NETTEST
|
config EXAMPLES_NETTEST
|
||||||
bool "Network test example"
|
bool "Network test example"
|
||||||
default n
|
default n
|
||||||
|
depends on NET_TCP
|
||||||
---help---
|
---help---
|
||||||
Enable the network test example
|
Enable the network test example
|
||||||
|
|
||||||
if EXAMPLES_NETTEST
|
if EXAMPLES_NETTEST
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_SERVER
|
||||||
|
bool "Target is server"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Select to use the host as the client side of the test. Default: The
|
||||||
|
target is the client side of the test
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_PERFORMANCE
|
||||||
|
bool "Test for Performance"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Configure the example to test for network performance. Default: Test
|
||||||
|
is for network functionality.
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_NOMAC
|
||||||
|
bool "Use Canned MAC Address"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_IPADDR
|
||||||
|
hex "Target IP address"
|
||||||
|
default 0x0a000002
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_DRIPADDR
|
||||||
|
hex "Default Router IP address (Gateway)"
|
||||||
|
default 0x0a000001
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_NETMASK
|
||||||
|
hex "Network Mask"
|
||||||
|
default 0xffffff00
|
||||||
|
|
||||||
|
config EXAMPLES_NETTEST_CLIENTIP
|
||||||
|
hex "Client IP Address"
|
||||||
|
default 0x0a000001 if !EXAMPLES_NETTEST_SERVER
|
||||||
|
default 0x0a000002 if EXAMPLES_NETTEST_SERVER
|
||||||
|
---help---
|
||||||
|
IP address of the client. If the target is the client, then
|
||||||
|
EXAMPLES_NETTEST_CLIENTIP should be the same as
|
||||||
|
EXAMPLES_NETTEST_IPADDR (default). If the target is the server,
|
||||||
|
then the default value of EXAMPLES_NETTEST_CLIENTIP is set to the
|
||||||
|
gateway address, EXAMPLES_NETTEST_DRIPADDR.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -64,7 +64,7 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOSTCFLAGS += -DCONFIG_EXAMPLES_NETTEST_HOST=1
|
HOSTCFLAGS += -DNETTEST_HOST=1
|
||||||
ifeq ($(CONFIG_EXAMPLES_NETTEST_SERVER),y)
|
ifeq ($(CONFIG_EXAMPLES_NETTEST_SERVER),y)
|
||||||
HOSTCFLAGS += -DCONFIG_EXAMPLES_NETTEST_SERVER=1 -DCONFIG_EXAMPLES_NETTEST_CLIENTIP="$(CONFIG_EXAMPLES_NETTEST_CLIENTIP)"
|
HOSTCFLAGS += -DCONFIG_EXAMPLES_NETTEST_SERVER=1 -DCONFIG_EXAMPLES_NETTEST_CLIENTIP="$(CONFIG_EXAMPLES_NETTEST_CLIENTIP)"
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
* Included Files
|
* Included Files
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_HOST
|
#ifdef NETTEST_HOST
|
||||||
#else
|
#else
|
||||||
# include <debug.h>
|
# include <debug.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_EXAMPLES_NETTEST_HOST
|
#ifdef NETTEST_HOST
|
||||||
/* HTONS/L macros are unique to uIP */
|
/* HTONS/L macros are unique to uIP */
|
||||||
|
|
||||||
# define HTONS(a) htons(a)
|
# define HTONS(a) htons(a)
|
||||||
|
|
|
@ -6,8 +6,26 @@
|
||||||
config EXAMPLES_POLL
|
config EXAMPLES_POLL
|
||||||
bool "Poll example"
|
bool "Poll example"
|
||||||
default n
|
default n
|
||||||
|
depends on !NSH_BUILTIN_APPS
|
||||||
---help---
|
---help---
|
||||||
Enable the poll example
|
Enable the poll example
|
||||||
|
|
||||||
if EXAMPLES_POLL
|
if EXAMPLES_POLL
|
||||||
|
|
||||||
|
config EXAMPLES_POLL_NOMAC
|
||||||
|
bool "Use Canned MAC Address"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config EXAMPLES_POLL_IPADDR
|
||||||
|
hex "Target IP address"
|
||||||
|
default 0x0a000002
|
||||||
|
|
||||||
|
config EXAMPLES_POLL_DRIPADDR
|
||||||
|
hex "Default Router IP address (Gateway)"
|
||||||
|
default 0x0a000001
|
||||||
|
|
||||||
|
config EXAMPLES_POLL_NETMASK
|
||||||
|
hex "Network Mask"
|
||||||
|
default 0xffffff00
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -3,6 +3,14 @@
|
||||||
# see misc/tools/kconfig-language.txt.
|
# see misc/tools/kconfig-language.txt.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
config DISABLE_POLL
|
||||||
|
bool "Disable driver poll interfaces"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
The sizes of drivers can be reduced if the poll() method is not
|
||||||
|
supported. If you do not use poll() or select(), then you can
|
||||||
|
select DISABLE_POLL to reduce the code footprint by a small amount.
|
||||||
|
|
||||||
config DEV_NULL
|
config DEV_NULL
|
||||||
bool "Enable /dev/null"
|
bool "Enable /dev/null"
|
||||||
default y
|
default y
|
||||||
|
|
|
@ -268,7 +268,7 @@ static ssize_t loop_write(FAR struct inode *inode, const unsigned char *buffer,
|
||||||
size_t start_sector, unsigned int nsectors)
|
size_t start_sector, unsigned int nsectors)
|
||||||
{
|
{
|
||||||
FAR struct loop_struct_s *dev;
|
FAR struct loop_struct_s *dev;
|
||||||
size_t nbyteswritten;
|
ssize_t nbyteswritten;
|
||||||
off_t offset;
|
off_t offset;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
comment "File system configuration"
|
comment "File system configuration"
|
||||||
|
|
||||||
|
config DISABLE_MOUNTPOINT
|
||||||
|
bool "Disable support for mount points"
|
||||||
|
default n
|
||||||
|
|
||||||
source fs/mmap/Kconfig
|
source fs/mmap/Kconfig
|
||||||
source fs/fat/Kconfig
|
source fs/fat/Kconfig
|
||||||
source fs/nfs/Kconfig
|
source fs/nfs/Kconfig
|
||||||
|
|
|
@ -379,21 +379,11 @@ config DISABLE_MQUEUE
|
||||||
depends on DISABLE_OS_API
|
depends on DISABLE_OS_API
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config DISABLE_MOUNTPOINT
|
|
||||||
bool "Disable support for mount points"
|
|
||||||
depends on DISABLE_OS_API
|
|
||||||
default n
|
|
||||||
|
|
||||||
config DISABLE_ENVIRON
|
config DISABLE_ENVIRON
|
||||||
bool "Disable environment variable support"
|
bool "Disable environment variable support"
|
||||||
depends on DISABLE_OS_API
|
depends on DISABLE_OS_API
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config DISABLE_POLL
|
|
||||||
bool "Disable driver poll interfaces"
|
|
||||||
depends on DISABLE_OS_API
|
|
||||||
default n
|
|
||||||
|
|
||||||
if !DISABLE_SIGNALS
|
if !DISABLE_SIGNALS
|
||||||
comment "Signal Numbers"
|
comment "Signal Numbers"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue