summaryrefslogtreecommitdiff
path: root/apps/examples/nettest/nettest.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-13 19:58:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-13 19:58:24 +0000
commit6082c42751e8308a763aada8a3f9fa980efe18da (patch)
tree2625b8515c0e63363689070b22d20073b21a2014 /apps/examples/nettest/nettest.c
parent80c5e02241fa0e4275079f45f45372795a3474dd (diff)
downloadpx4-nuttx-6082c42751e8308a763aada8a3f9fa980efe18da.tar.gz
px4-nuttx-6082c42751e8308a763aada8a3f9fa980efe18da.tar.bz2
px4-nuttx-6082c42751e8308a763aada8a3f9fa980efe18da.zip
Fix more STM32 ethernet bugs; Fix some build issues with examples/nettest
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4171 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nettest/nettest.c')
-rw-r--r--apps/examples/nettest/nettest.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/examples/nettest/nettest.c b/apps/examples/nettest/nettest.c
index 8ce44e54a..7160e693a 100644
--- a/apps/examples/nettest/nettest.c
+++ b/apps/examples/nettest/nettest.c
@@ -53,6 +53,18 @@
* Definitions
****************************************************************************/
+/* If CONFIG_NSH_BUILTIN_APPS is defined, then it is assumed that you want
+ * to execute the DHCPD daemon as an NSH built-in task.
+ */
+
+#ifdef CONFIG_NSH_BUILTIN_APPS
+# define MAIN_NAME nettest_main
+# define MAIN_NAME_STRING "nettest_main"
+#else
+# define MAIN_NAME user_start
+# define MAIN_NAME_STRING "user_start"
+#endif
+
/****************************************************************************
* Private Data
****************************************************************************/
@@ -65,7 +77,7 @@
* user_start
****************************************************************************/
-int user_start(int argc, char *argv[])
+int MAIN_NAME(int argc, char *argv[])
{
struct in_addr addr;
#ifdef CONFIG_EXAMPLE_NETTEST_NOMAC