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:
parent
411b30916b
commit
57f39b3486
@ -120,10 +120,6 @@ int exec_nuttapp(FAR const char *appname, FAR const char *argv[])
|
|||||||
{
|
{
|
||||||
int i;
|
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 )
|
if ( (i = nuttapp_isavail(appname)) >= 0 )
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_CUSTOM_STACK
|
#ifndef CONFIG_CUSTOM_STACK
|
||||||
@ -132,6 +128,17 @@ int exec_nuttapp(FAR const char *appname, FAR const char *argv[])
|
|||||||
#else
|
#else
|
||||||
i = task_create(nuttapps[i].name, nuttapps[i].priority, nuttapps[i].main, &argv[1]);
|
i = task_create(nuttapps[i].name, nuttapps[i].priority, nuttapps[i].main, &argv[1]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_RR_INTERVAL > 0
|
||||||
|
if (i > 0)
|
||||||
|
{
|
||||||
|
struct sched_param param;
|
||||||
|
|
||||||
|
sched_getparam(0, ¶m);
|
||||||
|
sched_setscheduler(i, SCHED_RR, ¶m);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user