diff options
author | 2017-07-27 22:40:47 -0500 | |
---|---|---|
committer | 2017-07-27 22:40:47 -0500 | |
commit | e85d6e53c89cd1ea1da8826778c5a74154fb651d (patch) | |
tree | 76fbc30063df22724b9b160c85055e1d294513b0 /src/examples/_0_zero_tasks.rs | |
parent | 271df39bdba0690ea7ba77a6ff5d8d7edb9b8036 (diff) | |
download | rtic-e85d6e53c89cd1ea1da8826778c5a74154fb651d.tar.gz rtic-e85d6e53c89cd1ea1da8826778c5a74154fb651d.tar.zst rtic-e85d6e53c89cd1ea1da8826778c5a74154fb651d.zip |
update examples
Diffstat (limited to 'src/examples/_0_zero_tasks.rs')
-rw-r--r-- | src/examples/_0_zero_tasks.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/examples/_0_zero_tasks.rs b/src/examples/_0_zero_tasks.rs index 15231818..7ea08597 100644 --- a/src/examples/_0_zero_tasks.rs +++ b/src/examples/_0_zero_tasks.rs @@ -1,9 +1,9 @@ //! Minimal example with zero tasks //! //! ``` -//! //! #![deny(unsafe_code)] -//! #![feature(proc_macro)] // IMPORTANT always include this feature gate +//! // IMPORTANT always include this feature gate +//! #![feature(proc_macro)] //! #![no_std] //! //! extern crate cortex_m_rtfm as rtfm; // IMPORTANT always do this rename @@ -17,7 +17,7 @@ //! // This macro will expand to a `main` function so you don't need to supply //! // `main` yourself. //! app! { -//! // this is a path to the device crate +//! // this is the path to the device crate //! device: stm32f103xx, //! } //! @@ -30,20 +30,14 @@ //! p.GPIOA; //! p.RCC; //! // .. -//! -//! // You'll hit this breakpoint first -//! rtfm::bkpt(); //! } //! //! // The idle loop. //! // -//! // This runs afterwards and has a priority of 0. All tasks can preempt this +//! // This runs after `init` and has a priority of 0. All tasks can preempt this //! // function. This function can never return so it must contain some sort of //! // endless loop. //! fn idle() -> ! { -//! // And then this breakpoint -//! rtfm::bkpt(); -//! //! loop { //! // This puts the processor to sleep until there's a task to service //! rtfm::wfi(); |