diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-04-22 14:34:17 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-04-22 14:34:17 -0600 |
commit | 7452bdd9201311c1ccf299252bea2aa1768a553d (patch) | |
tree | ca29db948c6676e4e2c98e236a66b3674cc4c2df /apps/examples/cpuhog | |
parent | 6c0413a16e7d840129c33bd848dde518f12cd74e (diff) | |
download | px4-nuttx-7452bdd9201311c1ccf299252bea2aa1768a553d.tar.gz px4-nuttx-7452bdd9201311c1ccf299252bea2aa1768a553d.tar.bz2 px4-nuttx-7452bdd9201311c1ccf299252bea2aa1768a553d.zip |
SAM4S Xplained Pro fixups from Bob DOIRON after the last big set of commits
Diffstat (limited to 'apps/examples/cpuhog')
-rw-r--r-- | apps/examples/cpuhog/cpuhog_main.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/examples/cpuhog/cpuhog_main.c b/apps/examples/cpuhog/cpuhog_main.c index 4e5fe3593..486895065 100644 --- a/apps/examples/cpuhog/cpuhog_main.c +++ b/apps/examples/cpuhog/cpuhog_main.c @@ -35,6 +35,31 @@ ****************************************************************************/ /**************************************************************************** + * Example usage: + * + * NuttShell (NSH) + * nsh> cpuhog > /dev/ttyS1 & + * cpuhog [5:50] + * nsh> cpuhog > /dev/ttyS2 & + * cpuhog [7:50] + * nsh> cpuhog & + * cpuhog [8:50] + * nsh> cpuhog 2 + * ps + * PID PRI SCHD TYPE NP STATE CPU NAME + * 0 0 FIFO TASK READY 0.9% Idle Task() + * 1 192 FIFO KTHREAD WAITSIG 0.0% work() + * 2 200 FIFO KTHREAD WAITSIG 0.0% wdog() + * 3 100 FIFO TASK RUNNING 0.0% init() + * 5 50 RR TASK WAITSEM 27.7% cpuhog(20009c70, 20009c80) + * 7 50 RR TASK WAITSEM 30.3% cpuhog(20008c00, 20008c10) + * 8 50 RR TASK READY 41.7% cpuhog() + * nsh> + * + ****************************************************************************/ + + +/**************************************************************************** * Included Files ****************************************************************************/ @@ -158,6 +183,8 @@ int cpuhog_main(int argc, char *argv[]) up_udelay(3000); } + + fflush(stdout); } return 0; |