More apps/ updates

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3366 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2011-03-11 17:37:41 +00:00
parent 411b30916b
commit 57f39b3486

View File

@ -120,10 +120,6 @@ int exec_nuttapp(FAR const char *appname, FAR const char *argv[])
{
int i;
// Not sure what to do with exports and nexports ... as found in exec
// FAR const struct symtab_s *exports, int nexports
// so they are ommited in the args list.
if ( (i = nuttapp_isavail(appname)) >= 0 )
{
#ifndef CONFIG_CUSTOM_STACK
@ -132,6 +128,17 @@ int exec_nuttapp(FAR const char *appname, FAR const char *argv[])
#else
i = task_create(nuttapps[i].name, nuttapps[i].priority, nuttapps[i].main, &argv[1]);
#endif
#if CONFIG_RR_INTERVAL > 0
if (i > 0)
{
struct sched_param param;
sched_getparam(0, &param);
sched_setscheduler(i, SCHED_RR, &param);
}
#endif
return i;
}