aboutsummaryrefslogtreecommitdiff
path: root/apps/examples/hello
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-08-30 20:13:50 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-08-30 20:13:50 +0000
commitb121fbbb00aa877caef26e5ffb14b3687d36827f (patch)
treef770414832eeecb35adb70404b31d147afad7235 /apps/examples/hello
parent6ab6c46f2f29d82707bc7c3aae3ec5283bd285aa (diff)
downloadpx4-firmware-b121fbbb00aa877caef26e5ffb14b3687d36827f.tar.gz
px4-firmware-b121fbbb00aa877caef26e5ffb14b3687d36827f.tar.bz2
px4-firmware-b121fbbb00aa877caef26e5ffb14b3687d36827f.zip
Add configurable application entry point
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5070 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/hello')
-rw-r--r--apps/examples/hello/main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/examples/hello/main.c b/apps/examples/hello/main.c
index 7934dc34b..7e07cffd1 100644
--- a/apps/examples/hello/main.c
+++ b/apps/examples/hello/main.c
@@ -53,16 +53,10 @@
****************************************************************************/
/****************************************************************************
- * user_start/hello_main
+ * hello_main
****************************************************************************/
-#ifdef CONFIG_EXAMPLES_HELLO_BUILTIN
-# define MAIN_NAME hello_main
-#else
-# define MAIN_NAME user_start
-#endif
-
-int MAIN_NAME(int argc, char *argv[])
+int hello_main(int argc, char *argv[])
{
printf("Hello, World!!\n");
return 0;