summaryrefslogtreecommitdiff
path: root/nuttx/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-21 19:56:54 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-21 19:56:54 +0000
commitbee94a4100a4e77585377441482f837a39980792 (patch)
tree479e74e862f7ae068ea569a3ccae1d614f565343 /nuttx/examples
parent58dc853c5371e2c6c22b15f7830cd65af3393a0c (diff)
downloadpx4-nuttx-bee94a4100a4e77585377441482f837a39980792.tar.gz
px4-nuttx-bee94a4100a4e77585377441482f837a39980792.tar.bz2
px4-nuttx-bee94a4100a4e77585377441482f837a39980792.zip
Changes for clean build on ZDS
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1637 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r--nuttx/examples/uip/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c
index 1cc275814..d5091ae51 100644
--- a/nuttx/examples/uip/main.c
+++ b/nuttx/examples/uip/main.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/uip/main.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Based on uIP which also has a BSD style license:
@@ -191,6 +191,7 @@ int user_start(int argc, char *argv[])
/* Get an IP address */
+ printf("Getting IP address\n");
if (handle)
{
struct dhcpc_state ds;
@@ -213,11 +214,14 @@ int user_start(int argc, char *argv[])
#endif
#if defined(CONFIG_EXAMPLE_UIP_WEBSERVER)
+ printf("Starting webserver\n");
httpd_init();
httpd_listen();
#elif defined(CONFIG_EXAMPLE_UIP_TELNETD)
+ printf("Starting telnetd\n");
telnetd_init();
#elif defined(CONFIG_EXAMPLE_UIP_SMTP)
+ printf("Sending mail\n");
uip_ipaddr(addr.s_addr, 127, 0, 0, 1);
handle = smtp_open();
if (handle)
@@ -228,6 +232,7 @@ int user_start(int argc, char *argv[])
smtp_close(handle);
}
#elif defined(CONFIG_EXAMPLE_UIP_WEBCLIENT)
+ printf("Getting webpage\n");
webclient_init();
addr.s_addr = HTONL(CONFIG_EXAMPLE_UIP_DNSADDR);
resolv_conf(&addr);