-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(threads): multicore support (#397)
- Loading branch information
Showing
29 changed files
with
902 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ subdirs: | |
- random | ||
- threading | ||
- threading-channel | ||
- threading-multicore | ||
- usb-serial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "threading-multicore" | ||
version = "0.1.0" | ||
authors = ["Elena Frank <elena.frank@proton.me>"] | ||
edition.workspace = true | ||
license.workspace = true | ||
publish = false | ||
|
||
[dependencies] | ||
riot-rs = { path = "../../src/riot-rs", features = ["core-affinity"] } | ||
riot-rs-boards = { path = "../../src/riot-rs-boards" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# threading multicore | ||
|
||
## About | ||
|
||
This application demonstrates basic threading on multicore. | ||
|
||
## How to run | ||
|
||
In this folder, run | ||
|
||
laze build -b rpi-pico run | ||
|
||
The application will start two threads that each print their ID and the core that they are running on, before | ||
entering a busy loop. | ||
The thread that is started first in pinned to Core 1 using core affinities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apps: | ||
- name: threading-multicore | ||
selects: | ||
- ?release | ||
- sw/threading | ||
- multi-core |
Oops, something went wrong.