diff options
author | 2020-06-11 17:18:29 +0000 | |
---|---|---|
committer | 2020-06-11 17:18:29 +0000 | |
commit | 602a5b4374961dbcf7f3290053ab9b01f0622c67 (patch) | |
tree | d3e64006a7b310d34d82df7aa2a4467c03595e55 /examples/preempt.rs | |
parent | 4a0393f756cc3ccd480f839eb6b6a9349326fe8e (diff) | |
download | rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.gz rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.zst rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.zip |
Rename RTFM to RTIC
Diffstat (limited to 'examples/preempt.rs')
-rw-r--r-- | examples/preempt.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/preempt.rs b/examples/preempt.rs index d7a7e644..3cb11029 100644 --- a/examples/preempt.rs +++ b/examples/preempt.rs @@ -6,19 +6,19 @@ use cortex_m_semihosting::{debug, hprintln}; use lm3s6965::Interrupt; use panic_semihosting as _; -use rtfm::app; +use rtic::app; #[app(device = lm3s6965)] const APP: () = { #[init] fn init(_: init::Context) { - rtfm::pend(Interrupt::GPIOA); + rtic::pend(Interrupt::GPIOA); } #[task(binds = GPIOA, priority = 1)] fn gpioa(_: gpioa::Context) { hprintln!("GPIOA - start").unwrap(); - rtfm::pend(Interrupt::GPIOC); + rtic::pend(Interrupt::GPIOC); hprintln!("GPIOA - end").unwrap(); debug::exit(debug::EXIT_SUCCESS); } @@ -31,7 +31,7 @@ const APP: () = { #[task(binds = GPIOC, priority = 2)] fn gpioc(_: gpioc::Context) { hprintln!(" GPIOC - start").unwrap(); - rtfm::pend(Interrupt::GPIOB); + rtic::pend(Interrupt::GPIOB); hprintln!(" GPIOC - end").unwrap(); } }; |