aboutsummaryrefslogtreecommitdiff
path: root/src/examples/_0_zero_tasks.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-11-03 17:02:41 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-11-03 17:16:55 +0100
commitc631049efcadca8b07940c794cce2be58fa48444 (patch)
treef6bd73e5c396fc06072557ee965cc59e9c8e3e9f /src/examples/_0_zero_tasks.rs
parent653338e7997a0cdc5deaed98b1bb5f60006717ed (diff)
downloadrtic-c631049efcadca8b07940c794cce2be58fa48444.tar.gz
rtic-c631049efcadca8b07940c794cce2be58fa48444.tar.zst
rtic-c631049efcadca8b07940c794cce2be58fa48444.zip
v0.4.0
closes #32 closes #33
Diffstat (limited to 'src/examples/_0_zero_tasks.rs')
-rw-r--r--src/examples/_0_zero_tasks.rs47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/examples/_0_zero_tasks.rs b/src/examples/_0_zero_tasks.rs
deleted file mode 100644
index 0484bb9d..00000000
--- a/src/examples/_0_zero_tasks.rs
+++ /dev/null
@@ -1,47 +0,0 @@
-//! Minimal example with zero tasks
-//!
-//! ```
-//! #![deny(unsafe_code)]
-//! #![deny(warnings)]
-//! #![no_std]
-//!
-//! extern crate cortex_m_rtfm as rtfm; // IMPORTANT always do this rename
-//! extern crate stm32f103xx; // the device crate
-//!
-//! // import the procedural macro
-//! use rtfm::app;
-//!
-//! // This macro call indicates that this is a RTFM application
-//! //
-//! // This macro will expand to a `main` function so you don't need to supply
-//! // `main` yourself.
-//! app! {
-//! // this is the path to the device crate
-//! device: stm32f103xx,
-//! }
-//!
-//! // The initialization phase.
-//! //
-//! // This runs first and within a *global* critical section. Nothing can preempt
-//! // this function.
-//! fn init(p: init::Peripherals) {
-//! // This function has access to all the peripherals of the device
-//! p.core.SYST;
-//! p.device.GPIOA;
-//! p.device.RCC;
-//! // ..
-//! }
-//!
-//! // The idle loop.
-//! //
-//! // 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() -> ! {
-//! loop {
-//! // This puts the processor to sleep until there's a task to service
-//! rtfm::wfi();
-//! }
-//! }
-//! ```
-// Auto-generated. Do not modify.