Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuttx-apps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
nuttx-apps
Commits
1eedc38d
Commit
1eedc38d
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
SAM4S Xplained Pro fixups from Bob DOIRON after the last big set of commits
parent
ce8e4295
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/cpuhog/cpuhog_main.c
+27
-0
27 additions, 0 deletions
examples/cpuhog/cpuhog_main.c
with
27 additions
and
0 deletions
examples/cpuhog/cpuhog_main.c
+
27
−
0
View file @
1eedc38d
...
...
@@ -34,6 +34,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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment