Rename all apps/examples/-/main.c to something unique

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5141 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2012-09-13 12:36:32 +00:00
parent 024e115d09
commit a033a25dbf
24 changed files with 27 additions and 24 deletions

View File

@ -323,3 +323,6 @@
by Max Holtzberg. by Max Holtzberg.
* apps/examples/discover: A test example for the UDP network discovery * apps/examples/discover: A test example for the UDP network discovery
utility (also contribed by Max Holtzberg). utility (also contribed by Max Holtzberg).
* apps/examples/*/main.c: Too many files called main.c. Each renamed
to something unique so that they will not collide in the archive.

View File

@ -1133,7 +1133,7 @@ examples/rgmp
See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further See http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
At present, the RGMP example folder contains only an empty main.c file. At present, the RGMP example folder contains only an empty rgmp_main.c file.
examples/romfs examples/romfs
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# Hello, World! Example # Hello, World! Example
ASRCS = ASRCS =
CSRCS = main.c CSRCS = buttons_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/buttons/main.c * examples/buttons/buttons_main.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -47,7 +47,7 @@ PRIORITY = SCHED_PRIORITY_DEFAULT
STACKSIZE = 2048 STACKSIZE = 2048
ASRCS = ASRCS =
CSRCS = main.c CSRCS = discover_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/discover/main.c * examples/discover/discover_main.c
* *
* Copyright (C) 2012 Max Holtzberg. All rights reserved. * Copyright (C) 2012 Max Holtzberg. All rights reserved.
* Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved.

View File

@ -46,7 +46,7 @@ STACKSIZE = 2048
# Hello, World! Example # Hello, World! Example
ASRCS = ASRCS =
CSRCS = main.c CSRCS = hello_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/hello/main.c * examples/hello/hello_main.c
* *
* Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -41,7 +41,7 @@ include $(APPDIR)/Make.defs
ASRCS = ASRCS =
CSRCS = CSRCS =
CXXSRCS = main.cxx CXXSRCS = helloxx_main.cxx
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
//*************************************************************************** //***************************************************************************
// examples/helloxx/main.cxx // examples/helloxx/helloxx_main.cxx
// //
// Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. // Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gnutt@nuttx.org> // Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -46,7 +46,7 @@ STACKSIZE = 2048
# NuttX OS Test # NuttX OS Test
ASRCS = ASRCS =
CSRCS = main.c dev_null.c CSRCS = ostest_main.c dev_null.c
ifeq ($(CONFIG_ARCH_FPU),y) ifeq ($(CONFIG_ARCH_FPU),y)
CSRCS += fpu.c CSRCS += fpu.c

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* apps/examples/ostest/main.c * apps/examples/ostest/ostest_main.c
* *
* Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# The smallest thing you can build -- the NULL example. # The smallest thing you can build -- the NULL example.
ASRCS = ASRCS =
CSRCS = main.c CSRCS = rgmp_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/rgmp/main.c * examples/rgmp/rgmp_main.c
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# Mindlessly simple console loopack test # Mindlessly simple console loopack test
ASRCS = ASRCS =
CSRCS = main.c CSRCS = serloop_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/serloop/main.c * examples/serloop/serloop_main.c
* *
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr> * Author: Gregory Nutt <spudmonkey@racsa.co.cr>

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# THTTPD Web Server Example # THTTPD Web Server Example
ASRCS = ASRCS =
CSRCS = main.c CSRCS = thttpd_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/thttpd/main.c * examples/thttpd/thttpd_main.c
* *
* Copyright (C) 2009-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2009-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# uIP very tiny web server example # uIP very tiny web server example
ASRCS = ASRCS =
CSRCS = main.c cgi.c httpd_fsdata.c CSRCS = uip_main.c cgi.c httpd_fsdata.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/uip/main.c * examples/uip/uip_main.c
* *
* Copyright (C) 2007, 2009-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2007, 2009-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
@ -201,7 +201,7 @@ int uip_main(int argc, char *argv[])
while(1) while(1)
{ {
sleep(3); sleep(3);
printf("main: Still running\n"); printf("uip_main: Still running\n");
#if CONFIG_NFILE_DESCRIPTORS > 0 #if CONFIG_NFILE_DESCRIPTORS > 0
fflush(stdout); fflush(stdout);
#endif #endif

View File

@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs
# USB serial device example # USB serial device example
ASRCS = ASRCS =
CSRCS = main.c CSRCS = usbserial_main.c
AOBJS = $(ASRCS:.S=$(OBJEXT)) AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/usbserial/main.c * examples/usbserial/usbserial_main.c
* *
* Copyright (C) 2008, 2010-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2008, 2010-2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>

View File

@ -1,5 +1,5 @@
/**************************************************************************** /****************************************************************************
* examples/discover/main.c * netutils/discover/discover.c
* *
* Copyright (C) 2012 Max Holtzberg. All rights reserved. * Copyright (C) 2012 Max Holtzberg. All rights reserved.
* Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved.

View File

@ -211,7 +211,7 @@ COMMAND SUMMARY
=============== ===============
We have already seen the I2C help (or ?) commands above. This section will We have already seen the I2C help (or ?) commands above. This section will
discusse the remaining commands. discuss the remaining commands.
List buses: bus [OPTIONS] List buses: bus [OPTIONS]
-------------------------- --------------------------