aboutsummaryrefslogtreecommitdiff
path: root/examples/preempt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/preempt.rs')
-rw-r--r--examples/preempt.rs8
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();
}
};