Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2019
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
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
August Svensson
e7020e_2019
Commits
b1880e13
Commit
b1880e13
authored
6 years ago
by
August Svensson
Browse files
Options
Downloads
Patches
Plain Diff
bare10_2
parent
4a1f1a26
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/bare10.rs
+4
-2
4 additions, 2 deletions
examples/bare10.rs
with
4 additions
and
2 deletions
examples/bare10.rs
+
4
−
2
View file @
b1880e13
...
@@ -79,7 +79,7 @@ const APP: () = {
...
@@ -79,7 +79,7 @@ const APP: () = {
}
}
}
}
#[task(priority
=
1
,
resources
=
[
ITM]
)]
#[task(priority
=
1
,
capacity
=
4
,
resources
=
[
ITM]
)]
fn
trace_data
(
byte
:
u8
)
{
fn
trace_data
(
byte
:
u8
)
{
let
stim
=
&
mut
resources
.ITM.stim
[
0
];
let
stim
=
&
mut
resources
.ITM.stim
[
0
];
iprintln!
(
stim
,
"data {}"
,
byte
);
iprintln!
(
stim
,
"data {}"
,
byte
);
...
@@ -169,7 +169,9 @@ const APP: () = {
...
@@ -169,7 +169,9 @@ const APP: () = {
//
//
// What information would you need?
// What information would you need?
//
//
// ** your answer here **
// ** The time each byte needs to be processed (call it A) and the time it takes for
// a byte to arrive after the previous arrived (call it B). We need space for approximately
// A/B tasks to run simultaneously. **
//
//
// Commit your answers (bare10_2)
// Commit your answers (bare10_2)
//
//
...
...
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