diff options
author | 2020-06-11 17:18:29 +0000 | |
---|---|---|
committer | 2020-06-11 17:18:29 +0000 | |
commit | 602a5b4374961dbcf7f3290053ab9b01f0622c67 (patch) | |
tree | d3e64006a7b310d34d82df7aa2a4467c03595e55 /examples/lock.rs | |
parent | 4a0393f756cc3ccd480f839eb6b6a9349326fe8e (diff) | |
download | rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.gz rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.zst rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.zip |
Rename RTFM to RTIC
Diffstat (limited to 'examples/lock.rs')
-rw-r--r-- | examples/lock.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 |