Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
e7020e_2021
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Anton Johansson
e7020e_2021
Commits
9910ce36
Commit
9910ce36
authored
4 years ago
by
Anton
Browse files
Options
Downloads
Patches
Plain Diff
bare8_1
parent
20ea1d20
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/rtic_bare8.rs
+10
-7
10 additions, 7 deletions
examples/rtic_bare8.rs
with
10 additions
and
7 deletions
examples/rtic_bare8.rs
+
10
−
7
View file @
9910ce36
...
...
@@ -11,13 +11,14 @@
use
panic_rtt_target
as
_
;
use
nb
::
block
;
//
use nb::block;
use
stm32f4xx_hal
::{
gpio
::{
gpioa
::
PA
,
Output
,
PushPull
},
prelude
::
*
,
serial
::{
config
::
Config
,
Rx
,
Serial
,
Tx
},
stm32
::
USART2
,
nb
::
block
,
};
use
rtic
::
app
;
...
...
@@ -113,31 +114,33 @@ const APP: () = {
//
// What do you receive in `moserial`?
//
//
** your answer here **
//
a
//
// What do you receive in the RTT terminal?
//
//
** your answer here **
//
Ok 97
//
// Try sending: "abcd" as a single sequence, don't send the quotation marks, just abcd.
//
// What did you receive in `moserial`?
//
//
** your answer here **
//
ad
//
// What do you receive in the RTT terminal?
//
// ** your answer here **
// Ok 97
// Error Overrun
// Ok 100
//
// What do you believe to be the problem?
//
// Hint: Look at the code in `idle` what does it do?
//
//
** your answer here **
//
The buffer is not cleared before another byte is coming in.
//
// Experiment a bit, what is the max length sequence you can receive without errors?
//
//
** your answer here **
//
2 bytes length
//
// Commit your answers (bare8_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