From 602a5b4374961dbcf7f3290053ab9b01f0622c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Thu, 11 Jun 2020 17:18:29 +0000 Subject: Rename RTFM to RTIC --- macros/src/codegen/idle.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'macros/src/codegen/idle.rs') diff --git a/macros/src/codegen/idle.rs b/macros/src/codegen/idle.rs index 72432f6..032c8ad 100644 --- a/macros/src/codegen/idle.rs +++ b/macros/src/codegen/idle.rs @@ -1,6 +1,6 @@ use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use rtfm_syntax::{ast::App, Context}; +use rtic_syntax::{ast::App, Context}; use crate::{ analyze::Analysis, @@ -65,7 +65,7 @@ pub fn codegen( #cfg_core #section fn #name(#(#locals_pat,)* #context: #name::Context) -> ! { - use rtfm::Mutex as _; + use rtic::Mutex as _; #(#stmts)* } @@ -74,7 +74,7 @@ pub fn codegen( let locals_new = locals_new.iter(); let call_idle = quote!(crate::#name( #(#locals_new,)* - #name::Context::new(&rtfm::export::Priority::new(0)) + #name::Context::new(&rtic::export::Priority::new(0)) )); (const_app, root_idle, user_idle, call_idle) @@ -84,7 +84,7 @@ pub fn codegen( vec![], None, quote!(loop { - rtfm::export::wfi() + rtic::export::wfi() }), ) } -- cgit v1.2.3