From 1924debc29cbc64094cf41bbdf878c6c53dd4d7b Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 11 Mar 2011 17:37:41 +0000 Subject: More apps/ updates git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3366 42af7a65-404d-4744-a932-0658087f49c3 --- apps/exec_nuttapp.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/exec_nuttapp.c') diff --git a/apps/exec_nuttapp.c b/apps/exec_nuttapp.c index 4550de27e..3cc4b5139 100644 --- a/apps/exec_nuttapp.c +++ b/apps/exec_nuttapp.c @@ -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, ¶m); + sched_setscheduler(i, SCHED_RR, ¶m); + } +#endif + return i; } -- cgit v1.2.3