aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-06-11 17:18:29 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-06-11 17:18:29 +0000
commit602a5b4374961dbcf7f3290053ab9b01f0622c67 (patch)
treed3e64006a7b310d34d82df7aa2a4467c03595e55 /examples
parent4a0393f756cc3ccd480f839eb6b6a9349326fe8e (diff)
downloadrtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.gz
rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.tar.zst
rtic-602a5b4374961dbcf7f3290053ab9b01f0622c67.zip
Rename RTFM to RTIC
Diffstat (limited to 'examples')
-rw-r--r--examples/baseline.rs4
-rw-r--r--examples/binds.rs6
-rw-r--r--examples/capacity.rs4
-rw-r--r--examples/cfg.rs2
-rw-r--r--examples/destructure.rs6
-rw-r--r--examples/generics.rs10
-rw-r--r--examples/hardware.rs6
-rw-r--r--examples/idle.rs2
-rw-r--r--examples/init.rs2
-rw-r--r--examples/late.rs4
-rw-r--r--examples/lock.rs8
-rw-r--r--examples/message.rs2
-rw-r--r--examples/not-send.rs2
-rw-r--r--examples/not-sync.rs2
-rw-r--r--examples/only-shared-access.rs6
-rw-r--r--examples/periodic.rs4
-rw-r--r--examples/pool.rs4
-rw-r--r--examples/preempt.rs8
-rw-r--r--examples/ramfunc.rs2
-rw-r--r--examples/resource.rs6
-rw-r--r--examples/schedule.rs4
-rw-r--r--examples/shared-with-init.rs4
-rw-r--r--examples/smallest.rs2
-rw-r--r--examples/t-binds.rs2
-rw-r--r--examples/t-cfg-resources.rs2
-rw-r--r--examples/t-cfg.rs2
-rw-r--r--examples/t-htask-main.rs4
-rw-r--r--examples/t-idle-main.rs2
-rw-r--r--examples/t-init-main.rs2
-rw-r--r--examples/t-late-not-send.rs2
-rw-r--r--examples/t-resource.rs2
-rw-r--r--examples/t-schedule.rs4
-rw-r--r--examples/t-spawn.rs2
-rw-r--r--examples/t-stask-main.rs2
-rw-r--r--examples/task.rs2
-rw-r--r--examples/types.rs6
36 files changed, 67 insertions, 67 deletions
diff --git a/examples/baseline.rs b/examples/baseline.rs
index df0ff9a4..4be8cd39 100644
--- a/examples/baseline.rs
+++ b/examples/baseline.rs
@@ -10,7 +10,7 @@ use lm3s6965::Interrupt;
use panic_semihosting as _;
// NOTE: does NOT properly work on QEMU
-#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
#[init(spawn = [foo])]
fn init(cx: init::Context) {
@@ -31,7 +31,7 @@ const APP: () = {
if *ONCE {
*ONCE = false;
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
} else {
debug::exit(debug::EXIT_SUCCESS);
}
diff --git a/examples/binds.rs b/examples/binds.rs
index b10cb434..faf315f4 100644
--- a/examples/binds.rs
+++ b/examples/binds.rs
@@ -10,11 +10,11 @@ use lm3s6965::Interrupt;
use panic_semihosting as _;
// `examples/interrupt.rs` rewritten to use `binds`
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
hprintln!("init").unwrap();
}
@@ -23,7 +23,7 @@ const APP: () = {
fn idle(_: idle::Context) -> ! {
hprintln!("idle").unwrap();
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
debug::exit(debug::EXIT_SUCCESS);
diff --git a/examples/capacity.rs b/examples/capacity.rs
index ebc86b80..e50f9294 100644
--- a/examples/capacity.rs
+++ b/examples/capacity.rs
@@ -9,11 +9,11 @@ use cortex_m_semihosting::{debug, hprintln};
use lm3s6965::Interrupt;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
}
#[task(binds = UART0, spawn = [foo, bar])]
diff --git a/examples/cfg.rs b/examples/cfg.rs
index 2a43b5c9..534c3f80 100644
--- a/examples/cfg.rs
+++ b/examples/cfg.rs
@@ -10,7 +10,7 @@ use cortex_m_semihosting::debug;
use cortex_m_semihosting::hprintln;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
#[cfg(debug_assertions)] // <- `true` when using the `dev` profile
diff --git a/examples/destructure.rs b/examples/destructure.rs
index 0cc3c1f1..1756bd9e 100644
--- a/examples/destructure.rs
+++ b/examples/destructure.rs
@@ -9,7 +9,7 @@ use cortex_m_semihosting::hprintln;
use lm3s6965::Interrupt;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
// Some resources to work with
@@ -23,8 +23,8 @@ const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(Interrupt::UART0);
- rtfm::pend(Interrupt::UART1);
+ rtic::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART1);
}
// Direct destructure
diff --git a/examples/generics.rs b/examples/generics.rs
index eafc6308..40ab81ac 100644
--- a/examples/generics.rs
+++ b/examples/generics.rs
@@ -8,9 +8,9 @@
use cortex_m_semihosting::{debug, hprintln};
use lm3s6965::Interrupt;
use panic_semihosting as _;
-use rtfm::{Exclusive, Mutex};
+use rtic::{Exclusive, Mutex};
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
#[init(0)]
@@ -19,8 +19,8 @@ const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(Interrupt::UART0);
- rtfm::pend(Interrupt::UART1);
+ rtic::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART1);
}
#[task(binds = UART0, resources = [shared])]
@@ -32,7 +32,7 @@ const APP: () = {
// second argument has type `resources::shared`
advance(STATE, c.resources.shared);
- rtfm::pend(Interrupt::UART1);
+ rtic::pend(Interrupt::UART1);
debug::exit(debug::EXIT_SUCCESS);
}
diff --git a/examples/hardware.rs b/examples/hardware.rs
index 77f19d90..9f1c664e 100644
--- a/examples/hardware.rs
+++ b/examples/hardware.rs
@@ -9,13 +9,13 @@ use cortex_m_semihosting::{debug, hprintln};
use lm3s6965::Interrupt;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
// Pends the UART0 interrupt but its handler won't run until *after*
// `init` returns because interrupts are disabled
- rtfm::pend(Interrupt::UART0); // equivalent to NVIC::pend
+ rtic::pend(Interrupt::UART0); // equivalent to NVIC::pend
hprintln!("init").unwrap();
}
@@ -26,7 +26,7 @@ const APP: () = {
hprintln!("idle").unwrap();
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
debug::exit(debug::EXIT_SUCCESS);
diff --git a/examples/idle.rs b/examples/idle.rs
index c6f676b0..c09af922 100644
--- a/examples/idle.rs
+++ b/examples/idle.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
diff --git a/examples/init.rs b/examples/init.rs
index 194e3ec4..315969f0 100644
--- a/examples/init.rs
+++ b/examples/init.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965, peripherals = true)]
+#[rtic::app(device = lm3s6965, peripherals = true)]
const APP: () = {
#[init]
fn init(cx: init::Context) {
diff --git a/examples/late.rs b/examples/late.rs
index 2eb12d6a..60b9be00 100644
--- a/examples/late.rs
+++ b/examples/late.rs
@@ -14,7 +14,7 @@ use heapless::{
use lm3s6965::Interrupt;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
// Late resources
struct Resources {
@@ -40,7 +40,7 @@ const APP: () = {
debug::exit(debug::EXIT_SUCCESS);
} else {
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
}
}
}
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
diff --git a/examples/message.rs b/examples/message.rs
index 8bfed523..3fb28121 100644
--- a/examples/message.rs
+++ b/examples/message.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init(spawn = [foo])]
fn init(c: init::Context) {
diff --git a/examples/not-send.rs b/examples/not-send.rs
index d27cc82f..fc2196c2 100644
--- a/examples/not-send.rs
+++ b/examples/not-send.rs
@@ -9,7 +9,7 @@ use core::marker::PhantomData;
use cortex_m_semihosting::debug;
use panic_halt as _;
-use rtfm::app;
+use rtic::app;
pub struct NotSend {
_0: PhantomData<*const ()>,
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index 7ce2a82f..57b18d75 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -14,7 +14,7 @@ pub struct NotSync {
_0: PhantomData<*const ()>,
}
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
#[init(NotSync { _0: PhantomData })]
diff --git a/examples/only-shared-access.rs b/examples/only-shared-access.rs
index c7060b14..c022b037 100644
--- a/examples/only-shared-access.rs
+++ b/examples/only-shared-access.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 {
key: u32,
@@ -17,8 +17,8 @@ const APP: () = {
#[init]
fn init(_: init::Context) -> init::LateResources {
- rtfm::pend(Interrupt::UART0);
- rtfm::pend(Interrupt::UART1);
+ rtic::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART1);
init::LateResources { key: 0xdeadbeef }
}
diff --git a/examples/periodic.rs b/examples/periodic.rs
index 3d32bc21..f84744a2 100644
--- a/examples/periodic.rs
+++ b/examples/periodic.rs
@@ -7,12 +7,12 @@
use cortex_m_semihosting::hprintln;
use panic_semihosting as _;
-use rtfm::cyccnt::{Instant, U32Ext};
+use rtic::cyccnt::{Instant, U32Ext};
const PERIOD: u32 = 8_000_000;
// NOTE: does NOT work on QEMU!
-#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
#[init(schedule = [foo])]
fn init(cx: init::Context) {
diff --git a/examples/pool.rs b/examples/pool.rs
index 8c44cb17..38d2b6e1 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -12,7 +12,7 @@ use heapless::{
};
use lm3s6965::Interrupt;
use panic_semihosting as _;
-use rtfm::app;
+use rtic::app;
// Declare a pool of 128-byte memory blocks
pool!(P: [u8; 128]);
@@ -26,7 +26,7 @@ const APP: () = {
// Increase the capacity of the memory pool by ~4
P::grow(MEMORY);
- rtfm::pend(Interrupt::I2C0);
+ rtic::pend(Interrupt::I2C0);
}
#[task(binds = I2C0, priority = 2, spawn = [foo, bar])]
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();
}
};
diff --git a/examples/ramfunc.rs b/examples/ramfunc.rs
index c38635ff..1f95d496 100644
--- a/examples/ramfunc.rs
+++ b/examples/ramfunc.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init(spawn = [bar])]
fn init(c: init::Context) {
diff --git a/examples/resource.rs b/examples/resource.rs
index 8632525e..ded97f8e 100644
--- a/examples/resource.rs
+++ b/examples/resource.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 {
// A resource
@@ -19,8 +19,8 @@ const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(Interrupt::UART0);
- rtfm::pend(Interrupt::UART1);
+ rtic::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART1);
}
// `shared` cannot be accessed from this context
diff --git a/examples/schedule.rs b/examples/schedule.rs
index d5de9dbf..44a56939 100644
--- a/examples/schedule.rs
+++ b/examples/schedule.rs
@@ -8,10 +8,10 @@
use cortex_m::peripheral::DWT;
use cortex_m_semihosting::hprintln;
use panic_halt as _;
-use rtfm::cyccnt::{Instant, U32Ext as _};
+use rtic::cyccnt::{Instant, U32Ext as _};
// NOTE: does NOT work on QEMU!
-#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
#[init(schedule = [foo, bar])]
fn init(mut cx: init::Context) {
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs
index 14fa54b7..bd55f7ef 100644
--- a/examples/shared-with-init.rs
+++ b/examples/shared-with-init.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::debug;
use lm3s6965::Interrupt;
use panic_halt as _;
-use rtfm::app;
+use rtic::app;
pub struct MustBeSend;
@@ -25,7 +25,7 @@ const APP: () = {
let message = MustBeSend;
*c.resources.shared = Some(message);
- rtfm::pend(Interrupt::UART0);
+ rtic::pend(Interrupt::UART0);
}
#[task(binds = UART0, resources = [shared])]
diff --git a/examples/smallest.rs b/examples/smallest.rs
index 7b26a852..ec3fa970 100644
--- a/examples/smallest.rs
+++ b/examples/smallest.rs
@@ -4,7 +4,7 @@
#![no_std]
use panic_semihosting as _; // panic handler
-use rtfm::app;
+use rtic::app;
#[app(device = lm3s6965)]
const APP: () = {};
diff --git a/examples/t-binds.rs b/examples/t-binds.rs
index dda8e201..588ac46f 100644
--- a/examples/t-binds.rs
+++ b/examples/t-binds.rs
@@ -7,7 +7,7 @@
use panic_halt as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {}
diff --git a/examples/t-cfg-resources.rs b/examples/t-cfg-resources.rs
index a8efe79e..eb00fe59 100644
--- a/examples/t-cfg-resources.rs
+++ b/examples/t-cfg-resources.rs
@@ -5,7 +5,7 @@
use panic_halt as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
// A resource
diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs
index e61ec795..feb71144 100644
--- a/examples/t-cfg.rs
+++ b/examples/t-cfg.rs
@@ -5,7 +5,7 @@
use panic_halt as _;
-#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
struct Resources {
#[cfg(never)]
diff --git a/examples/t-htask-main.rs b/examples/t-htask-main.rs
index d229d818..c4bebf94 100644
--- a/examples/t-htask-main.rs
+++ b/examples/t-htask-main.rs
@@ -6,11 +6,11 @@
use cortex_m_semihosting::debug;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {
- rtfm::pend(lm3s6965::Interrupt::UART0)
+ rtic::pend(lm3s6965::Interrupt::UART0)
}
#[task(binds = UART0)]
diff --git a/examples/t-idle-main.rs b/examples/t-idle-main.rs
index 861bbf22..94a33174 100644
--- a/examples/t-idle-main.rs
+++ b/examples/t-idle-main.rs
@@ -6,7 +6,7 @@
use cortex_m_semihosting::debug;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn init(_: init::Context) {}
diff --git a/examples/t-init-main.rs b/examples/t-init-main.rs
index e0d94d5f..6a6cd991 100644
--- a/examples/t-init-main.rs
+++ b/examples/t-init-main.rs
@@ -6,7 +6,7 @@
use cortex_m_semihosting::debug;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init]
fn main(_: main::Context) {
diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs
index 4fd3504e..c464e73b 100644
--- a/examples/t-late-not-send.rs
+++ b/examples/t-late-not-send.rs
@@ -11,7 +11,7 @@ pub struct NotSend {
_0: PhantomData<*const ()>,
}
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
x: NotSend,
diff --git a/examples/t-resource.rs b/examples/t-resource.rs
index 303340ed..53665dc9 100644
--- a/examples/t-resource.rs
+++ b/examples/t-resource.rs
@@ -7,7 +7,7 @@
use panic_halt as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
struct Resources {
#[init(0)]
diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs
index e6035b3f..67fcb749 100644
--- a/examples/t-schedule.rs
+++ b/examples/t-schedule.rs
@@ -6,9 +6,9 @@
#![no_std]
use panic_halt as _;
-use rtfm::cyccnt::{Instant, U32Ext as _};
+use rtic::cyccnt::{Instant, U32Ext as _};
-#[rtfm::app(device = lm3s6965, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
#[init(schedule = [foo, bar, baz])]
fn init(c: init::Context) {
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs
index 682b9b89..4fc1f4e3 100644
--- a/examples/t-spawn.rs
+++ b/examples/t-spawn.rs
@@ -7,7 +7,7 @@
use panic_halt as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init(spawn = [foo, bar, baz])]
fn init(c: init::Context) {
diff --git a/examples/t-stask-main.rs b/examples/t-stask-main.rs
index b55161ea..4245ef22 100644
--- a/examples/t-stask-main.rs
+++ b/examples/t-stask-main.rs
@@ -6,7 +6,7 @@
use cortex_m_semihosting::debug;
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init(spawn = [main])]
fn init(cx: init::Context) {
diff --git a/examples/task.rs b/examples/task.rs
index 9e563d71..10a4dc73 100644
--- a/examples/task.rs
+++ b/examples/task.rs
@@ -8,7 +8,7 @@
use cortex_m_semihosting::{debug, hprintln};
use panic_semihosting as _;
-#[rtfm::app(device = lm3s6965)]
+#[rtic::app(device = lm3s6965)]
const APP: () = {
#[init(spawn = [foo])]
fn init(c: init::Context) {
diff --git a/examples/types.rs b/examples/types.rs
index fc391d07..29dedaff 100644
--- a/examples/types.rs
+++ b/examples/types.rs
@@ -7,9 +7,9 @@
use cortex_m_semihosting::debug;
use panic_semihosting as _;
-use rtfm::cyccnt;
+use rtic::cyccnt;
-#[rtfm::app(device = lm3s6965, peripherals = true, monotonic = rtfm::cyccnt::CYCCNT)]
+#[rtic::app(device = lm3s6965, peripherals = true, monotonic = rtic::cyccnt::CYCCNT)]
const APP: () = {
struct Resources {
#[init(0)]
@@ -19,7 +19,7 @@ const APP: () = {
#[init(schedule = [foo], spawn = [foo])]
fn init(cx: init::Context) {
let _: cyccnt::Instant = cx.start;
- let _: rtfm::Peripherals = cx.core;
+ let _: rtic::Peripherals = cx.core;
let _: lm3s6965::Peripherals = cx.device;
let _: init::Schedule = cx.schedule;
let _: init::Spawn = cx.spawn;