Updated documentation to include the critical section token in init

This commit is contained in:
Emil Fresk 2020-10-03 15:30:15 +02:00
parent 97eae45fa5
commit f0f982faca
2 changed files with 8 additions and 3 deletions

View file

@ -23,6 +23,10 @@ const APP: () = {
// Safe access to local `static mut` variable
let _x: &'static mut u32 = X;
// Access to the critical section token,
// to indicate that this is a critical seciton
let _cs_token: bare_metal::CriticalSection = cx.cs;
hprintln!("init").unwrap();
debug::exit(debug::EXIT_SUCCESS);