aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include
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 /nuttx/include
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 'nuttx/include')
-rw-r--r--nuttx/include/assert.h4
-rw-r--r--nuttx/include/nuttx/init.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/include/assert.h b/nuttx/include/assert.h
index 89606b6f6..31c9edf48 100644
--- a/nuttx/include/assert.h
+++ b/nuttx/include/assert.h
@@ -91,6 +91,10 @@
#endif
+#ifndef assert
+#define assert ASSERT
+#endif
+
/****************************************************************************
* Included Files
****************************************************************************/
diff --git a/nuttx/include/nuttx/init.h b/nuttx/include/nuttx/init.h
index ecdad702f..2d1b3c693 100644
--- a/nuttx/include/nuttx/init.h
+++ b/nuttx/include/nuttx/init.h
@@ -68,7 +68,7 @@ extern "C" {
/* This entry point must be supplied by the application */
-EXTERN int user_start(int argc, char *argv[]);
+EXTERN int CONFIG_USER_ENTRYPOINT(int argc, char *argv[]);
/* Functions contained in os_task.c *****************************************/