Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cm-projects
RIOT
Commits
fbdc18cd
Commit
fbdc18cd
authored
10 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
examples: added README.md to ipc_pingpong example
parent
70162eff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/ipc_pingpong/README.md
+37
-0
37 additions, 0 deletions
examples/ipc_pingpong/README.md
with
37 additions
and
0 deletions
examples/ipc_pingpong/README.md
0 → 100644
+
37
−
0
View file @
fbdc18cd
IPC Pingpong!
=============
This example is to illustrate the usage of RIOTs IPC messaging system.
The application starts a second thread (in addition to the main thread) and sends messages between
these two threads. The main thread call
`thread_send_receive()`
in an endless loop. The second
thread receives the message, prints
`2nd: got msg from x`
to stdout and sends a reply message with
an incrementing number back to the main thread.
The correct output should look like this:
```
kernel_init(): This is RIOT! (Version: xxx)
kernel_init(): jumping into first task...
Hello world!
second_thread starting.
2nd: got msg from 1
Got msg with content 2
2nd: got msg from 1
Got msg with content 3
2nd: got msg from 1
Got msg with content 4
2nd: got msg from 1
Got msg with content 5
2nd: got msg from 1
Got msg with content 6
2nd: got msg from 1
Got msg with content 7
2nd: got msg from 1
Got msg with content 8
2nd: got msg from 1
Got msg with content 9
2nd: got msg from 1
Got msg with content 10
2nd: got msg from 1
[...]
```
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