summaryrefslogtreecommitdiff
path: root/nuttx/include/apps/nsh.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/apps/nsh.h')
-rw-r--r--nuttx/include/apps/nsh.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/apps/nsh.h b/nuttx/include/apps/nsh.h
index d8e857841..6977e44bd 100644
--- a/nuttx/include/apps/nsh.h
+++ b/nuttx/include/apps/nsh.h
@@ -46,6 +46,12 @@
* Pre-Processor Definitions
****************************************************************************/
+#if CONFIG_RR_INTERVAL > 0
+# define SCHED_NSH SCHED_RR
+#else
+# define SCHED_NSH SCHED_FIFO
+#endif
+
/****************************************************************************
* Public Data
****************************************************************************/