Skip to content
Snippets Groups Projects
Commit a0f2e9a8 authored by August Svensson's avatar August Svensson
Browse files

bare8_2

parent b750c18e
No related branches found
No related tags found
No related merge requests found
...@@ -73,14 +73,19 @@ const APP: () = { ...@@ -73,14 +73,19 @@ const APP: () = {
let tx = resources.TX; let tx = resources.TX;
let stim = &mut resources.ITM.stim[0]; let stim = &mut resources.ITM.stim[0];
let mut received: u32 = 0;
let mut errors: u32 = 0;
loop { loop {
match block!(rx.read()) { match block!(rx.read()) {
Ok(byte) => { Ok(byte) => {
iprintln!(stim, "Ok {:?}", byte); received += 1;
iprintln!(stim, "Ok {:?}, received: {}", byte, received);
tx.write(byte).unwrap(); tx.write(byte).unwrap();
} }
Err(err) => { Err(err) => {
iprintln!(stim, "Error {:?}", err); errors += 1;
iprintln!(stim, "Error {:?}, errors: {}", err, errors);
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment