From 602a5b4374961dbcf7f3290053ab9b01f0622c67 Mon Sep 17 00:00:00 2001 From: Henrik Tjäder Date: Thu, 11 Jun 2020 17:18:29 +0000 Subject: Rename RTFM to RTIC --- macros/src/codegen/timer_queue.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'macros/src/codegen/timer_queue.rs') diff --git a/macros/src/codegen/timer_queue.rs b/macros/src/codegen/timer_queue.rs index 3af7e432..56304001 100644 --- a/macros/src/codegen/timer_queue.rs +++ b/macros/src/codegen/timer_queue.rs @@ -1,6 +1,6 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use rtfm_syntax::ast::App; +use rtic_syntax::ast::App; use crate::{analyze::Analysis, check::Extra, codegen::util}; @@ -46,22 +46,22 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec); + let tq_ty = quote!(rtic::export::TimerQueue<#m, #t, #n>); let section = util::link_section("bss", sender); items.push(quote!( #cfg_sender #[doc = #doc] #section - static mut #tq: #tq_ty = rtfm::export::TimerQueue( - rtfm::export::BinaryHeap( - rtfm::export::iBinaryHeap::new() + static mut #tq: #tq_ty = rtic::export::TimerQueue( + rtic::export::BinaryHeap( + rtic::export::iBinaryHeap::new() ) ); #cfg_sender struct #tq<'a> { - priority: &'a rtfm::export::Priority, + priority: &'a rtic::export::Priority, } )); @@ -100,14 +100,14 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec { - (#rq { priority: &rtfm::export::Priority::new(PRIORITY) }).lock(|rq| { + (#rq { priority: &rtic::export::Priority::new(PRIORITY) }).lock(|rq| { rq.split().0.enqueue_unchecked((#rqt::#name, index)) }); @@ -125,15 +125,15 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec