Skip to content

Commit 20de8b2

Browse files
committed
can: Rename rtfm to rtic in loopback example
1 parent 105a04a commit 20de8b2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,5 @@ name = "can-loopback"
144144
required-features = ["has-can"]
145145

146146
[[example]]
147-
name = "can-rtfm"
147+
name = "can-rtic"
148148
required-features = ["has-can", "rt"]

examples/can-rtfm.rs renamed to examples/can-rtic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Interrupt driven CAN transmitter with RTFM.
1+
//! Interrupt driven CAN transmitter with RTIC.
22
//!
33
//! CAN frames are allocated from a static memory pool and stored in a priority
44
//! queue (min heap) for transmisison. To start transmission the CAN TX
@@ -20,7 +20,7 @@ use heapless::{
2020
};
2121
use nb::block;
2222
use panic_halt as _;
23-
use rtfm::app;
23+
use rtic::app;
2424
use stm32f1xx_hal::{
2525
can::Can,
2626
pac::{Interrupt, CAN1},
@@ -54,7 +54,7 @@ impl Eq for PriorityFrame {}
5454

5555
fn enqueue_frame(queue: &mut BinaryHeap<PriorityFrame, U16, Max>, frame: Frame) {
5656
queue.push(PriorityFrame(frame)).unwrap();
57-
rtfm::pend(Interrupt::USB_HP_CAN_TX);
57+
rtic::pend(Interrupt::USB_HP_CAN_TX);
5858
}
5959

6060
#[app(device = stm32f1xx_hal::pac, peripherals = true)]

0 commit comments

Comments
 (0)