From 602a5b4374961dbcf7f3290053ab9b01f0622c67 Mon Sep 17 00:00:00 2001 From: Henrik Tjäder Date: Thu, 11 Jun 2020 17:18:29 +0000 Subject: Rename RTFM to RTIC --- examples/lock.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/lock.rs') diff --git a/examples/lock.rs b/examples/lock.rs index f33a60a4..5e3bce25 100644 --- a/examples/lock.rs +++ b/examples/lock.rs @@ -9,7 +9,7 @@ use cortex_m_semihosting::{debug, hprintln}; use lm3s6965::Interrupt; use panic_semihosting as _; -#[rtfm::app(device = lm3s6965)] +#[rtic::app(device = lm3s6965)] const APP: () = { struct Resources { #[init(0)] @@ -18,7 +18,7 @@ const APP: () = { #[init] fn init(_: init::Context) { - rtfm::pend(Interrupt::GPIOA); + rtic::pend(Interrupt::GPIOA); } // when omitted priority is assumed to be `1` @@ -32,12 +32,12 @@ const APP: () = { *shared += 1; // GPIOB will *not* run right now due to the critical section - rtfm::pend(Interrupt::GPIOB); + rtic::pend(Interrupt::GPIOB); hprintln!("B - shared = {}", *shared).unwrap(); // GPIOC does not contend for `shared` so it's allowed to run now - rtfm::pend(Interrupt::GPIOC); + rtic::pend(Interrupt::GPIOC); }); // critical section is over: GPIOB can now start -- cgit v1.2.3