summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-11 17:37:41 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-11 17:37:41 +0000
commit1924debc29cbc64094cf41bbdf878c6c53dd4d7b (patch)
tree440984e28c0c277108279ddd73686e8e34cf8d99 /apps
parentfaa4bb28e9f5e2e3c060ecb1ad7e5bc62f023292 (diff)
downloadnuttx-1924debc29cbc64094cf41bbdf878c6c53dd4d7b.tar.gz
nuttx-1924debc29cbc64094cf41bbdf878c6c53dd4d7b.tar.bz2
nuttx-1924debc29cbc64094cf41bbdf878c6c53dd4d7b.zip
More apps/ updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3366 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/exec_nuttapp.c15
1 files changed, 11 insertions, 4 deletions
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, &param);
+ sched_setscheduler(i, SCHED_RR, &param);
+ }
+#endif
+
return i;
}