mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 14:53:34 +08:00
Add configurable application entry point
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5070 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -99,10 +99,10 @@ static void prun(FAR struct pexec_s *st)
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* user_start
|
||||
* pashello_main
|
||||
****************************************************************************/
|
||||
|
||||
int user_start(int argc, FAR char *argv[])
|
||||
int pashello_main(int argc, FAR char *argv[])
|
||||
{
|
||||
FAR struct pexec_s *st;
|
||||
|
||||
@@ -115,11 +115,11 @@ int user_start(int argc, FAR char *argv[])
|
||||
st = pload("/dev/hello", CONFIG_PASHELLO_VARSTACKSIZE, CONFIG_PASHELLO_STRSTACKSIZE);
|
||||
if (!st)
|
||||
{
|
||||
fprintf(stderr, "user_start: ERROR: Could not load /dev/hello\n");
|
||||
fprintf(stderr, "pashello_main: ERROR: Could not load /dev/hello\n");
|
||||
exit(1);
|
||||
}
|
||||
printf("user_start: /dev/hello Loaded\n");
|
||||
printf("user_start: Interpreter started:\n");
|
||||
printf("pashello_main: /dev/hello Loaded\n");
|
||||
printf("pashello_main: Interpreter started:\n");
|
||||
|
||||
/* And start program execution */
|
||||
|
||||
@@ -127,7 +127,7 @@ int user_start(int argc, FAR char *argv[])
|
||||
|
||||
/* Clean up resources used by the interpreter */
|
||||
|
||||
printf("user_start: Interpreter terminated");
|
||||
printf("pashello_main: Interpreter terminated");
|
||||
pexec_release(st);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user